diff options
| author | rr- | 2016-08-17 13:01:17 +0200 |
|---|---|---|
| committer | rr- | 2016-08-20 13:01:17 +0200 |
| commit | 9014baab92007fcdd624be9e81e45ba92dce97ae (patch) | |
| tree | c6b1881c5662dde840f6e3a2695c8c610c8900e2 /client/html/snapshots_page.tpl | |
| parent | 80af79779d01fe949af84fdb43f6b82085cd4a9c (diff) | |
client/snapshots: add snapshots browser
Diffstat (limited to 'client/html/snapshots_page.tpl')
| -rw-r--r-- | client/html/snapshots_page.tpl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/client/html/snapshots_page.tpl b/client/html/snapshots_page.tpl new file mode 100644 index 0000000..c84e19f --- /dev/null +++ b/client/html/snapshots_page.tpl @@ -0,0 +1,31 @@ +<div class='snapshot-list'> + <% if (ctx.results.length) { %> + <ul> + <% for (let item of ctx.results) { %> + <li> + <div class='header operation-<%= item.operation %>'> + <span class='time'> + <%= ctx.makeRelativeTime(item.time) %> + </span> + + <%= ctx.makeUserLink(item.user) %> + + <%= item.operation %> + + <%= ctx.makeResourceLink(item.type, item.id) %> + </div> + + <div class='details'><!-- + --><% if (item.operation === 'created') { %><!-- + --><%= ctx.makeItemCreation(item.type, item.data) %><!-- + --><% } else if (item.operation === 'modified') { %><!-- + --><%= ctx.makeItemModification(item.type, item.data) %><!-- + --><% } else if (item.operation === 'merged') { %><!-- + -->Merged to <%= ctx.makeResourceLink(item.data[0], item.data[1]) %><!-- + --><% } %><!-- + --></div> + </li> + <% } %> + </ul> + <% } %> +</div> |