* Add article decorator published_timestamp * Use time HTML5 element and refactor date in partial * Add published_timestamp to Article Adding `published_timestamp` to the homepage we can then use JS to render the full timestamp localized for the user. We've also added the timestamp to the index and the API * Display article published timestamp on hover * Use time also in the article show page * Add timestamp to bottom articles as well * Remove published_timestamp from index because it is not used * Fix broken specs * Add more article dates specs * Refactor date initializers
24 lines
987 B
Text
24 lines
987 B
Text
<div class="liquid-comment">
|
|
<div class="details">
|
|
<a href="/<%= comment.user.username %>">
|
|
<img class="profile-pic" src="<%= ProfileImage.new(comment.user).get(50) %>" alt="<%= comment.user.username %> profile image" />
|
|
</a>
|
|
<a href="/<%= comment.user.username %>">
|
|
<span class="comment-username"><%= comment.user.name %></span>
|
|
</a>
|
|
<% if comment.user.twitter_username.present? %>
|
|
<a href="https://twitter.com/<%= comment.user.twitter_username %>">
|
|
<img src="/assets/twitter-logo.svg" class="icon-img" alt="twitter" />
|
|
</a>
|
|
<% end %>
|
|
<% if comment.user.github_username.present? %>
|
|
<a href="https://github.com/<%= comment.user.github_username %>">
|
|
<img src="/assets/github-logo.svg" class="icon-img" alt="github" />
|
|
</a>
|
|
<% end %>
|
|
<%= render "comments/comment_date", decorated_comment: comment.decorate %>
|
|
</div>
|
|
<div class="body">
|
|
<%= comment.processed_html.html_safe %>
|
|
</div>
|
|
</div>
|