diff --git a/app/views/proposals_dashboard/_document.html.erb b/app/views/proposals_dashboard/_document.html.erb new file mode 100644 index 000000000..c5b688575 --- /dev/null +++ b/app/views/proposals_dashboard/_document.html.erb @@ -0,0 +1,10 @@ +
+ <%= link_to document.attachment.url, target: '_blank' do %> + <%= document.title %> + ( + <%= document.humanized_content_type %> + | + <%= number_to_human_size(document.attachment_file_size, precision: 2) %> + ) + <% end %> +
diff --git a/app/views/proposals_dashboard/_proposed_action.html.erb b/app/views/proposals_dashboard/_proposed_action.html.erb index a82cd2a09..3dc82f1f8 100644 --- a/app/views/proposals_dashboard/_proposed_action.html.erb +++ b/app/views/proposals_dashboard/_proposed_action.html.erb @@ -21,8 +21,10 @@ <% end %> <% proposed_action.links.each do |link| %> - <%= link_to link.label, link.url, target: '_blank' %> +<%= link_to link.label, link.url, target: '_blank' %>
<% end %> + + <%= render partial: 'document', collection: proposed_action.documents %> <% end %>