Skip to content

Commit

Permalink
Update _flag_list.html.erb (#10688)
Browse files Browse the repository at this point in the history
Formatted the text in mailto body
  • Loading branch information
Suprajashetty authored Feb 4, 2022
1 parent 0a7eb5f commit b5dcd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/dashboard/_flag_list.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="pop-content" style="padding: 20px; border-radius: 10px;">
<a class="btn btn-primary btn-block" href="mailto:[email protected]?subject=Reporting+spam+on+Public+Lab&body=Hi,+I+found+this+item+that+looks+like+spam+or+needs+to+be+moderated:+<%= node.title.gsub(/ /,'+') %>+https://publiclab.org/n/<%= node.id %>+by+https://publiclab.org/profile/<%= node.author.username %>+Thanks!" role="button"> <i class="fa fa-flag fa-white"></i> <%= translation('dashboard._flag_list.flag_post') %></a>
<a class="btn btn-primary btn-block" href="mailto:[email protected]?subject=Reporting spam on Public Lab&body=Hi, I found this item that looks like spam or needs to be moderated: <%= node.title.gsub(/ /,'+') %> https://publiclab.org/n/<%= node.id %> by https://publiclab.org/profile/<%= node.author.username %> Thanks!" role="button"> <i class="fa fa-flag fa-white"></i> <%= translation('dashboard._flag_list.flag_post') %></a>
<% if logged_in_as(['admin','moderator']) %>
<a class="btn btn-primary btn-block" href="/moderate/spam/<%= node.id %>" role="button"> <i class="fa fa-ban fa-white"></i> Spam Post </a>
<% else %>
Expand Down

0 comments on commit b5dcd6a

Please sign in to comment.