Changeset 2475

Show
Ignore:
Timestamp:
12/13/09 22:19:19
Author:
johnsa
Message:

public client: more work on new default skin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/bwclassicTheme/event.xsl

    r2474 r2475  
    1818    <h2 class="{$statusClass}"> 
    1919      <a id="linkToEvent" href="javascript:showLink('{$urlPrefix}/event/eventView.do?calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}')" title="{$bwStr-SgEv-GenerateLinkToThisEvent}"> 
    20        <xsl:copy-of select="$bwStr-SgEv-LinkToThisEvent"/> 
    21      </a> 
     20        <xsl:copy-of select="$bwStr-SgEv-LinkToThisEvent"/> 
     21      </a> 
    2222      <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-SgEv-Canceled"/><xsl:text> </xsl:text></xsl:if> 
    2323      <xsl:choose> 
     
    310310    </table> 
    311311  </xsl:template> 
    312    
     312 
    313313</xsl:stylesheet> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl

    r2474 r2475  
    7373  <!-- DEFINE GLOBAL CONSTANTS --> 
    7474 
    75   <!-- URL of html resources (images, css, other html); by default this is 
    76     set to the current theme directory  --> 
     75  <!-- URL of html resources (images, css, other html); 
     76       by default this is set to the current theme directory  --> 
    7777  <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot" />/default/default/defaultTheme</xsl:variable> 
    7878 
     
    114114  <!-- Other generally useful global variables --> 
    115115  <xsl:variable name="privateCal">/ucal</xsl:variable> 
     116  <xsl:variable name="feederPrefix">/feeder</xsl:variable> 
    116117  <xsl:variable name="prevdate" select="/bedework/previousdate" /> 
    117118  <xsl:variable name="nextdate" select="/bedework/nextdate" /> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/fixed.css

    r2471 r2475  
    3030em { 
    3131 font-style: italic; 
     32} 
     33strong { 
     34  font-weight: bold; 
    3235} 
    3336body { 
     
    749752} 
    750753div.singleEvent .eventTitle { 
     754  margin-bottom: 1em; 
    751755} 
    752756div.singleEvent .eventIcons { 
     
    759763div.singleEvent .infoTitle { 
    760764 font-weight: bold; 
     765} 
     766div.singleEvent .tzdates { 
     767  margin-left: 3em; 
    761768} 
    762769ul.calendarTree { 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/event.xsl

    r2474 r2475  
    2020    <div class="singleEvent"> 
    2121 
    22       <h2 class="{$statusClass} eventTitle"> 
     22      <div id="eventIcons"> 
    2323        <xsl:variable name="gStartdate" select="start/utcdate" /> 
    2424        <xsl:variable name="gLocation" select="location/address" /> 
     
    2626        <xsl:variable name="gText" select="summary" /> 
    2727        <xsl:variable name="gDetails" select="summary" /> 
    28         <a class="eventIcons" 
    29           href="http://www.google.com/calendar/event?action=TEMPLATE&amp;dates={$gStartdate}/{$gEnddate}&amp;text={$gText}&amp;details={$gDetails}&amp;location={$gLocation}"> 
    30           <img title="Add to Google Calendar" 
    31             src="{$resourcesRoot}/images/gcal.gif" 
    32             alt="Add to Google Calendar" /> 
     28        <a class="eventIcons" href="http://www.google.com/calendar/event?action=TEMPLATE&amp;dates={$gStartdate}/{$gEnddate}&amp;text={$gText}&amp;details={$gDetails}&amp;location={$gLocation}"> 
     29          <img title="Add to Google Calendar" src="{$resourcesRoot}/images/gcal.gif" alt="Add to Google Calendar" /> 
    3330        </a> 
    3431        <xsl:choose> 
    3532          <xsl:when test="string-length($recurrenceId)"> 
    36             <a class="eventIcons" 
    37               href="http://www.facebook.com/share.php?u=http://calendar.duke.edu/feed/event/cal/html/{$subscriptionId}/Public/{$recurrenceId}/{$guidEsc}"> 
    38               <img title="Add to Facebook" 
    39                 src="{$resourcesRoot}/images/Facebook_Badge.gif" 
    40                 alt="Add to Facebook" /> 
     33            <a class="eventIcons" href="http://www.facebook.com/share.php?u={$feederPrefix}/event/cal/html/Public/{$recurrenceId}/{$guidEsc}"> 
     34              <img title="Add to Facebook" src="{$resourcesRoot}/images/Facebook_Badge.gif" alt="Add to Facebook" /> 
    4135            </a> 
    4236          </xsl:when> 
    4337          <xsl:otherwise> 
    44             <a class="eventIcons" 
    45               href="http://www.facebook.com/share.php?u=http://calendar.duke.edu/feed/event/cal/html/{$subscriptionId}/Public/0/{$guidEsc}"> 
    46               <img title="Add to Facebook" 
    47                 src="{$resourcesRoot}/images/Facebook_Badge.gif" 
    48                 alt="Add to Facebook" /> 
     38            <a class="eventIcons" href="http://www.facebook.com/share.php?u={$feederPrefix}/event/cal/html/Public/0/{$guidEsc}"> 
     39              <img title="Add to Facebook" src="{$resourcesRoot}/images/Facebook_Badge.gif" alt="Add to Facebook" /> 
    4940            </a> 
    5041          </xsl:otherwise> 
    5142        </xsl:choose> 
    52         <xsl:variable name="eventIcalName" 
    53           select="concat($guid,'.ics')" /> 
    54         <a class="eventIcons" 
    55           href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" 
    56           title="Download .ics file for import to other calendars"> 
    57           <img src="{$resourcesRoot}/images/std-ical_icon.gif" 
    58             alt="Download this event" /> 
     43        <xsl:variable name="eventIcalName" select="concat($guid,'.ics')" /> 
     44        <a class="eventIcons" href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="Download .ics file for import to other calendars"> 
     45          <img src="{$resourcesRoot}/images/std-ical_icon.gif" alt="Download this event" /> 
    5946        </a> 
    60         <xsl:if test="status='CANCELLED'">CANCELLED:</xsl:if
    61         <xsl:if test="summary != ''"> 
    62           <xsl:variable name="summary" select="summary" /
    63           <xsl:value-of select="$summary" /
    64         </xsl:if
     47      </div
     48 
     49      <h2 class="{$statusClass} eventTitle"
     50        <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-SgEv-Canceled"/><xsl:text> </xsl:text></xsl:if
     51        <xsl:value-of select="summary" /
    6552      </h2> 
    6653 
    67       <span class="eventWhen"> 
    68         <br /> 
    69         <span class="infoTitle">When: </span> 
    70         <xsl:value-of select="start/dayname" /> 
    71         , 
     54      <div class="eventWhen"> 
     55        <span class="infoTitle"><xsl:copy-of select="$bwStr-SgEv-When"/><xsl:text> </xsl:text></span> 
     56        <xsl:value-of select="start/dayname" />, 
    7257        <xsl:value-of select="start/longdate" /> 
    7358        <xsl:text> </xsl:text> 
     
    7863        </xsl:if> 
    7964        <xsl:if 
    80           test="(end/longdate != start/longdate) or ((end/longdate = start/longdate) and (end/time != start/time))"> 
     65          test="(end/longdate != start/longdate) or 
     66                ((end/longdate = start/longdate) and (end/time != start/time))"> 
    8167          - 
    8268        </xsl:if> 
     
    9076          <xsl:when test="start/allday = 'true'"> 
    9177            <span class="time"> 
    92               <em>(All day)</em> 
     78              <em><xsl:copy-of select="$bwStr-SgEv-AllDay"/></em> 
    9379            </span> 
    9480          </xsl:when> 
     
    10490          </xsl:when> 
    10591        </xsl:choose> 
    106       </span> 
     92        <!-- if timezones are not local, or if floating add labels: --> 
     93        <xsl:if test="start/timezone/islocal = 'false' or end/timezone/islocal = 'false'"> 
     94          <xsl:text> </xsl:text> 
     95          -- 
     96          <strong> 
     97            <xsl:choose> 
     98              <xsl:when test="start/floating = 'true'"> 
     99                <xsl:copy-of select="$bwStr-SgEv-FloatingTime"/> 
     100              </xsl:when> 
     101              <xsl:otherwise> 
     102                <xsl:copy-of select="$bwStr-SgEv-LocalTime"/> 
     103              </xsl:otherwise> 
     104            </xsl:choose> 
     105          </strong> 
     106          <br/> 
     107        </xsl:if> 
     108        <!-- display in timezone if not local or floating time) --> 
     109        <xsl:if test="(start/timezone/islocal = 'false' or end/timezone/islocal = 'false') and start/floating = 'false'"> 
     110          <xsl:choose> 
     111            <xsl:when test="start/timezone/id != end/timezone/id"> 
     112              <!-- need to display both timezones if they differ from start to end --> 
     113              <div class="tzdates"> 
     114                <em><xsl:copy-of select="$bwStr-SgEv-Start"/><xsl:text> </xsl:text></em> 
     115                <xsl:choose> 
     116                  <xsl:when test="start/timezone/islocal='true'"> 
     117                    <xsl:value-of select="start/dayname"/>, 
     118                    <xsl:value-of select="start/longdate"/> 
     119                    <xsl:text> </xsl:text> 
     120                    <span class="time"><xsl:value-of select="start/time"/></span> 
     121                  </xsl:when> 
     122                  <xsl:otherwise> 
     123                    <xsl:value-of select="start/timezone/dayname"/>, 
     124                    <xsl:value-of select="start/timezone/longdate"/> 
     125                    <xsl:text> </xsl:text> 
     126                    <span class="time"><xsl:value-of select="start/timezone/time"/></span> 
     127                  </xsl:otherwise> 
     128                </xsl:choose> 
     129                -- 
     130                <strong><xsl:value-of select="start/timezone/id"/></strong> 
     131                <br/> 
     132                <em><xsl:copy-of select="$bwStr-SgEv-End"/><xsl:text> </xsl:text></em> 
     133                <xsl:choose> 
     134                  <xsl:when test="end/timezone/islocal='true'"> 
     135                    <xsl:value-of select="end/dayname"/>, 
     136                    <xsl:value-of select="end/longdate"/> 
     137                    <xsl:text> </xsl:text> 
     138                    <span class="time"><xsl:value-of select="end/time"/></span> 
     139                  </xsl:when> 
     140                  <xsl:otherwise> 
     141                    <xsl:value-of select="end/timezone/dayname"/>, 
     142                    <xsl:value-of select="end/timezone/longdate"/> 
     143                    <xsl:text> </xsl:text> 
     144                    <span class="time"><xsl:value-of select="end/timezone/time"/></span> 
     145                  </xsl:otherwise> 
     146                </xsl:choose> 
     147                -- 
     148                <strong><xsl:value-of select="end/timezone/id"/></strong> 
     149              </div> 
     150            </xsl:when> 
     151            <xsl:otherwise> 
     152              <!-- otherwise, timezones are the same: display as a single line  --> 
     153              <xsl:value-of select="start/timezone/dayname"/>, <xsl:value-of select="start/timezone/longdate"/><xsl:text> </xsl:text> 
     154              <xsl:if test="start/allday = 'false'"> 
     155                <span class="time"><xsl:value-of select="start/timezone/time"/></span> 
     156              </xsl:if> 
     157              <xsl:if test="(end/timezone/longdate != start/timezone/longdate) or 
     158                            ((end/timezone/longdate = start/timezone/longdate) and (end/timezone/time != start/timezone/time))"> - </xsl:if> 
     159              <xsl:if test="end/timezone/longdate != start/timezone/longdate"> 
     160                <xsl:value-of select="substring(end/timezone/dayname,1,3)"/>, <xsl:value-of select="end/timezone/longdate"/><xsl:text> </xsl:text> 
     161              </xsl:if> 
     162              <xsl:choose> 
     163                <xsl:when test="start/allday = 'true'"> 
     164                  <span class="time"><em> <xsl:copy-of select="$bwStr-SgEv-AllDay"/></em></span> 
     165                </xsl:when> 
     166                <xsl:when test="end/timezone/longdate != start/timezone/longdate"> 
     167                  <span class="time"><xsl:value-of select="end/timezone/time"/></span> 
     168                </xsl:when> 
     169                <xsl:when test="end/timezone/time != start/timezone/time"> 
     170                  <span class="time"><xsl:value-of select="end/timezone/time"/></span> 
     171                </xsl:when> 
     172              </xsl:choose> 
     173              <xsl:text> </xsl:text> 
     174              -- 
     175              <strong><xsl:value-of select="start/timezone/id"/></strong> 
     176            </xsl:otherwise> 
     177          </xsl:choose> 
     178        </xsl:if> 
     179      </div> 
    107180 
    108181      <span class="eventWhere"> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/views.xsl

    r2474 r2475  
    2121        </li> 
    2222      </xsl:for-each> 
     23      <!-- 
    2324      <li> 
    2425        <a 
     
    3233      </li> 
    3334      <li> 
    34         <!-- <a href="/cal/?setappvar=category(Academic Calendar Dates)&amp;setappvar=categoryclass(Academic Calendar Dates)"> 
    35           <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Academic Calendar Dates'"> 
    36           <xsl:attribute name="class">current</xsl:attribute> 
    37           </xsl:if> --> 
    3835        <a 
    3936          href="http://www.registrar.duke.edu/registrar/studentpages/student/academicalendars.html"> 
     
    478475        </ul> 
    479476      </li> 
     477      --> 
    480478    </ul> 
    481479  </xsl:template>