<%= 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) %>
<% else %>
- <% unless proposed_action.short_description.blank? %>
+ <% if proposed_action.short_description.present? %>
<%= proposed_action.short_description %>
<% 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 %>
diff --git a/app/views/dashboard/_recommended_actions.html.erb b/app/views/dashboard/_recommended_actions.html.erb
index 858cca11d..62daeac8d 100644
--- a/app/views/dashboard/_recommended_actions.html.erb
+++ b/app/views/dashboard/_recommended_actions.html.erb
@@ -1,9 +1,5 @@
<% if proposed_actions.any? %>
-
-
-
<%= t("dashboard.recommended_actions.title") %>
-
-
+
<%= t("dashboard.recommended_actions.title") %>
<%= render partial: 'proposed_action', collection: proposed_actions %>
<% end %>
diff --git a/app/views/dashboard/_resource.html.erb b/app/views/dashboard/_resource.html.erb
index b5a5d4934..d9a66ac67 100644
--- a/app/views/dashboard/_resource.html.erb
+++ b/app/views/dashboard/_resource.html.erb
@@ -1,38 +1,23 @@
-
-
-
-
- <% if resource.executed_for?(proposal) %>
-
- <% elsif resource.active_for?(proposal) %>
-
- <% else %>
-
- <% end %>
-
-
<%= resource.title %>
-
- <%= resource.short_description %>
-
-
+
+
+
<%= resource.title %>
+
+ <%= resource.short_description %>
+
-
+
<% if resource.executed_for?(proposal) %>
-
- <%= link_to t("dashboard.resource.view_resource"),
- new_request_proposal_dashboard_action_path(proposal, resource),
- class: 'button success' %>
-
+ <%= link_to t("dashboard.resource.view_resource"),
+ new_request_proposal_dashboard_action_path(proposal, resource),
+ class: "button" %>
<% elsif resource.requested_for?(proposal) %>
<%= t("dashboard.resource.resource_requested") %>
<% elsif resource.active_for?(proposal) %>
-
- <%= link_to t("dashboard.resource.request_resource"),
- new_request_proposal_dashboard_action_path(proposal, resource),
- class: 'button primary' %>
-
+ <%= link_to t("dashboard.resource.request_resource"),
+ new_request_proposal_dashboard_action_path(proposal, resource),
+ class: "button" %>
<% else %>
<%== resoure_availability_label(resource) %>
@@ -41,4 +26,3 @@
-
diff --git a/app/views/dashboard/_resources.html.erb b/app/views/dashboard/_resources.html.erb
index b66e6315c..a2cbf1baf 100644
--- a/app/views/dashboard/_resources.html.erb
+++ b/app/views/dashboard/_resources.html.erb
@@ -1,11 +1,7 @@
-
-
-
-
<%= t("dashboard.resources.available_resources") %>
-
-
+
+
<%= t("dashboard.resources.available_resources") %>
-
+
<%= render 'poll_resource' %>
<%= render 'mailing_resource' %>
<%= render 'poster_resource' %>
diff --git a/app/views/dashboard/actions/new_request.html.erb b/app/views/dashboard/actions/new_request.html.erb
index 8d552891e..582f74a80 100644
--- a/app/views/dashboard/actions/new_request.html.erb
+++ b/app/views/dashboard/actions/new_request.html.erb
@@ -1,26 +1,25 @@
<% content_for :action_title, dashboard_action.title %>
-
+
<%== dashboard_action.description %>
<%= render 'dashboard/form' %>
+ <%= render 'documents/documents', documents: dashboard_action.documents %>
+
<% if dashboard_action.links.any? %>
-
-
<%= t("dashboard.new_request.links") %>
+
+
<%= t("dashboard.new_request.links") %>
<% dashboard_action.links.each do |link| %>
<% if link.open_in_new_tab %>
- <%= link_to link.label, link.url, target: '_blank' %>
+
<%= link_to link.label, link.url, target: "_blank" %>
<% else %>
- <%= link_to link.label, link.url %>
+
<%= link_to link.label, link.url %>
<% end %>
<% end %>
<% end %>
-
- <%= render 'documents/documents', documents: dashboard_action.documents %>
-
diff --git a/app/views/dashboard/progress.html.erb b/app/views/dashboard/progress.html.erb
index a7bd047eb..03f1cd5c6 100644
--- a/app/views/dashboard/progress.html.erb
+++ b/app/views/dashboard/progress.html.erb
@@ -1,24 +1,22 @@
<% if proposal.published? %>
<% content_for :action_title, t("dashboard.progress.title") %>
-
+
-
- <%= link_to t("dashboard.progress.group_by_date"),
- progress_proposal_dashboard_path(proposal),
- class: "button #{daily_selected_class}" %>
- <%= link_to t("dashboard.progress.group_by_week"),
- progress_proposal_dashboard_path(proposal, group_by: 'week'),
- class: "button #{weekly_selected_class}" %>
- <%= link_to t("dashboard.progress.group_by_month"),
- progress_proposal_dashboard_path(proposal, group_by: 'month'),
- class: "button #{monthly_selected_class}" %>
-
+ <%= link_to t("dashboard.progress.group_by_date"),
+ progress_proposal_dashboard_path(proposal),
+ class: "button medium #{daily_selected_class}" %>
+ <%= link_to t("dashboard.progress.group_by_week"),
+ progress_proposal_dashboard_path(proposal, group_by: 'week'),
+ class: "button medium #{weekly_selected_class}" %>
+ <%= link_to t("dashboard.progress.group_by_month"),
+ progress_proposal_dashboard_path(proposal, group_by: 'month'),
+ class: "button medium #{monthly_selected_class}" %>
-
"
data-proposal-success="<%= Setting["votes_for_proposal_success"] %>"
data-proposal-resources-url="<%= proposal_dashboard_resources_path(proposal, format: :json) %>"
- class="c3 proposal-graph"
- style="max-height: 320px; position: relative;">
+ class="c3 proposal-graph">
<%= javascript_include_tag 'dashboard_graphs', 'data-turbolinks-track' => true %>
diff --git a/app/views/dashboard/show.html.erb b/app/views/dashboard/show.html.erb
index c6bef64a4..ce71dc6ad 100644
--- a/app/views/dashboard/show.html.erb
+++ b/app/views/dashboard/show.html.erb
@@ -1,25 +1,30 @@
<% content_for :action_title, t("dashboard.index.title") %>
-<% if current_editable?(proposal) %>
- <%= link_to t("dashboard.index.edit_proposal_link"), edit_proposal_path(proposal), target: '_blank', class: 'button hollow' %>
+<% if current_editable?(proposal) %>
+ <%= link_to t("dashboard.index.edit_proposal_link"),
+ edit_proposal_path(proposal),
+ target: "_blank",
+ class: "button hollow" %>
<% end %>
<% if can_destroy_image?(proposal) %>
- <%= link_to t("images.remove_image"),
+ <%= link_to t("images.remove_image"),
image_path(proposal.image, from: request.url),
method: :delete,
- class: 'button hollow alert',
+ class: "button hollow alert",
data: { confirm: t("images.actions.destroy.confirm") } %>
<% end %>
<% unless proposal.retired? %>
- <%= link_to t("dashboard.index.retire"),
+ <%= link_to t("dashboard.index.retire"),
retire_form_proposal_path(proposal),
- class: 'button hollow alert',
- target: '_blank' %>
+ class: "button hollow alert",
+ target: "_blank" %>
<% end %>
<% if can?(:publish, proposal) %>
- <%= link_to t("dashboard.index.publish"), publish_proposal_dashboard_path(proposal), class: 'button success', method: :patch %>
+ <%= link_to t("dashboard.index.publish"),
+ publish_proposal_dashboard_path(proposal),
+ class: "button success",
+ method: :patch %>
<% end %>
-
diff --git a/app/views/layouts/dashboard.html.erb b/app/views/layouts/dashboard.html.erb
index 83669be9a..46281c797 100644
--- a/app/views/layouts/dashboard.html.erb
+++ b/app/views/layouts/dashboard.html.erb
@@ -45,7 +45,9 @@
-
+