Changeset 1323
- Timestamp:
- 04/05/07 16:13:33
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1321 r1323 121 121 <xsl:variable name="subscriptions-initAdd" select="/bedework/urlPrefixes/subscriptions/initAdd/a/@href"/> 122 122 <xsl:variable name="subscriptions-subscribe" select="/bedework/urlPrefixes/subscriptions/subscribe/a/@href"/> 123 <xsl:variable name="subscriptions-inaccessible" select="/bedework/urlPrefixes/subscriptions/inaccessible/a/@href"/> 123 124 <!-- preferences --> 124 125 <xsl:variable name="prefs-fetchForUpdate" select="/bedework/urlPrefixes/prefs/fetchForUpdate/a/@href"/> … … 245 246 /bedework/page='addSubByUri'"> 246 247 <xsl:apply-templates select="/bedework/subscriptions"/> 248 </xsl:when> 249 <xsl:when test="/bedework/page='subInaccessible'"> 250 <xsl:call-template name="subInaccessible"/> 247 251 </xsl:when> 248 252 <xsl:when test="/bedework/page='calendarList' or … … 4888 4892 4889 4893 <xsl:template match="subscription" mode="mySubscriptions"> 4890 <xsl:variable name="itemClass"> 4891 <xsl:choose> 4892 <xsl:when test="/bedework/selectionState/selectionType = 'subscription' 4893 and /bedework/selectionState/subscriptions/subscription/name = name">selected</xsl:when> 4894 <xsl:otherwise>calendar</xsl:otherwise> 4895 </xsl:choose> 4896 </xsl:variable> 4897 <li class="{$itemClass}"> 4894 <li> 4895 <xsl:attribute name="class"> 4896 <xsl:choose> 4897 <xsl:when test="/bedework/selectionState/selectionType = 'subscription' 4898 and /bedework/selectionState/subscriptions/subscription/name = name">selected</xsl:when> 4899 <xsl:when test="calendarDeleted = 'true'">deleted</xsl:when> 4900 <xsl:otherwise>calendar</xsl:otherwise> 4901 </xsl:choose> 4902 </xsl:attribute> 4898 4903 <xsl:variable name="subName" select="name"/> 4899 4904 <xsl:if test="style != '' and style != 'default'"> … … 4902 4907 <img src="{$resourcesRoot}/resources/spacer.gif" width="6" height="6" alt="subscription style" class="subStyle {$subStyle}"/> 4903 4908 </xsl:if> 4904 <a href="{$setSelection}&subname={$subName}"> 4905 <xsl:value-of select="name"/> 4906 </a> 4909 <xsl:choose> 4910 <xsl:when test="calendarDeleted = 'true'"> 4911 <a href="{$subscriptions-inaccessible}" title="underlying calendar is inaccessible"> 4912 <xsl:value-of select="name"/> 4913 </a> 4914 </xsl:when> 4915 <xsl:otherwise> 4916 <a href="{$setSelection}&subname={$subName}"> 4917 <xsl:value-of select="name"/> 4918 </a> 4919 </xsl:otherwise> 4920 </xsl:choose> 4907 4921 <xsl:if test="calendars/calendar/calendarCollection='true' and 4908 4922 calendars/calendar/currentAccess/current-user-privilege-set/privilege/write-content"> … … 4916 4930 </xsl:if> 4917 4931 </li> 4932 </xsl:template> 4933 4934 <xsl:template name="subInaccessible"> 4935 <h2 class="bwStatusConfirmed">Inaccessible</h2> 4936 <p> 4937 <strong>The underlying calendar is inaccessible.</strong><br/> 4938 </p> 4939 <p> 4940 Possible causes: 4941 </p> 4942 <ol> 4943 <li>Access control was changed such that you may no longer access the underlying calendar</li> 4944 <li>The underlying calendar was deleted</li> 4945 </ol> 4918 4946 </xsl:template> 4919 4947
