akismet integration
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<li><%= link_to "All", all_dmails_path(set_default_folder: true) %></li>
|
||||
<li><%= link_to "Received", received_dmails_path(set_default_folder: true) %></li>
|
||||
<li><%= link_to "Sent", sent_dmails_path(set_default_folder: true) %></li>
|
||||
<li><%= link_to "Spam", spam_dmails_path %></li>
|
||||
<li>|</li>
|
||||
<li><%= link_to "New", new_dmail_path %></li>
|
||||
<li><%= link_to "Mark all as read", {:controller => "dmails", :action => "mark_all_as_read"}, :method => :post, :remote => true %></li>
|
||||
|
||||
1
app/views/dmails/ham.js.erb
Normal file
1
app/views/dmails/ham.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
Danbooru.notice("Message marked as not spam");
|
||||
@@ -29,6 +29,13 @@
|
||||
| <%= link_to "Forward", new_dmail_path(:respond_to_id => @dmail, :forward => true) %>
|
||||
| <%= link_to "Filter messages like these", edit_maintenance_user_dmail_filter_path(:dmail_id => @dmail.id) %>
|
||||
| <%= link_to "Permalink", dmail_path(@dmail, :key => @dmail.key), :title => "Use this URL to privately share with a moderator" %>
|
||||
<% if CurrentUser.is_gold? %>
|
||||
<% if @dmail.is_spam? %>
|
||||
| <%= link_to "Not spam", ham_dmail_path(@dmail) %>
|
||||
<% else %>
|
||||
| <%= link_to "Mark as spam", spam_dmail_path(@dmail) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
1
app/views/dmails/spam.js.erb
Normal file
1
app/views/dmails/spam.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
Danbooru.notice("Message marked as spam");
|
||||
Reference in New Issue
Block a user