mod reports: enable reporting for members, add dmail reporting.
* Add ability to report dmails. * Enable reports for comments, forum posts, and dmails. * Allow Members to send reports. * Don't allow users to report the same thing twice.
This commit is contained in:
@@ -1 +1 @@
|
||||
Danbooru.notice("Report submitted.");
|
||||
Danbooru.notice("<%= j flash[:notice] %>");
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
<% t.column "Reported", width: "10%" do |report| %>
|
||||
<% if report.model_type == "User" %>
|
||||
<%= link_to_user report.model %>
|
||||
<% elsif report.model_type == "Comment" %>
|
||||
<%= link_to "comment ##{report.model_id}", comment_path(report.model_id) %>
|
||||
<% elsif report.model_type == "ForumPost" %>
|
||||
<%= link_to "forum ##{report.model_id}", forum_post_path(report.model_id) %>
|
||||
<% elsif report.model_type == "Dmail" %>
|
||||
<%= link_to report.model.dtext_shortlink, dmail_path(report.model, key: report.model.key) %>
|
||||
<% else %>
|
||||
<%= link_to report.model.dtext_shortlink, report.model %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% t.column "Reason" do |report| %>
|
||||
|
||||
Reference in New Issue
Block a user