show exact time on hover
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<div class="item-group with-avatar" id="post-<%= p.id %>">
|
<div class="item-group with-avatar" id="post-<%= p.id %>">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(p.author.avatar(64), p.author, title: p.author.ign) %>
|
<%= link_to(p.author.avatar(64), p.author, title: p.author.ign) %>
|
||||||
<%= render partial: "users/username", locals: { user: p.author } %> <%= link_to p do %><time datetime="<%= p.created_at.to_datetime.rfc3339 %>"><%= p.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= render partial: "users/username", locals: { user: p.author } %> <%= link_to p do %><time title="<%= p.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= p.created_at.to_datetime.rfc3339 %>"><%= p.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
<span class="comment-counter">
|
<span class="comment-counter">
|
||||||
<%= link_to pluralize(p.comments.count, "Comment"), p %>
|
<%= link_to pluralize(p.comments.count, "Comment"), p %>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="item-group post with-avatar" id="post-<%= @post.id %>">
|
<div class="item-group post with-avatar" id="post-<%= @post.id %>">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %>
|
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %>
|
||||||
<%= render partial: "users/username", locals: { user: @post.author } %> <%= link_to p do %><time datetime="<%= @post.created_at.to_datetime.rfc3339 %>"><%= @post.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= render partial: "users/username", locals: { user: @post.author } %> <%= link_to p do %><time title="<%= @post.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @post.created_at.to_datetime.rfc3339 %>"><%= @post.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
<%= link_to "edit", edit_blogpost_path(@post.id), class: "editlink" if mod? %>
|
<%= link_to "edit", edit_blogpost_path(@post.id), class: "editlink" if mod? %>
|
||||||
<div class="clear-right"></div>
|
<div class="clear-right"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="header <%= "op" if c.author.is?(c.blogpost.author) %>">
|
<div class="header <%= "op" if c.author.is?(c.blogpost.author) %>">
|
||||||
<%= link_to(c.author.avatar(64), c.author, title: c.author.ign) %>
|
<%= link_to(c.author.avatar(64), c.author, title: c.author.ign) %>
|
||||||
<%= render partial: "users/username", locals: { user: c.author } %>
|
<%= render partial: "users/username", locals: { user: c.author } %>
|
||||||
<%= link_to "#comment-#{c.id}" do %><time datetime="<%= c.created_at.to_datetime.rfc3339 %>"><%= c.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= link_to "#comment-#{c.id}" do %><time title="<%= c.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= c.created_at.to_datetime.rfc3339 %>"><%= c.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
|
|
||||||
<%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
|
<%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
|
||||||
<div class="clear-right"></div>
|
<div class="clear-right"></div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div class="item-group with-avatar" id="thread-<%= thread.id %>">
|
<div class="item-group with-avatar" id="thread-<%= thread.id %>">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(thread.author.avatar(64), thread.author, title: thread.author.ign) %>
|
<%= link_to(thread.author.avatar(64), thread.author, title: thread.author.ign) %>
|
||||||
<%= render partial: "users/username", locals: { user: thread.author } %> <%= link_to thread do %><time datetime="<%= thread.created_at.to_datetime.rfc3339 %>"><%= thread.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= render partial: "users/username", locals: { user: thread.author } %> <%= link_to thread do %><time title="<%= thread.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= thread.created_at.to_datetime.rfc3339 %>"><%= thread.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
<span class="comment-counter">
|
<span class="comment-counter">
|
||||||
<%= link_to pluralize(thread.replies.count, "Reply"), thread %>
|
<%= link_to pluralize(thread.replies.count, "Reply"), thread %>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
<div class="item-group thread with-avatar" id="thread-<%= @thread.id %>">
|
<div class="item-group thread with-avatar" id="thread-<%= @thread.id %>">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %>
|
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %>
|
||||||
<%= render partial: "users/username", locals: { user: @thread.author } %> <%= link_to p do %><time datetime="<%= @thread.created_at.to_datetime.rfc3339 %>"><%= @thread.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= render partial: "users/username", locals: { user: @thread.author } %> <%= link_to p do %><time title="<%= @thread.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @thread.created_at.to_datetime.rfc3339 %>"><%= @thread.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
<%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (@thread.author.is?(current_user) || mod?) %>
|
<%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (@thread.author.is?(current_user) || mod?) %>
|
||||||
<div class="clear-right"></div>
|
<div class="clear-right"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<% if @thread.edited? %>
|
<% if @thread.edited? %>
|
||||||
<div class="item edited">
|
<div class="item edited">
|
||||||
Last edited <time datetime="<%= @thread.updated_at.to_datetime.rfc3339 %>"><%= @thread.updated_at.strftime("%e %b %Y, %H:%M") %></time> by <%= link_to @thread.editor.name, @thread.editor %>.
|
Last edited <time title="<%= @thread.updated_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @thread.updated_at.to_datetime.rfc3339 %>"><%= @thread.updated_at.strftime("%e %b %Y, %H:%M") %></time> by <%= link_to @thread.editor.name, @thread.editor %>.
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="item content">
|
<div class="item content">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<%= link_to(reply.author.avatar(64), reply.author, title: reply.author.ign) %>
|
<%= link_to(reply.author.avatar(64), reply.author, title: reply.author.ign) %>
|
||||||
<%= render partial: "users/username", locals: { user: reply.author } %>
|
<%= render partial: "users/username", locals: { user: reply.author } %>
|
||||||
<%= link_to "#reply-#{reply.id}" do %><time datetime="<%= reply.created_at.to_datetime.rfc3339 %>"><%= reply.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= link_to "#reply-#{reply.id}" do %><time title="<%= reply.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= reply.created_at.to_datetime.rfc3339 %>"><%= reply.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
|
|
||||||
<%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.thread.author.is?(current_user) %>
|
<%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.thread.author.is?(current_user) %>
|
||||||
<div class="clear-right"></div>
|
<div class="clear-right"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user