szurubooru/client/html/post_upload_row.tpl

43 lines
1.1 KiB
Smarty
Raw Normal View History

2016-08-20 22:40:25 +02:00
<li class='uploadable'>
<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>
<% 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>