Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Commits
2fa4764a
Verified
Commit
2fa4764a
authored
5 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: cleanup, doc in CHANGELOG
parent
5ee6e104
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+6
-1
6 additions, 1 deletion
CHANGELOG.md
src/core/xsl/filesystem.xsl
+18
-0
18 additions, 0 deletions
src/core/xsl/filesystem.xsl
with
24 additions
and
1 deletion
CHANGELOG.md
+
6
−
1
View file @
2fa4764a
...
...
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated (for soon-to-be removed features)
### Removed (for now removed features)
### Removed (for now removed features)
### Security (in case of vulnerabilities)
...
...
@@ -92,6 +92,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated (for soon-to-be removed features)
*
Image Preview in the FileSystem. The functionality is to be replaced by real
thumbnails, which cover also non-image data-formats. The thumbnails resource
is part of the new file system API of the CaosDB Server which is currently
under development.
### Removed (for now removed features)
*
Removed non-informative tests for webcaosdb.css
...
...
This diff is collapsed.
Click to expand it.
src/core/xsl/filesystem.xsl
+
18
−
0
View file @
2fa4764a
...
...
@@ -48,6 +48,21 @@
</xsl:choose>
</xsl:if>
</xsl:template>
<!-- Thumbnails of images (Deprecated)-->
<xsl:template
name=
"entity-body-thumbnail"
>
<xsl:param
name=
"path"
/>
<xsl:if
test=
"contains('.jpg.gif.png.svg',translate(substring($path, string-length($path) - 3), 'JPGIFNSV', 'jpgifnsv'))"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<img
class=
"entity-image-preview"
style=
"max-width: 200px; max-height: 140px;"
>
<xsl:attribute
name=
"src"
>
<xsl:value-of
select=
"concat($filesystempath,$path)"
/>
</xsl:attribute>
</img>
</div>
</div>
</xsl:if>
</xsl:template>
<xsl:template
match=
"dir"
mode=
"filesystem-item"
>
<li
class=
"list-group-item"
>
<a
class=
"caosdb-fs-dir"
>
...
...
@@ -84,6 +99,9 @@
</a>
</div>
</div>
<xsl:call-template
name=
"entity-body-thumbnail"
>
<xsl:with-param
name=
"path"
select=
"substring-after($file-uri,$filesystempath)"
/>
</xsl:call-template>
</li>
</xsl:template>
<xsl:template
match=
"/Response/dir"
mode=
"top-level-data"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment