post tooltips: use more compact timestamps.
* Use more compact timestamps in post tooltips ("39 minutes ago" -> "39m ago")
* Move timestamps to the right (after favcount + score).
* Switch favorite icon from star to heart.
This commit is contained in:
@@ -4,11 +4,9 @@
|
||||
<%= link_to_user @post.uploader %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to time_ago_in_words_tagged(@post.created_at, compact: true), posts_path(tags: "date:#{@post.created_at.strftime("%Y-%m-%d")}"), class: "post-tooltip-date post-tooltip-info" %>
|
||||
|
||||
<span class="post-tooltip-favorites post-tooltip-info">
|
||||
<span><%= @post.fav_count %></span>
|
||||
<i class="far fa-star fa-xs"></i>
|
||||
<i class="far fa-heart fa-xs"></i>
|
||||
</span>
|
||||
|
||||
<span class="post-tooltip-score post-tooltip-info">
|
||||
@@ -22,6 +20,10 @@
|
||||
<i class="far fa-comments fa-xs"></i>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
<%= link_to posts_path(tags: "date:#{@post.created_at.strftime("%Y-%m-%d")}"), class: "post-tooltip-date post-tooltip-info" do %>
|
||||
<%= time_ago_in_words_tagged(@post.created_at, compact: true) %> ago
|
||||
<% end %>
|
||||
</span>
|
||||
|
||||
<span class="post-tooltip-header-right">
|
||||
|
||||
Reference in New Issue
Block a user