Fixes #214
redesign how proposed actions are shown in progress view inside the proposal's dashboard
This commit is contained in:
10
app/views/proposals_dashboard/_document.html.erb
Normal file
10
app/views/proposals_dashboard/_document.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<p>
|
||||
<%= 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 %>
|
||||
</p>
|
||||
@@ -21,8 +21,10 @@
|
||||
<% end %>
|
||||
|
||||
<% proposed_action.links.each do |link| %>
|
||||
<%= link_to link.label, link.url, target: '_blank' %>
|
||||
<p><%= link_to link.label, link.url, target: '_blank' %></p>
|
||||
<% end %>
|
||||
|
||||
<%= render partial: 'document', collection: proposed_action.documents %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user