diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-01 20:53:35 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-04 09:53:45 +0200 |
commit | b574d1c81474b0dbc94a32ae18ec3d68a81db51a (patch) | |
tree | 4d261a6e119bcdc9835a739cb860a637c0bc854e /apps/files_versions/js/templates/item.handlebars | |
parent | b0fd31496b5edb95264c0ea3139692b5969f40e0 (diff) | |
download | nextcloud-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.handlebars | 22 |
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> |