Files
nairobi/app/views/proposals_dashboard/progress.html.erb
Juan Salvador Pérez García 921d567110 Implements #175
General menu has been refactored to look like the mockups.
The progress menu has been refactored as well.
2018-07-17 17:57:30 +02:00

30 lines
1.3 KiB
Plaintext

<% content_for :action_title, t('.title') %>
<div class="small-12 column">
<div class="button-group">
<%= link_to t('.group_by_year'), progress_proposal_dashboard_index_path(proposal, group_by: 'year'), class: 'button' %>
<%= link_to t('.group_by_month'), progress_proposal_dashboard_index_path(proposal, group_by: 'month'), class: 'button' %>
<%= link_to t('.group_by_week'), progress_proposal_dashboard_index_path(proposal, group_by: 'week'), class: 'button' %>
<%= link_to t('.group_by_date'), progress_proposal_dashboard_index_path(proposal), class: 'button' %>
</div>
</div>
<div class="small-12 column">
<div id="proposal-graph"
data-proposal-graph-url="<%= supports_proposal_dashboard_index_path(proposal, format: :json) %>"
data-proposal-graph-group-by="<%= params[:group_by] %>"
data-proposal-graph-progress-label="<%= t '.progress' %>"
data-proposal-graph-supports-label="<%= t '.supports' %>"
class="c3"
style="max-height: 320px; position: relative;"></div>
</div>
<%= javascript_include_tag 'dashboard_graphs', 'data-turbolinks-track' => true %>
<table>
<caption><%= t('proposals_dashboard.menu.actions') %></caption>
<% proposed_actions.each do |action| %>
<%= render partial: 'proposed_action', locals: { action: action } %>
<% end %>
</table>