stories: show edit link for merged stories - merged with i18nx
This commit is contained in:
parent
e255915723
commit
517f62c886
|
@ -75,6 +75,10 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
|
|||
ms.html_class_for_user %>"><%= ms.user.username %></a>
|
||||
|
||||
<%= distance_of_time_in_words(ms.created_at, Time.now, :strip_about => true) %>
|
||||
<% if ms.is_editable_by_user?(@user) %>
|
||||
|
|
||||
<a href="<%= edit_story_path(ms.short_id) %>"><%= t('.edit') %></a>
|
||||
<% end %>
|
||||
</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue