Skip to content

Commit

Permalink
Add links to spam domain view
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Aug 30, 2017
1 parent 9bf1904 commit d28a2ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/views/spam_domains/show.html.erb
@@ -1,4 +1,15 @@
<h3>Domain: <code><%= @domain.domain %></code></h3>
<% if user_signed_in? && (current_user.has_role?(:core) || current_user.has_role?(:admin)) %>
<p>
<% if current_user.has_role?(:core) %>
<%= link_to 'Edit', edit_spam_domain_path(@domain) %>
<% end %>
<% if current_user.has_role?(:admin) %>
&middot; <%= link_to 'Delete', destroy_spam_domain_path(@domain), method: :delete,
data: { confirm: 'Are you sure?' }, class: 'text-danger' %>
<% end %>
</p>
<% end %>
<div class="clearfix domain-tag-list">
<p class="pull-left">
<% if @domain.domain_tags.any? %>
Expand Down

0 comments on commit d28a2ca

Please sign in to comment.