@@ -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>
|
||||
|
||||
2
app/views/dmails/ham.js.erb
Normal file
2
app/views/dmails/ham.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
Danbooru.notice("Message marked as not spam");
|
||||
$("#spam-links").hide();
|
||||
@@ -29,6 +29,15 @@
|
||||
| <%= 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? %>
|
||||
<span id="spam-links">
|
||||
<% if @dmail.is_spam? %>
|
||||
| <%= link_to "Not spam", ham_dmail_path(@dmail), remote: :true, method: :post %>
|
||||
<% else %>
|
||||
| <%= link_to "Mark as spam", spam_dmail_path(@dmail), remote: :true, method: :post %>
|
||||
<% end %>
|
||||
</span>
|
||||
<% end %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
2
app/views/dmails/spam.js.erb
Normal file
2
app/views/dmails/spam.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
Danbooru.notice("Message marked as spam");
|
||||
$("#spam-links").hide();
|
||||
Reference in New Issue
Block a user