Skip to content

Commit

Permalink
Link to correct place and add admin link
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 27, 2023
1 parent 60fd7dc commit fdb1e15
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions app/views/_tailwind/comments/_actions.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
<%# TODO: Link to correct place %>
<%= link_to "Report this comment", "#", class: "text-fuchsia text-xl hover:underline" %>

<%
=begin
%>

<% if current_user&.admin? %>
<%= link_to "admin", admin_comment_path(comment), class: "comment-action" %>
<% end %>
<% unless current_page?(new_comment_report_path(comment.id)) %>
<%= link_to "report comment", new_comment_report_path(comment), title: "Report this comment by #{comment.name} for removal", class: "comment-action" %>
<%= link_to "Report this comment", new_comment_report_path(comment), class: "text-fuchsia text-xl hover:underline" %>
<% end %>
<% if current_user&.admin? %>
<%= link_to "Admin", admin_comment_path(comment), class: "block text-fuchsia text-xl hover:underline" %>
<% end %>

<%
=end
%>

0 comments on commit fdb1e15

Please sign in to comment.