Changeset 2475
- Timestamp:
- 12/13/09 22:19:19
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/bwclassicTheme/event.xsl (modified) (2 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (2 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/fixed.css (modified) (3 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/event.xsl (modified) (5 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/views.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/bwclassicTheme/event.xsl
r2474 r2475 18 18 <h2 class="{$statusClass}"> 19 19 <a id="linkToEvent" href="javascript:showLink('{$urlPrefix}/event/eventView.do?calPath={$calPath}&guid={$guid}&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> 22 22 <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-SgEv-Canceled"/><xsl:text> </xsl:text></xsl:if> 23 23 <xsl:choose> … … 310 310 </table> 311 311 </xsl:template> 312 312 313 313 </xsl:stylesheet> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r2474 r2475 73 73 <!-- DEFINE GLOBAL CONSTANTS --> 74 74 75 <!-- URL of html resources (images, css, other html); by default this is76 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 --> 77 77 <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot" />/default/default/defaultTheme</xsl:variable> 78 78 … … 114 114 <!-- Other generally useful global variables --> 115 115 <xsl:variable name="privateCal">/ucal</xsl:variable> 116 <xsl:variable name="feederPrefix">/feeder</xsl:variable> 116 117 <xsl:variable name="prevdate" select="/bedework/previousdate" /> 117 118 <xsl:variable name="nextdate" select="/bedework/nextdate" /> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/fixed.css
r2471 r2475 30 30 em { 31 31 font-style: italic; 32 } 33 strong { 34 font-weight: bold; 32 35 } 33 36 body { … … 749 752 } 750 753 div.singleEvent .eventTitle { 754 margin-bottom: 1em; 751 755 } 752 756 div.singleEvent .eventIcons { … … 759 763 div.singleEvent .infoTitle { 760 764 font-weight: bold; 765 } 766 div.singleEvent .tzdates { 767 margin-left: 3em; 761 768 } 762 769 ul.calendarTree { trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/event.xsl
r2474 r2475 20 20 <div class="singleEvent"> 21 21 22 < h2 class="{$statusClass} eventTitle">22 <div id="eventIcons"> 23 23 <xsl:variable name="gStartdate" select="start/utcdate" /> 24 24 <xsl:variable name="gLocation" select="location/address" /> … … 26 26 <xsl:variable name="gText" select="summary" /> 27 27 <xsl:variable name="gDetails" select="summary" /> 28 <a class="eventIcons" 29 href="http://www.google.com/calendar/event?action=TEMPLATE&dates={$gStartdate}/{$gEnddate}&text={$gText}&details={$gDetails}&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&dates={$gStartdate}/{$gEnddate}&text={$gText}&details={$gDetails}&location={$gLocation}"> 29 <img title="Add to Google Calendar" src="{$resourcesRoot}/images/gcal.gif" alt="Add to Google Calendar" /> 33 30 </a> 34 31 <xsl:choose> 35 32 <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" /> 41 35 </a> 42 36 </xsl:when> 43 37 <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" /> 49 40 </a> 50 41 </xsl:otherwise> 51 42 </xsl:choose> 52 <xsl:variable name="eventIcalName" 53 select="concat($guid,'.ics')" /> 54 <a class="eventIcons" 55 href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&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}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&contentName={$eventIcalName}" title="Download .ics file for import to other calendars"> 45 <img src="{$resourcesRoot}/images/std-ical_icon.gif" alt="Download this event" /> 59 46 </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" /> 65 52 </h2> 66 53 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" />, 72 57 <xsl:value-of select="start/longdate" /> 73 58 <xsl:text> </xsl:text> … … 78 63 </xsl:if> 79 64 <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))"> 81 67 - 82 68 </xsl:if> … … 90 76 <xsl:when test="start/allday = 'true'"> 91 77 <span class="time"> 92 <em> (All day)</em>78 <em><xsl:copy-of select="$bwStr-SgEv-AllDay"/></em> 93 79 </span> 94 80 </xsl:when> … … 104 90 </xsl:when> 105 91 </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> 107 180 108 181 <span class="eventWhere"> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/views.xsl
r2474 r2475 21 21 </li> 22 22 </xsl:for-each> 23 <!-- 23 24 <li> 24 25 <a … … 32 33 </li> 33 34 <li> 34 <!-- <a href="/cal/?setappvar=category(Academic Calendar Dates)&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> -->38 35 <a 39 36 href="http://www.registrar.duke.edu/registrar/studentpages/student/academicalendars.html"> … … 478 475 </ul> 479 476 </li> 477 --> 480 478 </ul> 481 479 </xsl:template>
