Changeset 1827

Show
Ignore:
Timestamp:
04/15/08 03:00:44
Author:
johnsa
Message:

public client: display event image next to description in detail view

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/blue.css

    r1751 r1827  
    821821  margin-right: 0.5em; 
    822822} 
     823#listTable td.eventListDateTime { 
     824  white-space: nowrap; 
     825} 
    823826#calPageTable ul.calendarTree li { 
    824827  font-weight: bold; 
     
    10101013  padding-right: 2em; 
    10111014} 
     1015.bwEventImage { 
     1016  float: right; 
     1017  margin: 0 0 1em 1em; 
     1018} 
    10121019.indent { 
    10131020  margin-left: 1em; 
     
    10531060  padding: 0; 
    10541061} 
     1062#listTable td.eventListDateTime { 
     1063  white-space: nowrap; 
     1064} 
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl

    r1790 r1827  
    155155          <xsl:when test="/bedework/page='eventList'"> 
    156156            <!-- show a list of discrete events in a time period --> 
    157             To be implemented: A list of discrete events will be displayed 
     157            <xsl:apply-templates select="/bedework/events" mode="eventList"/> 
    158158          </xsl:when> 
    159159          <xsl:when test="/bedework/page='showSysStats'"> 
     
    773773        <td class="fieldname">Description:</td> 
    774774        <td colspan="2" class="fieldval description"> 
     775          <xsl:if test="xproperties/node()[name()='X-BEDEWORK-IMAGEURL']"> 
     776            <xsl:variable name="bwImageUrl"><xsl:value-of select="xproperties/node()[name()='X-BEDEWORK-IMAGEURL']/values/text"/></xsl:variable> 
     777            <img src="{$bwImageUrl}" class="bwEventImage"/> 
     778          </xsl:if> 
    775779          <xsl:call-template name="replace"> 
    776780            <xsl:with-param name="string" select="description"/> 
     
    10401044  </xsl:template> 
    10411045 
     1046  <!--==== LIST EVENTS - for listing discrete events ====--> 
     1047  <xsl:template match="events" mode="eventList"> 
     1048    <h2 class=""> 
     1049      Event List: 
     1050      <xsl:choose> 
     1051        <xsl:when test="/bedework/now/longdate = /bedework/events/event[position()=last()]/start/longdate"><xsl:value-of select="/bedework/now/longdate"/></xsl:when> 
     1052        <xsl:otherwise><xsl:value-of select="/bedework/now/longdate"/> - <xsl:value-of select="/bedework/events/event[position()=last()]/start/longdate"/></xsl:otherwise> 
     1053      </xsl:choose> 
     1054    </h2> 
     1055 
     1056    <table id="listTable" cellspacing="0"> 
     1057      <xsl:choose> 
     1058        <xsl:when test="not(event)"> 
     1059          <tr> 
     1060            <td class="noEventsCell"> 
     1061              No events to display. 
     1062            </td> 
     1063          </tr> 
     1064        </xsl:when> 
     1065        <xsl:otherwise> 
     1066          <xsl:for-each select="event"> 
     1067            <xsl:variable name="id" select="id"/> 
     1068            <xsl:variable name="subscriptionId" select="subscription/id"/> 
     1069            <xsl:variable name="calPath" select="calendar/encodedPath"/> 
     1070            <xsl:variable name="guid" select="guid"/> 
     1071            <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     1072            <tr> 
     1073              <xsl:variable name="descriptionClass"> 
     1074                <xsl:choose> 
     1075                  <xsl:when test="status='CANCELLED'">description bwStatusCancelled</xsl:when> 
     1076                  <xsl:when test="status='TENTATIVE'">description bwStatusTentative</xsl:when> 
     1077                  <xsl:otherwise>description</xsl:otherwise> 
     1078                </xsl:choose> 
     1079              </xsl:variable> 
     1080              <!-- Subscription styles. 
     1081                   These are set in the add/modify subscription forms in the admin client; 
     1082                   if present, these override the background-color set by eventClass. The 
     1083                   subscription styles should not be used for cancelled events (tentative is ok). --> 
     1084              <xsl:variable name="subscriptionClass"> 
     1085                <xsl:if test="status != 'CANCELLED' and 
     1086                              subscription/subStyle != '' and 
     1087                              subscription/subStyle != 'default'"><xsl:value-of select="subscription/subStyle"/></xsl:if> 
     1088              </xsl:variable> 
     1089              <td class="{$descriptionClass} {$subscriptionClass}"> 
     1090                <xsl:if test="status='CANCELLED'"><strong>CANCELLED: </strong></xsl:if> 
     1091                <xsl:choose> 
     1092                  <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
     1093                    <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1094                      <strong> 
     1095                        <xsl:value-of select="summary"/>: 
     1096                      </strong> 
     1097                      <xsl:value-of select="description"/>&#160; 
     1098                      <em> 
     1099                        <xsl:value-of select="location/address"/> 
     1100                        <xsl:if test="location/subaddress != ''"> 
     1101                          , <xsl:value-of select="location/subaddress"/> 
     1102                        </xsl:if>.&#160; 
     1103                        <xsl:if test="cost!=''"> 
     1104                          <xsl:value-of select="cost"/>.&#160; 
     1105                        </xsl:if> 
     1106                        <xsl:if test="contact/name!='none'"> 
     1107                          Contact: <xsl:value-of select="contact/name"/> 
     1108                        </xsl:if> 
     1109                      </em> 
     1110                      - <xsl:value-of select="calendar/name"/> 
     1111                    </a> 
     1112                    <xsl:if test="link != ''"> 
     1113                      <xsl:variable name="link" select="link"/> 
     1114                      <a href="{$link}" class="moreLink"><xsl:value-of select="link"/></a> 
     1115                    </xsl:if> 
     1116                  </xsl:when> 
     1117                  <xsl:otherwise> 
     1118                    <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1119                      <xsl:value-of select="summary"/> 
     1120                      <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
     1121                       - <em><xsl:value-of select="calendar/name"/></em> 
     1122                    </a> 
     1123                  </xsl:otherwise> 
     1124                </xsl:choose> 
     1125              </td> 
     1126              <xsl:choose> 
     1127                <xsl:when test="start/shortdate = end/shortdate and 
     1128                                start/time = end/time"> 
     1129                  <td class="eventListDateTime" colspan="3"> 
     1130                    <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1131                      <xsl:value-of select="start/dayname"/>, 
     1132                      <xsl:value-of select="start/longdate"/> 
     1133                      <xsl:text> </xsl:text> 
     1134                      <xsl:value-of select="start/time"/> 
     1135                    </a> 
     1136                  </td> 
     1137                </xsl:when> 
     1138                <xsl:otherwise> 
     1139                  <td class="right eventListDateTime"> 
     1140                    <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1141                      <xsl:value-of select="start/dayname"/>, 
     1142                      <xsl:value-of select="start/longdate"/> 
     1143                      <xsl:text> </xsl:text> 
     1144                      <xsl:value-of select="start/time"/> 
     1145                    </a> 
     1146                  </td> 
     1147                  <td class="center eventListDateTime"> 
     1148                    <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> 
     1149                  </td> 
     1150                  <td class="left eventListDateTime"> 
     1151                    <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1152                      <xsl:value-of select="end/dayname"/>, 
     1153                      <xsl:value-of select="end/longdate"/> 
     1154                      <xsl:text> </xsl:text> 
     1155                      <xsl:value-of select="end/time"/> 
     1156                    </a> 
     1157                  </td> 
     1158                </xsl:otherwise> 
     1159              </xsl:choose> 
     1160              <td class="icons"> 
     1161                <xsl:if test="recurrenceId = ''"> 
     1162                  <!-- hide this for a 3.3.1 bug: can't add a reference to a recurring event at this time --> 
     1163                  <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 
     1164                    <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 
     1165                  </a> 
     1166                </xsl:if> 
     1167                <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 
     1168                <a href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
     1169                  <img src="{$resourcesRoot}/images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 
     1170                </a> 
     1171              </td> 
     1172            </tr> 
     1173          </xsl:for-each> 
     1174        </xsl:otherwise> 
     1175      </xsl:choose> 
     1176    </table> 
     1177  </xsl:template> 
     1178 
    10421179  <!--==== WEEK CALENDAR VIEW ====--> 
    10431180  <xsl:template name="weekView"> 
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/green.css

    r1751 r1827  
    10131013  padding-right: 2em; 
    10141014} 
     1015.bwEventImage { 
     1016  float: right; 
     1017  margin: 0 0 1em 1em; 
     1018} 
    10151019.indent { 
    10161020  margin-left: 1em; 
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/print.css

    r1522 r1827  
    402402  display: none; 
    403403} 
     404.bwEventImage { 
     405  float: right; 
     406  margin: 0 0 1em 1em; 
     407} 
     408.indent { 
     409  margin-left: 1em; 
     410} 
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/red.css

    r1751 r1827  
    10141014  padding-right: 2em; 
    10151015} 
     1016.bwEventImage { 
     1017  float: right; 
     1018  margin: 0 0 1em 1em; 
     1019} 
    10161020.indent { 
    10171021  margin-left: 1em; 
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl

    r1733 r1827  
    766766        <td class="fieldname">Description:</td> 
    767767        <td colspan="2" class="fieldval description"> 
     768          <xsl:if test="xproperties/node()[name()='X-BEDEWORK-IMAGEURL']"> 
     769            <xsl:variable name="bwImageUrl"><xsl:value-of select="xproperties/node()[name()='X-BEDEWORK-IMAGEURL']/values/text"/></xsl:variable> 
     770            <img src="{$bwImageUrl}" class="bwEventImage"/> 
     771          </xsl:if> 
    768772          <xsl:call-template name="replace"> 
    769773            <xsl:with-param name="string" select="description"/> 
  • releases/bedework-3.4.1.1/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/soe.css

    r1715 r1827  
    995995  padding-right: 2em; 
    996996} 
     997.bwEventImage { 
     998  float: right; 
     999  margin: 0 0 1em 1em; 
     1000} 
    9971001.indent { 
    9981002  margin-left: 1em;