diff --git a/app/views/dashboard/_proposed_action.html.erb b/app/views/dashboard/_proposed_action.html.erb index 87494365a..5c653efef 100644 --- a/app/views/dashboard/_proposed_action.html.erb +++ b/app/views/dashboard/_proposed_action.html.erb @@ -10,21 +10,32 @@ <% end %> <% end %> -

<%= proposed_action.title %>

- <% if proposed_action.proposals.where(id: proposal.id).any? %> -

<%= l(proposed_action.executed_actions.find_by(proposal: proposal).executed_at.to_date) %>

+

+ <%= l(proposed_action.executed_actions.find_by(proposal: proposal).executed_at.to_date) %> +

+ <% if proposed_action.description.present? %> + + <%= t("dashboard.recommended_actions.show_description") %> + +
+ <%= proposed_action.description.html_safe %> +
+ <% end %> <% else %> <% if proposed_action.description.present? %> -

<%= proposed_action.description.html_safe %>

+ + <%= t("dashboard.recommended_actions.show_description") %> + +
+ <%= proposed_action.description.html_safe %> +
<% end %> - <% proposed_action.links.each do |link| %>

<%= link_to link.label, link.url, target: "_blank" %>

<% end %> - <%= render partial: 'document', collection: proposed_action.documents %> <% end %>