Skip to content
Snippets Groups Projects
Commit a1113885 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'f-details' into 'dev'

Add details element

Closes #167

See merge request !5
parents 19eb29e6 d8eed7a6
No related branches found
No related tags found
2 merge requests!37prepare release v0.3.1,!5Add details element
Pipeline #6101 passed
......@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
the module documentation for more information.
### Changed (for changes in existing functionality)
- The heading attributes datatype, path, checksum and size are now placed
in a `details` html element.
### Deprecated (for soon-to-be removed features)
......
......@@ -708,3 +708,12 @@ footer {
margin-left: 2ch;
margin-right: 2ch;
}
details summary {
cursor: pointer;
display: list-item;
}
details summary > * {
display: inline;
}
......@@ -175,9 +175,15 @@
</div>
<xsl:apply-templates mode="entity-heading-attributes" select="@description"/>
<xsl:apply-templates mode="entity-heading-attributes-datatype" select="@datatype"/>
<xsl:apply-templates mode="entity-heading-attributes-path" select="@path"/>
<xsl:apply-templates mode="entity-heading-attributes" select="@*[not(contains('+checksum+cuid+id+name+description+datatype+path+',concat('+',name(),'+')))]"/>
<xsl:apply-templates mode="entity-heading-attributes-checksum" select="@checksum"/>
<xsl:apply-templates mode="entity-heading-attributes" select="@*[not(contains('+checksum+size+cuid+id+name+description+datatype+path+',concat('+',name(),'+')))]"/>
<xsl:if test="@*[contains('+path+checksum+size+',concat('+',name(),'+'))]">
<details>
<summary><small>File Details</small></summary>
<xsl:apply-templates mode="entity-heading-attributes-path" select="@path"/>
<xsl:apply-templates mode="entity-heading-attributes-checksum" select="@checksum"/>
<xsl:apply-templates mode="entity-heading-attributes" select="@size"/>
</details>
</xsl:if>
</div>
<xsl:apply-templates mode="entity-action-panel" select="."/>
<div class="panel-body caosdb-entity-panel-body">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment