Skip to content

Commit fa684ce

Browse files
committed
Only show block controls is agent has acl:Write permission
1 parent 8c9a491 commit fa684ce

File tree

1 file changed

+1
-5
lines changed
  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client

1 file changed

+1
-5
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ exclude-result-prefixes="#all"
406406

407407
<!-- show block controls -->
408408

409-
<xsl:template match="div[contains-token(@class, 'block')]" mode="ixsl:onmousemove"> <!-- TO-DO: better selector -->
409+
<xsl:template match="div[contains-token(@class, 'block')][acl:mode() = '&acl;Write']" mode="ixsl:onmousemove"> <!-- TO-DO: better selector -->
410410
<xsl:variable name="dom-x" select="ixsl:get(ixsl:event(), 'clientX')" as="xs:double"/>
411411
<xsl:variable name="dom-y" select="ixsl:get(ixsl:event(), 'clientY')" as="xs:double"/>
412412
<xsl:variable name="rect" select="ixsl:call(., 'getBoundingClientRect', [])"/>
@@ -415,10 +415,6 @@ exclude-result-prefixes="#all"
415415
<xsl:variable name="width" select="ixsl:get($rect, 'width')" as="xs:double"/>
416416
<xsl:variable name="offset-x-treshold" select="120" as="xs:double"/>
417417
<xsl:variable name="offset-y-treshold" select="20" as="xs:double"/>
418-
419-
<!-- <xsl:message>
420-
.block onmousemove @id: <xsl:value-of select="@id"/> $offset-y: <xsl:value-of select="$offset-y"/>
421-
</xsl:message>-->
422418

423419
<xsl:variable name="row-block-controls" select="key('elements-by-class', 'row-block-controls', .)" as="element()"/>
424420
<!-- check that the mouse is on the top edge and show the block controls if they're not already shown -->

0 commit comments

Comments
 (0)