nextcloud/apps/files_versions/js/templates/item.handlebars

23 lines
797 B
Handlebars

<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>