client: only show date taken on relevant post type
- [client] only show date taken section on "image" or "video" post type, since only they can possess date taken metadata (`client/html/post_readonly_sidebar.tpl`)
This commit is contained in:
parent
1bcf7e73ad
commit
289e49953b
1 changed files with 4 additions and 2 deletions
|
@ -31,8 +31,10 @@
|
|||
</section>
|
||||
|
||||
<section class='date-taken'>
|
||||
<i class='fa fa-clock-o'></i>Taken on
|
||||
<%= ctx.makeUserFriendlyTime(ctx.post.dateTaken) %>
|
||||
<% if (ctx.post.type == "image" || ctx.post.type == "video" ) { %>
|
||||
<i class='fa fa-clock-o'></i>Taken on
|
||||
<%= ctx.makeUserFriendlyTime(ctx.post.dateTaken) %>
|
||||
<% } %>
|
||||
</section>
|
||||
|
||||
<% if (ctx.enableSafety) { %>
|
||||
|
|
Reference in a new issue