2016-08-20 22:40:25 +02:00
|
|
|
<li class='uploadable'>
|
2016-08-22 01:25:10 +02:00
|
|
|
<a href class='remove'>
|
2016-08-20 22:40:25 +02:00
|
|
|
<i class='fa fa-remove'></i>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class='thumbnail'>
|
|
|
|
<% if (['image'].includes(ctx.uploadable.type)) { %>
|
|
|
|
|
|
|
|
<%= ctx.makeThumbnail(ctx.uploadable.imageUrl) %>
|
|
|
|
|
|
|
|
<% } else { %>
|
|
|
|
|
|
|
|
<%= ctx.makeThumbnail(null) %>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='file'>
|
|
|
|
<strong><%= ctx.uploadable.name %></strong>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='safety'>
|
|
|
|
<% for (let safety of ['safe', 'sketchy', 'unsafe']) { %>
|
|
|
|
<%= ctx.makeRadio({
|
|
|
|
name: 'safety-' + ctx.uploadable.key,
|
|
|
|
value: safety,
|
|
|
|
text: safety[0].toUpperCase() + safety.substr(1),
|
|
|
|
selectedValue: ctx.uploadable.safety,
|
|
|
|
}) %>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
2016-08-23 21:50:22 +02:00
|
|
|
<% if (ctx.canUploadAnonymously) { %>
|
|
|
|
<div class='anonymous'>
|
|
|
|
<%= ctx.makeCheckbox({
|
|
|
|
text: 'Upload anonymously',
|
|
|
|
name: 'anonymous',
|
|
|
|
checked: ctx.uploadable.anonymous,
|
|
|
|
}) %>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
2016-08-20 22:40:25 +02:00
|
|
|
</li>
|