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:
skybldev 2021-11-28 23:45:44 -05:00
parent 1bcf7e73ad
commit 289e49953b

View file

@ -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) { %>