Changeset 1249
- Timestamp:
- 01/22/07 17:37:08
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1247 r1249 957 957 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 958 958 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&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> 962 969 <xsl:value-of select="description"/>  963 970 <em> … … 981 988 <xsl:otherwise> 982 989 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&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> 984 998 <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 985 999 </a> … … 1192 1206 </xsl:otherwise> 1193 1207 </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> 1195 1216 <xsl:variable name="eventTipClass"> 1196 1217 <xsl:choose> … … 1202 1223 <xsl:if test="status='CANCELLED'"><span class="eventTipStatusCancelled">CANCELLED</span></xsl:if> 1203 1224 <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> 1205 1233 Time: 1206 1234 <xsl:choose> … … 1219 1247 </xsl:if> 1220 1248 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/> 1230 1258 Type: 1231 1259 <xsl:if test="recurring='true' or recurrenceId != ''"> … … 1337 1365 <xsl:value-of select="summary"/> 1338 1366 </a> 1367 </xsl:when> 1368 <xsl:when test="summary = ''"> 1369 Event <em>(no title)</em> 1339 1370 </xsl:when> 1340 1371 <xsl:otherwise> … … 1423 1454 </xsl:otherwise> 1424 1455 </xsl:choose> 1456 <xsl:if test="recurring='true' and recurrenceId = ''"> 1457 <em>(recurrence master)</em> 1458 </xsl:if> 1425 1459 </th> 1426 1460 </tr> … … 1810 1844 <th colspan="2" class="commonHeader"> 1811 1845 <div id="eventActions"> 1812 <xsl:if test="not( recurringEntity = 'true' and recurrenceId = '')">1846 <xsl:if test="not(form/recurringEntity = 'true' and recurrenceId = '')"> 1813 1847 <!-- don't display if a master recurring event (because the master can't be viewed) --> 1814 1848 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> … … 1819 1853 </xsl:if> 1820 1854 <xsl:choose> 1821 <xsl:when test="recurr ingEntity='true' or recurrenceId != ''">1855 <xsl:when test="recurrenceId != ''"> 1822 1856 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1823 1857 Delete: 1824 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>,<a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 1858 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>, 1859 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 1825 1860 </xsl:when> 1826 1861 <xsl:otherwise> … … 1828 1863 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1829 1864 Delete 1865 <xsl:if test="form/recurringEntity='true'"> 1866 all 1867 </xsl:if> 1830 1868 </a> 1831 1869 </xsl:otherwise> 1832 1870 </xsl:choose> 1833 1871 </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> 1835 1891 </th> 1836 1892 </tr> … … 3284 3340 </td> 3285 3341 <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> 3287 3350 </td> 3288 3351 </tr> … … 3804 3867 <xsl:choose> 3805 3868 <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> 3807 3877 </xsl:when> 3808 3878 <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> 3810 3887 </xsl:otherwise> 3811 3888 </xsl:choose> … … 3816 3893 <xsl:choose> 3817 3894 <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> 3819 3903 </xsl:when> 3820 3904 <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> 3822 3913 </xsl:otherwise> 3823 3914 </xsl:choose> … … 3854 3945 <strong><xsl:value-of select="name"/></strong> 3855 3946 </a> 3947 <xsl:if test="name != $calDisplay"> 3948 <span class="small">(<xsl:value-of select="$calDisplay"/>)</span> 3949 </xsl:if> 3856 3950 </xsl:when> 3857 3951 <xsl:otherwise> … … 5658 5752 <strong> 5659 5753 <xsl:choose> 5754 <xsl:when test="summary = ''"> 5755 <em>no title</em> 5756 </xsl:when> 5660 5757 <xsl:when test="link != ''"> 5661 5758 <xsl:variable name="link" select="link"/> … … 5769 5866 </td> 5770 5867 <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> 5772 5876 </td> 5773 5877 </tr> … … 6505 6609 <td> 6506 6610 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&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> 6508 6619 </a> 6509 6620 </td>
