docbrown/app/views/comments/_comment_date.erb
Suzanne Aitchison e749626e71
Add horizontal padding on preview card trigger button (#14472)
* tweak trigger button padding on article byline

* tweak padding on comment preview triggers
2021-08-11 12:31:48 +01:00

15 lines
586 B
Text

<span class="color-base-30 px-2 m:pl-0" role="presentation">&bull;</span>
<a href="<%= URL.comment(decorated_comment) %>" class="comment-date crayons-link crayons-link--secondary fs-s">
<time datetime="<%= decorated_comment.published_timestamp %>">
<%= decorated_comment.readable_publish_date %>
</time>
<% if decorated_comment.edited_at.present? %>
&bull; Edited
<span class="hidden m:inline-block">
on <time datetime="<%= decorated_comment.edited_timestamp %>">
<%= decorated_comment.edited_at.strftime('%b %-d') %></time>
</span>
<% end %>
</a>