Added documentable feature to legislation processes
This commit is contained in:
22
app/views/documents/_additional_documents.html.erb
Normal file
22
app/views/documents/_additional_documents.html.erb
Normal 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>
|
||||
<%= 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 %>
|
||||
Reference in New Issue
Block a user