make appeals editable

This commit is contained in:
Lily
2021-06-29 14:34:08 -03:00
parent 4b6e706e5e
commit 8d49d35ab1
4 changed files with 45 additions and 1 deletions

View File

@@ -6,6 +6,10 @@
<span class="prose"><em>no reason</em></span>
<% end %>
<% if policy(appeal).edit? %>
(<%= link_to "edit", edit_post_appeal_url(appeal) %>)
<% end %>
(<%= link_to_user(appeal.creator) %>, <%= time_ago_in_words_tagged(appeal.created_at) %>)
</li>
</ul>