Changeset 1249

Show
Ignore:
Timestamp:
01/22/07 17:37:08
Author:
johnsa
Message:

user client:

- add a "no title" string when no summary is

present

- updates to calendar selection pop-up
- informative text better for recurring events
- suppress "View" icon when editing

recurrence master

Files:

Legend:

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

    r1247 r1249  
    957957                    <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    958958                      <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    959                         <strong> 
    960                           <xsl:value-of select="summary"/>: 
    961                         </strong> 
     959                        <xsl:choose> 
     960                          <xsl:when test="summary = ''"> 
     961                            <em>no title</em> 
     962                          </xsl:when> 
     963                          <xsl:otherwise> 
     964                            <strong> 
     965                              <xsl:value-of select="summary"/>: 
     966                            </strong> 
     967                          </xsl:otherwise> 
     968                        </xsl:choose> 
    962969                        <xsl:value-of select="description"/>&#160; 
    963970                        <em> 
     
    981988                    <xsl:otherwise> 
    982989                      <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    983                         <xsl:value-of select="summary"/> 
     990                        <xsl:choose> 
     991                          <xsl:when test="summary = ''"> 
     992                            <em>no title</em> 
     993                          </xsl:when> 
     994                          <xsl:otherwise> 
     995                            <xsl:value-of select="summary"/> 
     996                          </xsl:otherwise> 
     997                        </xsl:choose> 
    984998                        <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
    985999                      </a> 
     
    11921206          </xsl:otherwise> 
    11931207        </xsl:choose> 
    1194         <xsl:value-of select="summary"/> 
     1208        <xsl:choose> 
     1209          <xsl:when test="summary = ''"> 
     1210            <em>no title</em> 
     1211          </xsl:when> 
     1212          <xsl:otherwise> 
     1213            <xsl:value-of select="summary"/> 
     1214          </xsl:otherwise> 
     1215        </xsl:choose> 
    11951216        <xsl:variable name="eventTipClass"> 
    11961217          <xsl:choose> 
     
    12021223          <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if> 
    12031224          <xsl:if test="status='TENTATIVE'"><span class="eventTipStatusTentative">TENTATIVE</span></xsl:if> 
    1204           <strong><xsl:value-of select="summary"/></strong><br/> 
     1225          <xsl:choose> 
     1226            <xsl:when test="summary = ''"> 
     1227              <em>no title</em> 
     1228            </xsl:when> 
     1229            <xsl:otherwise> 
     1230              <strong><xsl:value-of select="summary"/></strong><br/> 
     1231            </xsl:otherwise> 
     1232          </xsl:choose> 
    12051233          Time: 
    12061234          <xsl:choose> 
     
    12191247          </xsl:if> 
    12201248          Calendar: 
    1221             <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> 
    1222             <xsl:choose> 
    1223               <xsl:when test="contains(calendar/path,$userPath)"> 
    1224                 <xsl:value-of select="substring-after(calendar/path,$userPath)"/> 
    1225               </xsl:when> 
    1226               <xsl:otherwise> 
    1227                 <xsl:value-of select="calendar/path"/> 
    1228               </xsl:otherwise> 
    1229             </xsl:choose><br/> 
     1249          <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> 
     1250          <xsl:choose> 
     1251            <xsl:when test="contains(calendar/path,$userPath)"> 
     1252              <xsl:value-of select="substring-after(calendar/path,$userPath)"/> 
     1253            </xsl:when> 
     1254            <xsl:otherwise> 
     1255              <xsl:value-of select="calendar/path"/> 
     1256            </xsl:otherwise> 
     1257          </xsl:choose><br/> 
    12301258          Type: 
    12311259          <xsl:if test="recurring='true' or recurrenceId != ''"> 
     
    13371365            <xsl:value-of select="summary"/> 
    13381366          </a> 
     1367        </xsl:when> 
     1368        <xsl:when test="summary = ''"> 
     1369          Event <em>(no title)</em> 
    13391370        </xsl:when> 
    13401371        <xsl:otherwise> 
     
    14231454            </xsl:otherwise> 
    14241455          </xsl:choose> 
     1456          <xsl:if test="recurring='true' and recurrenceId = ''"> 
     1457            <em>(recurrence master)</em> 
     1458          </xsl:if> 
    14251459        </th> 
    14261460      </tr> 
     
    18101844            <th colspan="2" class="commonHeader"> 
    18111845              <div id="eventActions"> 
    1812                 <xsl:if test="not(recurringEntity = 'true' and recurrenceId = '')"> 
     1846                <xsl:if test="not(form/recurringEntity = 'true' and recurrenceId = '')"> 
    18131847                  <!-- don't display if a master recurring event (because the master can't be viewed) --> 
    18141848                  <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     
    18191853                </xsl:if> 
    18201854                <xsl:choose> 
    1821                   <xsl:when test="recurringEntity='true' or recurrenceId != ''"> 
     1855                  <xsl:when test="recurrenceId != ''"> 
    18221856                    <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    18231857                    Delete: 
    1824                     <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}" title="delete master (recurring event)">all</a>,<a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 
     1858                    <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}" title="delete master (recurring event)">all</a>, 
     1859                    <a href="{$delEvent}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 
    18251860                  </xsl:when> 
    18261861                  <xsl:otherwise> 
     
    18281863                      <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    18291864                      Delete 
     1865                      <xsl:if test="form/recurringEntity='true'"> 
     1866                        all 
     1867                      </xsl:if> 
    18301868                    </a> 
    18311869                  </xsl:otherwise> 
    18321870                </xsl:choose> 
    18331871              </div> 
    1834               Personal Event 
     1872              <!-- Display type of event --> 
     1873              <xsl:if test="form/recurringEntity='true' or recurrenceId != ''"> 
     1874                Recurring 
     1875              </xsl:if> 
     1876              <xsl:choose> 
     1877                <xsl:when test="form"> 
     1878                  <!-- just a placeholder: need to add owner to the jsp --> 
     1879                  Personal Event 
     1880                </xsl:when> 
     1881                <xsl:when test="public = 'true'"> 
     1882                  Public Event 
     1883                </xsl:when> 
     1884                <xsl:otherwise> 
     1885                  Event (<xsl:value-of select="calendar/owner"/>) 
     1886                </xsl:otherwise> 
     1887              </xsl:choose> 
     1888              <xsl:if test="form/recurringEntity='true' and recurrenceId = ''"> 
     1889                <em>(recurrence master)</em> 
     1890              </xsl:if> 
    18351891            </th> 
    18361892          </tr> 
     
    32843340          </td> 
    32853341          <td> 
    3286             <xsl:value-of select="summary"/> 
     3342            <xsl:choose> 
     3343              <xsl:when test="summary = ''"> 
     3344                <em>no title</em> 
     3345              </xsl:when> 
     3346              <xsl:otherwise> 
     3347                <xsl:value-of select="summary"/> 
     3348              </xsl:otherwise> 
     3349            </xsl:choose> 
    32873350          </td> 
    32883351        </tr> 
     
    38043867      <xsl:choose> 
    38053868        <xsl:when test="/bedework/appvar[key='showAllCalsForEvent']/value = 'true'"> 
    3806           <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar" mode="selectCalForEventCalTree"/> 
     3869          <xsl:choose> 
     3870            <xsl:when test="/bedework/myCalendars/calendars/calendar"> 
     3871              <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar" mode="selectCalForEventCalTree"/> 
     3872            </xsl:when> 
     3873            <xsl:otherwise> 
     3874              <em>no writable calendars</em> 
     3875            </xsl:otherwise> 
     3876          </xsl:choose> 
    38073877        </xsl:when> 
    38083878        <xsl:otherwise> 
    3809           <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/> 
     3879          <xsl:choose> 
     3880            <xsl:when test="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]"> 
     3881              <xsl:apply-templates select="/bedework/myCalendars/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/> 
     3882            </xsl:when> 
     3883            <xsl:otherwise> 
     3884              <em>no writable calendars</em> 
     3885            </xsl:otherwise> 
     3886          </xsl:choose> 
    38103887        </xsl:otherwise> 
    38113888      </xsl:choose> 
     
    38163893      <xsl:choose> 
    38173894        <xsl:when test="/bedework/appvar[key='showAllCalsForEvent']/value = 'true'"> 
    3818           <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar" mode="selectCalForEventCalTree"/> 
     3895          <xsl:choose> 
     3896            <xsl:when test="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar"> 
     3897              <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar" mode="selectCalForEventCalTree"/> 
     3898            </xsl:when> 
     3899            <xsl:otherwise> 
     3900              <em>no writable calendars</em> 
     3901            </xsl:otherwise> 
     3902          </xsl:choose> 
    38193903        </xsl:when> 
    38203904        <xsl:otherwise> 
    3821           <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/> 
     3905          <xsl:choose> 
     3906            <xsl:when test="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]"> 
     3907              <xsl:apply-templates select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars/calendar[currentAccess/current-user-privilege-set/privilege/write-content]" mode="selectCalForEventCalTree"/> 
     3908            </xsl:when> 
     3909            <xsl:otherwise> 
     3910              <em>no writable calendars</em> 
     3911            </xsl:otherwise> 
     3912          </xsl:choose> 
    38223913        </xsl:otherwise> 
    38233914      </xsl:choose> 
     
    38543945            <strong><xsl:value-of select="name"/></strong> 
    38553946          </a> 
     3947          <xsl:if test="name != $calDisplay"> 
     3948            <span class="small">(<xsl:value-of select="$calDisplay"/>)</span> 
     3949          </xsl:if> 
    38563950        </xsl:when> 
    38573951        <xsl:otherwise> 
     
    56585752          <strong> 
    56595753            <xsl:choose> 
     5754              <xsl:when test="summary = ''"> 
     5755                <em>no title</em> 
     5756              </xsl:when> 
    56605757              <xsl:when test="link != ''"> 
    56615758                <xsl:variable name="link" select="link"/> 
     
    57695866          </td> 
    57705867          <td> 
    5771             <xsl:value-of select="summary"/> 
     5868            <xsl:choose> 
     5869              <xsl:when test="summary = ''"> 
     5870                <em>no title</em> 
     5871              </xsl:when> 
     5872              <xsl:otherwise> 
     5873                <xsl:value-of select="summary"/> 
     5874              </xsl:otherwise> 
     5875            </xsl:choose> 
    57725876          </td> 
    57735877        </tr> 
     
    65056609          <td> 
    65066610            <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    6507               <xsl:value-of select="event/summary"/> 
     6611              <xsl:choose> 
     6612                <xsl:when test="event/summary = ''"> 
     6613                  <em>no title</em> 
     6614                </xsl:when> 
     6615                <xsl:otherwise> 
     6616                  <xsl:value-of select="event/summary"/> 
     6617                </xsl:otherwise> 
     6618              </xsl:choose> 
    65086619            </a> 
    65096620          </td>