Skip to content

Commit

Permalink
Close #868
Browse files Browse the repository at this point in the history
  • Loading branch information
thesecretmaster committed Sep 9, 2021
1 parent a1b9e5a commit 5e023d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/domain_links/_link.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<div class="domain-link">
<% linked_domain = link.left == domain ? link.right : link.left %>
<strong><%= linked_domain.blank? ? "null domain" : link_to(linked_domain.domain, spam_domain_path(linked_domain)) %></strong>
<% linked_domain.domain_tags.standard.each do |t| %>
<%= render 'domain_tags/tag', tag: t, domain: linked_domain %>
<% end %>
<span class="text-muted"><%= link.link_type %></span>
<% if link.comments.present? %>
<a href="#" data-toggle="modal" data-target="#link-modal-<%= link.id %>" class="text-warning">
Expand Down Expand Up @@ -28,4 +31,4 @@
<span class="pull-right">
<%= link_to 'Delete', destroy_domain_link_path(link), method: :delete, data: { confirm: 'Are you sure?' }, class: 'text-danger' %>
</span>
</div>
</div>

0 comments on commit 5e023d4

Please sign in to comment.