blob: 6650d651a2e96025c33adcdd0fca26016933445b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<div class='snapshot-list'>
<% if (ctx.response.results.length) { %>
<ul>
<% for (let item of ctx.response.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>
|