adds styles to document link on polls show

This commit is contained in:
decabeza
2017-10-07 14:46:55 +02:00
parent 38f100d183
commit 12427e1ce5

View File

@@ -106,12 +106,19 @@
<% end %>
<% if answer.documents.present? %>
<div class="document-link">
<p>
<span class="icon-document"></span>&nbsp;
<strong><%= t("polls.show.documents") %></strong>
</p>
<% answer.documents.each do |document| %>
<%= link_to document.title,
document.attachment.url,
target: "_blank",
rel: "nofollow" %>
rel: "nofollow" %><br>
<% end %>
</div>
<% end %>
</div>
<% end %>