| 5920 | | <xsl:for-each select="inbox/acl/ace[principal/href]"> |
|---|
| 5921 | | <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> |
|---|
| 5922 | | </xsl:for-each> |
|---|
| | 5920 | <table class="common"> |
|---|
| | 5921 | <tr> |
|---|
| | 5922 | <th>Entry</th> |
|---|
| | 5923 | <th>Access</th> |
|---|
| | 5924 | <td></td> |
|---|
| | 5925 | </tr> |
|---|
| | 5926 | <xsl:for-each select="inbox/acl/ace"> |
|---|
| | 5927 | <tr> |
|---|
| | 5928 | <td> |
|---|
| | 5929 | <xsl:choose> |
|---|
| | 5930 | <xsl:when test="principal/href"> |
|---|
| | 5931 | <xsl:value-of select="principal/href"/> |
|---|
| | 5932 | </xsl:when> |
|---|
| | 5933 | <xsl:when test="principal/property"> |
|---|
| | 5934 | <xsl:value-of select="name(principal/property/*)"/> |
|---|
| | 5935 | </xsl:when> |
|---|
| | 5936 | <xsl:when test="invert/principal/property/owner"> |
|---|
| | 5937 | anyone (other) |
|---|
| | 5938 | </xsl:when> |
|---|
| | 5939 | <xsl:otherwise> |
|---|
| | 5940 | <xsl:value-of select="name(principal/*)"/> |
|---|
| | 5941 | </xsl:otherwise> |
|---|
| | 5942 | </xsl:choose> |
|---|
| | 5943 | </td> |
|---|
| | 5944 | <td> |
|---|
| | 5945 | <xsl:value-of select="name(grant/*)"/> |
|---|
| | 5946 | </td> |
|---|
| | 5947 | <td> |
|---|
| | 5948 | <xsl:variable name="who"> |
|---|
| | 5949 | <xsl:choose> |
|---|
| | 5950 | <xsl:when test="invert"> |
|---|
| | 5951 | <xsl:choose> |
|---|
| | 5952 | <xsl:when test="invert/principal/href"><xsl:value-of select="normalize-space(invert/principal/href)"/></xsl:when> |
|---|
| | 5953 | <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when> |
|---|
| | 5954 | <xsl:otherwise><xsl:value-of select="name(invert/principal/*)"/></xsl:otherwise> |
|---|
| | 5955 | </xsl:choose> |
|---|
| | 5956 | </xsl:when> |
|---|
| | 5957 | <xsl:otherwise> |
|---|
| | 5958 | <xsl:choose> |
|---|
| | 5959 | <xsl:when test="principal/href"><xsl:value-of select="normalize-space(principal/href)"/></xsl:when> |
|---|
| | 5960 | <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when> |
|---|
| | 5961 | <xsl:otherwise><xsl:value-of select="name(principal/*)"/></xsl:otherwise> |
|---|
| | 5962 | </xsl:choose> |
|---|
| | 5963 | </xsl:otherwise> |
|---|
| | 5964 | </xsl:choose> |
|---|
| | 5965 | </xsl:variable> |
|---|
| | 5966 | <xsl:variable name="whoType"> |
|---|
| | 5967 | <xsl:choose> |
|---|
| | 5968 | <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)">user</xsl:when> |
|---|
| | 5969 | <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)">group</xsl:when> |
|---|
| | 5970 | <xsl:when test="$who='authenticated'">auth</xsl:when> |
|---|
| | 5971 | <xsl:when test="invert/principal/property/owner">other</xsl:when> |
|---|
| | 5972 | <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when> |
|---|
| | 5973 | <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when> |
|---|
| | 5974 | <xsl:otherwise></xsl:otherwise> |
|---|
| | 5975 | </xsl:choose> |
|---|
| | 5976 | </xsl:variable> |
|---|
| | 5977 | <xsl:variable name="shortWho"> |
|---|
| | 5978 | <xsl:choose> |
|---|
| | 5979 | <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/></xsl:when> |
|---|
| | 5980 | <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/></xsl:when> |
|---|
| | 5981 | <xsl:otherwise></xsl:otherwise> <!-- if not user or group, send no who --> |
|---|
| | 5982 | </xsl:choose> |
|---|
| | 5983 | </xsl:variable> |
|---|
| | 5984 | <xsl:choose> |
|---|
| | 5985 | <xsl:when test="invert"> |
|---|
| | 5986 | <a href="{$prefs-setAccess}&how=default&who={$shortWho}&whoType={$whoType}&notWho=yes" title="reset to default"> |
|---|
| | 5987 | |
|---|
| | 5988 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="reset to default"/> |
|---|
| | 5989 | </a> |
|---|
| | 5990 | </xsl:when> |
|---|
| | 5991 | <xsl:otherwise> |
|---|
| | 5992 | <a href="{$prefs-setAccess}&how=default&who={$shortWho}&whoType={$whoType}" title="reset to default"> |
|---|
| | 5993 | |
|---|
| | 5994 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="reset to default"/> |
|---|
| | 5995 | </a> |
|---|
| | 5996 | </xsl:otherwise> |
|---|
| | 5997 | </xsl:choose> |
|---|
| | 5998 | </td> |
|---|
| | 5999 | </tr> |
|---|
| | 6000 | </xsl:for-each> |
|---|
| | 6001 | </table> |
|---|
| 5958 | | <xsl:for-each select="outbox/acl/ace[principal/href]"> |
|---|
| 5959 | | <xsl:value-of select="principal/href"/> (<xsl:value-of select="name(grant/*)"/>)<br/> |
|---|
| 5960 | | </xsl:for-each> |
|---|
| | 6037 | <table class="common"> |
|---|
| | 6038 | <tr> |
|---|
| | 6039 | <th>Entry</th> |
|---|
| | 6040 | <th>Access</th> |
|---|
| | 6041 | <td></td> |
|---|
| | 6042 | </tr> |
|---|
| | 6043 | <xsl:for-each select="outbox/acl/ace"> |
|---|
| | 6044 | <tr> |
|---|
| | 6045 | <td> |
|---|
| | 6046 | <xsl:choose> |
|---|
| | 6047 | <xsl:when test="principal/href"> |
|---|
| | 6048 | <xsl:value-of select="principal/href"/> |
|---|
| | 6049 | </xsl:when> |
|---|
| | 6050 | <xsl:when test="principal/property"> |
|---|
| | 6051 | <xsl:value-of select="name(principal/property/*)"/> |
|---|
| | 6052 | </xsl:when> |
|---|
| | 6053 | <xsl:when test="invert/principal/property/owner"> |
|---|
| | 6054 | anyone (other) |
|---|
| | 6055 | </xsl:when> |
|---|
| | 6056 | <xsl:otherwise> |
|---|
| | 6057 | <xsl:value-of select="name(principal/*)"/> |
|---|
| | 6058 | </xsl:otherwise> |
|---|
| | 6059 | </xsl:choose> |
|---|
| | 6060 | </td> |
|---|
| | 6061 | <td> |
|---|
| | 6062 | <xsl:value-of select="name(grant/*)"/> |
|---|
| | 6063 | </td> |
|---|
| | 6064 | <td> |
|---|
| | 6065 | <xsl:variable name="who"> |
|---|
| | 6066 | <xsl:choose> |
|---|
| | 6067 | <xsl:when test="invert"> |
|---|
| | 6068 | <xsl:choose> |
|---|
| | 6069 | <xsl:when test="invert/principal/href"><xsl:value-of select="normalize-space(invert/principal/href)"/></xsl:when> |
|---|
| | 6070 | <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when> |
|---|
| | 6071 | <xsl:otherwise><xsl:value-of select="name(invert/principal/*)"/></xsl:otherwise> |
|---|
| | 6072 | </xsl:choose> |
|---|
| | 6073 | </xsl:when> |
|---|
| | 6074 | <xsl:otherwise> |
|---|
| | 6075 | <xsl:choose> |
|---|
| | 6076 | <xsl:when test="principal/href"><xsl:value-of select="normalize-space(principal/href)"/></xsl:when> |
|---|
| | 6077 | <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when> |
|---|
| | 6078 | <xsl:otherwise><xsl:value-of select="name(principal/*)"/></xsl:otherwise> |
|---|
| | 6079 | </xsl:choose> |
|---|
| | 6080 | </xsl:otherwise> |
|---|
| | 6081 | </xsl:choose> |
|---|
| | 6082 | </xsl:variable> |
|---|
| | 6083 | <xsl:variable name="whoType"> |
|---|
| | 6084 | <xsl:choose> |
|---|
| | 6085 | <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)">user</xsl:when> |
|---|
| | 6086 | <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)">group</xsl:when> |
|---|
| | 6087 | <xsl:when test="$who='authenticated'">auth</xsl:when> |
|---|
| | 6088 | <xsl:when test="invert/principal/property/owner">other</xsl:when> |
|---|
| | 6089 | <xsl:when test="principal/property"><xsl:value-of select="name(principal/property/*)"/></xsl:when> |
|---|
| | 6090 | <xsl:when test="invert/principal/property"><xsl:value-of select="name(invert/principal/property/*)"/></xsl:when> |
|---|
| | 6091 | <xsl:otherwise></xsl:otherwise> |
|---|
| | 6092 | </xsl:choose> |
|---|
| | 6093 | </xsl:variable> |
|---|
| | 6094 | <xsl:variable name="shortWho"> |
|---|
| | 6095 | <xsl:choose> |
|---|
| | 6096 | <xsl:when test="contains($who,/bedework/syspars/userPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/userPrincipalRoot)),'/')"/></xsl:when> |
|---|
| | 6097 | <xsl:when test="contains($who,/bedework/syspars/groupPrincipalRoot)"><xsl:value-of select="substring-after(substring-after($who,normalize-space(/bedeworkadmin/syspars/groupPrincipalRoot)),'/')"/></xsl:when> |
|---|
| | 6098 | <xsl:otherwise></xsl:otherwise> <!-- if not user or group, send no who --> |
|---|
| | 6099 | </xsl:choose> |
|---|
| | 6100 | </xsl:variable> |
|---|
| | 6101 | <xsl:choose> |
|---|
| | 6102 | <xsl:when test="invert"> |
|---|
| | 6103 | <a href="{$prefs-setAccess}&how=default&who={$shortWho}&whoType={$whoType}&notWho=yes" title="reset to default"> |
|---|
| | 6104 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="reset to default"/> |
|---|
| | 6105 | </a> |
|---|
| | 6106 | </xsl:when> |
|---|
| | 6107 | <xsl:otherwise> |
|---|
| | 6108 | <a href="{$prefs-setAccess}&how=default&who={$shortWho}&whoType={$whoType}" title="reset to default"> |
|---|
| | 6109 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="reset to default"/> |
|---|
| | 6110 | </a> |
|---|
| | 6111 | </xsl:otherwise> |
|---|
| | 6112 | </xsl:choose> |
|---|
| | 6113 | </td> |
|---|
| | 6114 | </tr> |
|---|
| | 6115 | </xsl:for-each> |
|---|
| | 6116 | </table> |
|---|