Skip to content

Commit

Permalink
fixed spam button in notes partial (publiclab#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViditChitkara authored and Souravirus committed Mar 12, 2018
1 parent 2489b98 commit 4d1e788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/notes/_notes.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<p><%= raw strip_tags(sanitize(RDiscount.new(node.body_preview).to_html)) if node.body %></p>
<% end %>
<p>
<% if logged_in_as(['admin','moderator']) %><a class="btn btn-default btn-xs" href="/moderate/spam/<%= node.id %>"><i class="fa fa-ban"></i> <%= t('notes._notes.spam') %></a><% end %>
<a class="btn btn-default" href="<%= node.path %>"><%= t('notes._notes.read_more') %></a>
<% if logged_in_as(['admin','moderator']) %><a class="btn btn-default" href="/moderate/spam/<%= node.id %>"><i class="fa fa-ban"></i> <%= t('notes._notes.spam') %></a><% end %>
<a class="btn btn-default" style="float: right;" href="<%= node.path %>"><%= t('notes._notes.read_more') %></a>
</p>
<% end %>
<% if params[:mod] %>
Expand Down

0 comments on commit 4d1e788

Please sign in to comment.