Added documentable feature to legislation processes

This commit is contained in:
Manuel Ortega
2017-10-18 19:50:34 +02:00
parent c6d683083f
commit 97fb986626
8 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
<% if documents.any? %>
<div class="document-divider no-margin-top margin-bottom padding">
<div class="row">
<div class="small-12 medium-6 column">
<div class="additional-document-link">
<p>
<strong><%= t('proposals.show.title_external_url') %></strong>
</p>
<% documents.each do |document| %>
<p><span class="icon-document"></span>&nbsp;
<%= link_to "#{document.title} <small>(#{documentable_humanized_content_type(document)} | \
#{documentable_humanized_file_size(document)}</small>)".html_safe,
document.attachment.url,
target: "_blank",
title: t("shared.target_blank_html") %>
</p>
<% end %>
</div>
</div>
</div>
</div>
<% end %>