Skip to content

Commit

Permalink
Blocks nested within ldh:Object do not show their own progress bars
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Jan 3, 2025
1 parent 502abfc commit 9bd77e8
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ extension-element-prefixes="ixsl"
<xsl:param name="about" select="@rdf:about" as="xs:anyURI?"/>
<xsl:param name="typeof" select="rdf:type/@rdf:resource/xs:anyURI(.)" as="xs:anyURI*"/>
<xsl:param name="draggable" select="$acl:mode = '&acl;Write'" as="xs:boolean?"/>
<xsl:param name="show-row-block-controls" select="true()" as="xs:boolean"/>

<xsl:apply-templates select="key('resources', .)" mode="bs2:RowContentHeader"/>

Expand All @@ -499,24 +500,27 @@ extension-element-prefixes="ixsl"
</xsl:if>

<div class="span12 progress progress-striped active">
<div class="row-fluid row-block-controls" style="position: relative; top: 30px; margin-top: -30px; z-index: 1;">
<div class="span12">
<xsl:if test="$acl:mode = '&acl;Write'">
<button type="button" class="btn btn-edit pull-right" style="display: none;">
<xsl:apply-templates select="key('resources', '&ac;EditMode', document(ac:document-uri('&ac;')))" mode="ac:label"/>
</button>
</xsl:if>
<div class="row-fluid">
<div style="width: 25%;" class="span12 bar"></div>
<xsl:if test="$show-row-block-controls">
<div class="row-fluid row-block-controls" style="position: relative; top: 30px; margin-top: -30px; z-index: 1;">
<div class="span12">
<xsl:if test="$acl:mode = '&acl;Write'">
<button type="button" class="btn btn-edit pull-right" style="display: none;">
<xsl:apply-templates select="key('resources', '&ac;EditMode', document(ac:document-uri('&ac;')))" mode="ac:label"/>
</button>
</xsl:if>
<div class="row-fluid">
<div style="width: 25%;" class="span12 bar"></div>
</div>
</div>
</div>
</div>
</xsl:if>

<!-- client-side $container -->
<xsl:next-match>
<xsl:with-param name="id" select="()"/> <!-- only block <div>s have @id-->
<xsl:with-param name="about" select="()"/> <!-- only block <div>s have @about -->
<xsl:with-param name="class" select="if (rdf:type/@rdf:resource = '&ldh;Object') then 'row-fluid block' else 'row-fluid'"/> <!-- only ldh:Object can nest blocks -->
<xsl:with-param name="show-row-block-controls" select="if (rdf:type/@rdf:resource = '&ldh;Object') then false() else true()"/> <!-- blocks nested within ldh:Object do not show their own progress bars -->
</xsl:next-match>
</div>
</div>
Expand Down

0 comments on commit 9bd77e8

Please sign in to comment.