Changeset 1117

Show
Ignore:
Timestamp:
12/05/06 17:05:10
Author:
johnsa
Message:

continuing to address recurrences and annotations in user client. More work still to be done here.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1116 r1117  
    12911291        <th colspan="2" class="commonHeader"> 
    12921292          <div id="eventActions"> 
     1293            <!-- download --> 
    12931294            <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 
    12941295            <a href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    12951296              <img src="{$resourcesRoot}/resources/std-icalDownload-icon-small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 
    12961297              Download 
    1297             </a> | 
    1298             <xsl:choose> 
    1299               <xsl:when test="recurring='true'"> 
    1300                 <xsl:choose> 
    1301                   <xsl:when test="recurrenceId != ''"> 
    1302                     Remove: 
    1303                     <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}"> 
    1304                       <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    1305                       all 
    1306                     </a> 
    1307                     <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    1308                       <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    1309                       this instance 
    1310                     </a> 
    1311                   </xsl:when> 
    1312                   <xsl:otherwise> 
    1313                     <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    1314                       <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    1315                       Remove 
    1316                     </a> 
    1317                   </xsl:otherwise> 
    1318                 </xsl:choose> 
    1319               </xsl:when> 
    1320               <xsl:when test="currentAccess/current-user-privilege-set/privilege/write-content"> 
    1321                 <xsl:choose> 
    1322                   <xsl:when test="recurring='true'"> 
    1323                     Edit: 
    1324                     <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}"> 
    1325                       <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
    1326                       master event 
    1327                     </a> 
    1328                     <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    1329                       <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
    1330                       this instance 
    1331                     </a> 
    1332                   </xsl:when> 
    1333                   <xsl:otherwise> 
    1334                     <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}"> 
    1335                       <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
    1336                       Edit 
    1337                     </a> 
    1338                   </xsl:otherwise> 
    1339                 </xsl:choose> 
    1340               </xsl:when> 
    1341               <xsl:otherwise> 
    1342                 <a href="{$subscriptions-fetch}"> 
    1343                   <img src="{$resourcesRoot}/resources/std-ical_iconSubsDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
    1344                   Manage Subscriptions 
    1345                 </a> 
    1346               </xsl:otherwise> 
    1347             </xsl:choose> 
    1348             <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind and not(isAnnotation)"> 
    1349                | 
     1298            </a> 
     1299            <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 
    13501300              <xsl:choose> 
    13511301                <xsl:when test="recurring='true'"> 
     1302                  Edit: 
     1303                  <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}"> 
     1304                    <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 
     1305                    master event 
     1306                  </a> 
     1307                  <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1308                    <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit instance"/> 
     1309                    this instance 
     1310                  </a> 
     1311                </xsl:when> 
     1312                <xsl:otherwise> 
     1313                  <a href="{$editEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}"> 
     1314                    <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
     1315                    Edit 
     1316                  </a> 
     1317                </xsl:otherwise> 
     1318              </xsl:choose> 
     1319            </xsl:if> 
     1320            <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind and not(isAnnotation)"> 
     1321              <xsl:choose> 
     1322                <xsl:when test="recurring='true'"> 
     1323                  Delete: 
    13521324                  <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}"> 
    1353                     <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    1354                     Delete All (recurring) 
     1325                    <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete all"/> 
     1326                    all 
     1327                  </a> 
     1328                  <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     1329                    <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete instance"/> 
     1330                    this instance 
    13551331                  </a> 
    13561332                </xsl:when> 
     
    13631339              </xsl:choose> 
    13641340            </xsl:if> 
     1341            <xsl:if test="calendar/owner != /bedework/userid and not(isAnnotation)"> 
     1342              <xsl:variable name="subname" select="subscription/name"/> 
     1343              <a href="{$subscriptions-fetchForUpdate}&amp;subname={$subname}"> 
     1344                <img src="{$resourcesRoot}/resources/std-ical_iconSubsDkGray.gif" width="12" height="16" border="0" alt="manage subscription"/> 
     1345                Subscription 
     1346              </a> 
     1347            </xsl:if> 
    13651348          </div> 
     1349          <!-- Display type of event --> 
     1350          <xsl:if test="recurring='true'"> 
     1351            Recurring 
     1352          </xsl:if> 
    13661353          <xsl:choose> 
    1367             <xsl:when test="recurring='true'"> 
    1368               Recurring Event 
    1369             </xsl:when> 
    13701354            <xsl:when test="calendar/owner = /bedework/userid"> 
    13711355              Personal Event 
    13721356            </xsl:when> 
     1357            <xsl:when test="public = 'true'"> 
     1358              Public Event 
     1359            </xsl:when> 
     1360            <xsl:otherwise> 
     1361              Event 
     1362            </xsl:otherwise> 
     1363            <!-- 
    13731364            <xsl:when test="starts-with(calendar/path,'/user/')"> 
    13741365              User Event (<xsl:value-of select="calendar/owner"/>) 
     
    13861377                </xsl:otherwise> 
    13871378              </xsl:choose> 
    1388             </xsl:otherwise> 
     1379            </xsl:otherwise>--> 
    13891380          </xsl:choose> 
    13901381        </th> 
     
    14171408            <xsl:text> </xsl:text> 
    14181409            -- 
    1419             <strong>Local time</strong> 
     1410            <strong> 
     1411              <xsl:choose> 
     1412                <xsl:when test="start/floating = 'true'"> 
     1413                  Floating time 
     1414                </xsl:when> 
     1415                <xsl:otherwise> 
     1416                  Local time 
     1417                </xsl:otherwise> 
     1418              </xsl:choose> 
     1419            </strong> 
    14201420            <br/> 
    14211421          </xsl:if> 
    1422           <!-- display in timezone if not local --> 
    1423           <xsl:if test="start/timezone/islocal = 'false'"> 
     1422          <!-- display in timezone if not local or floating time) --> 
     1423          <xsl:if test="start/timezone/islocal = 'false' and start/floating = 'false'"> 
    14241424            <xsl:value-of select="start/timezone/dayname"/>, <xsl:value-of select="start/timezone/longdate"/><xsl:text> </xsl:text> 
    14251425            <xsl:if test="start/allday = 'false'"> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/errors.xsl

    r1104 r1117  
    5454          <p>You must supply the following field: <em><xsl:value-of select="param"/></em></p> 
    5555      </xsl:when> 
     56      <xsl:when test="id='org.bedework.client.error.missingfield'"> 
     57          <p>You must supply the following field: <em><xsl:value-of select="param"/></em></p> 
     58      </xsl:when> 
    5659      <xsl:when test="id='org.bedework.client.error.calendar.referenced'"> 
    5760          <p>Cannot delete: calendar contains events.</p>