read -> show

This commit is contained in:
byte[] 2019-12-15 11:33:43 -05:00
parent 627dfbefdb
commit 42e1d29cd4
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ div
i.fa.fa-flag>
' Report
= if not is_nil(@comment.edited_at) and can?(@conn, :read, @comment) do
= if not is_nil(@comment.edited_at) and can?(@conn, :show, @comment) do
br
a href=Routes.image_comment_history_path(@conn, :index, @comment.image, @comment)
' Edited

View file

@ -6,7 +6,7 @@ div
i.fa.fa-flag>
' Report
= if not is_nil(@post.edited_at) and can?(@conn, :read, @post) do
= if not is_nil(@post.edited_at) and can?(@conn, :show, @post) do
br
a href=Routes.forum_topic_post_history_path(@conn, :index, @post.topic.forum, @post.topic, @post)
' Edited