Merge pull request #5093 from AntonKhorev/diary-comments-shallow-paths
Use shallow routes for diary comments
This commit is contained in:
commit
b9988bdbc8
3 changed files with 16 additions and 16 deletions
|
@ -13,9 +13,9 @@
|
|||
<% if can? :hide, DiaryComment %>
|
||||
<span>
|
||||
<% if diary_comment.visible? %>
|
||||
<%= link_to t(".hide_link"), hide_diary_comment_path(diary_comment.diary_entry.user, diary_comment.diary_entry, diary_comment), :method => :post, :data => { :confirm => t(".confirm") } %>
|
||||
<%= link_to t(".hide_link"), hide_diary_comment_path(diary_comment), :method => :post, :data => { :confirm => t(".confirm") } %>
|
||||
<% else %>
|
||||
<%= link_to t(".unhide_link"), unhide_diary_comment_path(diary_comment.diary_entry.user, diary_comment.diary_entry, diary_comment), :method => :post, :data => { :confirm => t(".confirm") } %>
|
||||
<%= link_to t(".unhide_link"), unhide_diary_comment_path(diary_comment), :method => :post, :data => { :confirm => t(".confirm") } %>
|
||||
<% end %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue