summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/js/templates/item.handlebars
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-01 20:53:35 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-04 09:53:45 +0200
commitb574d1c81474b0dbc94a32ae18ec3d68a81db51a (patch)
tree4d261a6e119bcdc9835a739cb860a637c0bc854e /apps/files_versions/js/templates/item.handlebars
parentb0fd31496b5edb95264c0ea3139692b5969f40e0 (diff)
downloadnextcloud-server-b574d1c81474b0dbc94a32ae18ec3d68a81db51a.tar.gz
nextcloud-server-b574d1c81474b0dbc94a32ae18ec3d68a81db51a.zip
Move files_versions to compiled handlebars templates
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions/js/templates/item.handlebars')
-rw-r--r--apps/files_versions/js/templates/item.handlebars22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/files_versions/js/templates/item.handlebars b/apps/files_versions/js/templates/item.handlebars
new file mode 100644
index 00000000000..6d11b9c0888
--- /dev/null
+++ b/apps/files_versions/js/templates/item.handlebars
@@ -0,0 +1,22 @@
+<li data-revision="{{timestamp}}">
+ <div>
+ <div class="preview-container">
+ <img class="preview" src="{{previewUrl}}" width="44" height="44"/>
+ </div>
+ <div class="version-container">
+ <div>
+ <a href="{{downloadUrl}}" class="downloadVersion"><img src="{{downloadIconUrl}}" />
+ <span class="versiondate has-tooltip live-relative-timestamp" data-timestamp="{{millisecondsTimestamp}}" title="{{formattedTimestamp}}">{{relativeTimestamp}}</span>
+ </a>
+ </div>
+ {{#hasDetails}}
+ <div class="version-details">
+ <span class="size has-tooltip" title="{{altSize}}">{{humanReadableSize}}</span>
+ </div>
+ {{/hasDetails}}
+ </div>
+ {{#canRevert}}
+ <a href="#" class="revertVersion" title="{{revertLabel}}"><img src="{{revertIconUrl}}" /></a>
+ {{/canRevert}}
+ </div>
+</li>