stories: show edit link for merged stories - merged with i18nx

This commit is contained in:
Carl Chenet 2017-05-23 13:42:02 +02:00
parent e255915723
commit 517f62c886
1 changed files with 4 additions and 0 deletions

View File

@ -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 %>