summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/js/templates/item.handlebars
diff options
context:
space:
mode:
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>