Replace single quotes with double quotes
Most of these quotes were in the dashboard branch before we added the rule for double quotes.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%= render 'shared/errors' %>
|
||||
<%= render "shared/errors" %>
|
||||
|
||||
<div class="row expanded">
|
||||
<div class="small-12 medium-4 column">
|
||||
@@ -70,13 +70,13 @@
|
||||
<% if feature?(:allow_attached_documents) %>
|
||||
<div class="documents small-12 column">
|
||||
<hr>
|
||||
<%= render 'documents/nested_documents', documentable: dashboard_action, f: f %>
|
||||
<%= render "documents/nested_documents", documentable: dashboard_action, f: f %>
|
||||
<hr>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="links small-12 column">
|
||||
<%= render 'links/nested_links', linkable: dashboard_action, f: f %>
|
||||
<%= render "links/nested_links", linkable: dashboard_action, f: f %>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
|
||||
<div class="dashboard-action-form ">
|
||||
<%= form_for dashboard_action, url: { action: 'update' } do |f| %>
|
||||
<%= render 'form', f: f %>
|
||||
<%= form_for dashboard_action, url: { action: "update" } do |f| %>
|
||||
<%= render "form", f: f %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%= link_to t("admin.dashboard.actions.index.create"),
|
||||
new_admin_dashboard_action_path, class: 'button success float-right' %>
|
||||
new_admin_dashboard_action_path, class: "button success float-right" %>
|
||||
|
||||
<h2 class="inline-block">
|
||||
<%= t("admin.dashboard.actions.index.title") %>
|
||||
@@ -28,8 +28,8 @@
|
||||
<td><%= t("admin.dashboard.actions.action_type.#{action.action_type}") %></td>
|
||||
<td class="text-center"><%= active_human_readable(action.active) %></td>
|
||||
<td class="text-center"><%= active_human_readable(action.published_proposal) %></td>
|
||||
<td class="text-center"><%= number_with_delimiter(action.day_offset, delimiter: '.') %></td>
|
||||
<td class="text-center"><%= number_with_delimiter(action.required_supports, delimiter: '.') %></td>
|
||||
<td class="text-center"><%= number_with_delimiter(action.day_offset, delimiter: ".") %></td>
|
||||
<td class="text-center"><%= number_with_delimiter(action.required_supports, delimiter: ".") %></td>
|
||||
<td class="text-center"><%= action.order %></td>
|
||||
<td class="text-right">
|
||||
<%= link_to t("admin.dashboard.actions.index.edit"),
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</div>
|
||||
|
||||
<div class="dashboard-action-form ">
|
||||
<%= form_for dashboard_action, url: { action: 'create' } do |f| %>
|
||||
<%= render 'form', f: f %>
|
||||
<%= form_for dashboard_action, url: { action: "create" } do |f| %>
|
||||
<%= render "form", f: f %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<%= administrator_task.source.action.title %>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<%= form_for administrator_task, url: { action: 'update' } do |f| %>
|
||||
<%= form_for administrator_task, url: { action: "update" } do |f| %>
|
||||
<%= f.submit(value: t("admin.dashboard.administrator_tasks.form.solve"),
|
||||
class: "button") %>
|
||||
<% end %>
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
<h2><%= t("admin.dashboard.administrator_tasks.edit.solving") %></h2>
|
||||
</div>
|
||||
|
||||
<%= render 'form' %>
|
||||
<%= render "form" %>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<% end %>
|
||||
|
||||
<div class="debate-info">
|
||||
<%= render '/shared/author_info', resource: @debate %>
|
||||
<%= render "/shared/author_info", resource: @debate %>
|
||||
|
||||
<span class="bullet"> • </span>
|
||||
<%= l @debate.created_at.to_date %>
|
||||
@@ -21,7 +21,7 @@
|
||||
<%= link_to t("debates.show.comments", count: @debate.comments_count), "#comments" %>
|
||||
<span class="bullet"> • </span>
|
||||
<span class="js-flag-actions">
|
||||
<%= render 'debates/flag_actions', debate: @debate %>
|
||||
<%= render "debates/flag_actions", debate: @debate %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -37,20 +37,20 @@
|
||||
|
||||
<div class="in-favor inline-block">
|
||||
<span class="icon-like">
|
||||
<span class="show-for-sr"><%= t('votes.agree') %></span>
|
||||
<span class="show-for-sr"><%= t("votes.agree") %></span>
|
||||
</span>
|
||||
<span class="percentage"><%= votes_percentage('likes', @debate) %></span>
|
||||
<span class="percentage"><%= votes_percentage("likes", @debate) %></span>
|
||||
</div>
|
||||
|
||||
<span class="bullet"> • </span>
|
||||
|
||||
<div class="against inline-block">
|
||||
<span class="icon-unlike">
|
||||
<span class="show-for-sr"><%= t('votes.disagree') %></span>
|
||||
<span class="show-for-sr"><%= t("votes.disagree") %></span>
|
||||
</span>
|
||||
<span class="percentage"><%= votes_percentage('dislikes', @debate) %></span>
|
||||
<span class="percentage"><%= votes_percentage("dislikes", @debate) %></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<%= render 'shared/tags', taggable: @debate %>
|
||||
<%= render "shared/tags", taggable: @debate %>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<div class="small reveal" id="download-modal" data-reveal>
|
||||
<h1><%= t('download.modal.title') %></h1>
|
||||
<h1><%= t("download.modal.title") %></h1>
|
||||
<%= form_tag current_path_with_query_params(format: :csv), method: :get do |f| %>
|
||||
<%= render 'admin/download_settings/form_hidden_params' %>
|
||||
<%= render 'admin/download_settings/form', resource: resource, download_settings: get_attrs(get_model(resource[:name])) %>
|
||||
<%= render "admin/download_settings/form_hidden_params" %>
|
||||
<%= render "admin/download_settings/form", resource: resource, download_settings: get_attrs(get_model(resource[:name])) %>
|
||||
<div class="medium-5 column clear end">
|
||||
<button type="submit" data-close id="js-download-modal-submit" class="button success expanded"><%= t("download.modal.submit") %></button>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<h2><%= t("download.edit.#{@download_resource[:name]}") %> <%= t("download.edit.config.#{@download_resource[:config].to_s}") unless @download_resource[:config] == 0 %></h2>
|
||||
|
||||
<%= form_tag admin_update_download_settings_path(resource: @download_resource[:name], config: @download_resource[:config]), method: :put do %>
|
||||
<%= render 'form', resource: @download_resource, download_settings: @download_settings %>
|
||||
<%= render "form", resource: @download_resource, download_settings: @download_settings %>
|
||||
|
||||
<div class="small-12 medium-3 column clear end">
|
||||
<%= submit_tag t("download.edit.submit"), class: "button success expanded" %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@proposal) %> .js-select").html('<%= j render("select_proposal", proposal: @proposal) %>');
|
||||
$("#<%= dom_id(@proposal) %> .js-select").html("<%= j render("select_proposal", proposal: @proposal) %>");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%= form_for @document,
|
||||
url: admin_site_customization_documents_path do |f| %>
|
||||
<%= f.file_field 'attachment', label: t("admin.documents.new.label_attachment") %>
|
||||
<%= f.file_field "attachment", label: t("admin.documents.new.label_attachment") %>
|
||||
|
||||
<div class="margin-top">
|
||||
<%= f.submit t("admin.documents.new.submit_button"), class: "button success" %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% content_for :head do %>
|
||||
<%= javascript_include_tag "stat_graphs", 'data-turbolinks-track' => true %>
|
||||
<%= javascript_include_tag "stat_graphs", "data-turbolinks-track" => true %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'graph', name: @name, event: @event, count: @count %>
|
||||
<%= render "graph", name: @name, event: @event, count: @count %>
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
|
||||
<div class="tabs-content" data-tabs-content="communities_show_tabs">
|
||||
<div class="tabs-panel is-active" id="tab-participants">
|
||||
<%= render partial: 'participant', collection: @participants %>
|
||||
<%= render partial: "participant", collection: @participants %>
|
||||
</div>
|
||||
|
||||
<% if @community.proposal.present? %>
|
||||
<div class="tabs-panel topic-show" id="tab-polls">
|
||||
<%= render partial: 'poll', collection: @community.proposal.polls %>
|
||||
<%= render partial: "poll", collection: @community.proposal.polls %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<strong>
|
||||
<%= t("dashboard.goal.target_supports",
|
||||
count: number_with_precision(goal.required_supports,
|
||||
delimiter: '.', precision: 0)) %>
|
||||
delimiter: ".", precision: 0)) %>
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="resource-card" data-equalizer-watch="resources">
|
||||
<h4><%= t("dashboard.menu.mailing") %></h4>
|
||||
<p class="resource-description">
|
||||
<%= Setting['proposals.email_short_title'] %>
|
||||
<%= Setting["proposals.email_short_title"] %>
|
||||
</p>
|
||||
|
||||
<div class="small-12 column small-centered margin-top">
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<ul id="proposal_dashboard_menu" class="no-bullet">
|
||||
<li class="section-title <%= 'is-active' if my_proposal_menu_active? %>">
|
||||
<li class="section-title <%= "is-active" if my_proposal_menu_active? %>">
|
||||
<span class="icon-proposals"></span>
|
||||
<%= link_to proposal_dashboard_path(proposal.to_param) do %>
|
||||
<strong><%= t("dashboard.menu.my_proposal") %></strong>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
<li class="section-title <%= 'is-active' if progress_menu_active? %>">
|
||||
<li class="section-title <%= "is-active" if progress_menu_active? %>">
|
||||
<span class="icon-stats"></span>
|
||||
<%= link_to progress_proposal_dashboard_path(proposal.to_param) do %>
|
||||
<strong><%= t("dashboard.menu.progress") %></strong>
|
||||
@@ -14,7 +14,7 @@
|
||||
</li>
|
||||
|
||||
<% if proposed_actions.any? %>
|
||||
<li class="section-title <%= 'is-active' if recommended_actions_menu_active? %>">
|
||||
<li class="section-title <%= "is-active" if recommended_actions_menu_active? %>">
|
||||
<span class="icon-checkmark-circle"></span>
|
||||
<%= link_to recommended_actions_proposal_dashboard_path(proposal.to_param) do %>
|
||||
<strong><%= t("dashboard.menu.recommended_actions") %></strong>
|
||||
@@ -26,7 +26,7 @@
|
||||
<% end %>
|
||||
|
||||
<% if resources_menu_visible?(proposal, resources) %>
|
||||
<li class="section-title <%= 'is-active' if resources_menu_active? %>">
|
||||
<li class="section-title <%= "is-active" if resources_menu_active? %>">
|
||||
<span class="icon-zip"></span>
|
||||
<strong><%= t("dashboard.menu.resources") %></strong>
|
||||
<% if new_resources_since_last_login?(resources, @new_actions_since_last_login) %>
|
||||
@@ -72,7 +72,7 @@
|
||||
<% resources.each do |resource| %>
|
||||
<li>
|
||||
<%= link_to new_request_proposal_dashboard_action_path(proposal, resource),
|
||||
class: "#{'submenu-active' if is_request_active(resource.id)}" do %>
|
||||
class: "#{"submenu-active" if is_request_active(resource.id)}" do %>
|
||||
<span data-tooltip title="<%= resource.short_description %>">
|
||||
<%= resource.title %>
|
||||
</span>
|
||||
@@ -83,7 +83,7 @@
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<li class="section-title <%= 'is-active' if community_menu_active? %>">
|
||||
<li class="section-title <%= "is-active" if community_menu_active? %>">
|
||||
<span class="icon-organizations"></span>
|
||||
<%= link_to community_proposal_dashboard_path(proposal) do %>
|
||||
<strong><%= t("dashboard.menu.community") %></strong>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h3 class="title"><%= t("dashboard.next_goal.title") %></h3>
|
||||
|
||||
<div id="next_goal" data-toggler=".hide">
|
||||
<%= render 'goal', goal: next_goal %>
|
||||
<%= render "goal", goal: next_goal %>
|
||||
|
||||
<% if course.count > 1 %>
|
||||
<div class="margin small">
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<% if course.count > 1 %>
|
||||
<div id="complete_course" class="hide" data-toggler=".hide">
|
||||
<%= render partial: 'goal', collection: course %>
|
||||
<%= render partial: "goal", collection: course %>
|
||||
|
||||
<div class="margin small">
|
||||
<a data-toggle="complete_course next_goal">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="resource-card" data-equalizer-watch="resources">
|
||||
<h4><%= t("dashboard.menu.polls") %></h4>
|
||||
<p class="resource-description">
|
||||
<%= Setting['proposals.poll_short_title'] %>
|
||||
<%= Setting["proposals.poll_short_title"] %>
|
||||
</p>
|
||||
|
||||
<div class="small-12 column small-centered margin-top">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="resource-card" data-equalizer-watch="resources">
|
||||
<h4><%= t("dashboard.menu.poster") %></h4>
|
||||
<p class="resource-description">
|
||||
<%= Setting['proposals.poster_short_title'] %>
|
||||
<%= Setting["proposals.poster_short_title"] %>
|
||||
</p>
|
||||
|
||||
<div class="small-12 column small-centered margin-top">
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<p><%= link_to link.label, link.url, target: "_blank" %></p>
|
||||
<% end %>
|
||||
|
||||
<%= render partial: 'document', collection: proposed_action.documents %>
|
||||
<%= render partial: "document", collection: proposed_action.documents %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<% if actions.any? %>
|
||||
<div id="proposed_actions_<%= status %>">
|
||||
<% actions.first(4).each do |proposed_action| %>
|
||||
<%= render 'proposed_action', proposed_action: proposed_action %>
|
||||
<%= render "proposed_action", proposed_action: proposed_action %>
|
||||
<% end %>
|
||||
<% if actions.count > 4 %>
|
||||
<div class="margin small" id="proposed_actions_<%= status %>_link" data-toggler=".hide">
|
||||
@@ -21,7 +21,7 @@
|
||||
<% if toggle == true %>
|
||||
<% if actions.count > 4 %>
|
||||
<div id="last_proposed_actions_<%= status %>" class="hide" data-toggler=".hide">
|
||||
<%= render partial: 'proposed_action', collection: actions - actions.first(4) %>
|
||||
<%= render partial: "proposed_action", collection: actions - actions.first(4) %>
|
||||
<div class="margin small">
|
||||
<a data-toggle="last_proposed_actions_<%= status %> proposed_actions_<%= status %>_link">
|
||||
<strong><%= t("dashboard.recommended_actions.hide_proposed_actions") %></strong>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<h3 class="title"><%= t("dashboard.resources.available_resources") %></h3>
|
||||
|
||||
<div data-equalizer="resources" data-equalize-on="medium">
|
||||
<%= render 'poll_resource' %>
|
||||
<%= render 'mailing_resource' %>
|
||||
<%= render 'poster_resource' %>
|
||||
<%= render partial: 'resource', collection: active_resources %>
|
||||
<%= render "poll_resource" %>
|
||||
<%= render "mailing_resource" %>
|
||||
<%= render "poster_resource" %>
|
||||
<%= render partial: "resource", collection: active_resources %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2 class="title"><%= t("dashboard.recommended_actions.title") %></h2>
|
||||
|
||||
<%= render 'recommended_actions_by_status', status: 'pending', actions: @pending_actions, toggle: false %>
|
||||
<%= render 'recommended_actions_by_status', status: 'done', actions: @done_actions, toggle: false %>
|
||||
<%= render "recommended_actions_by_status", status: "pending", actions: @pending_actions, toggle: false %>
|
||||
<%= render "recommended_actions_by_status", status: "done", actions: @done_actions, toggle: false %>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<div class="row expanded">
|
||||
<div class="small-12 medium-8 column">
|
||||
<%== dashboard_action.description %>
|
||||
<%= render 'dashboard/form' %>
|
||||
<%= render "dashboard/form" %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-4 column">
|
||||
<%= render 'documents/documents', documents: dashboard_action.documents %>
|
||||
<%= render "documents/documents", documents: dashboard_action.documents %>
|
||||
|
||||
<% if dashboard_action.links.any? %>
|
||||
<div class="margin-top">
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="small-12 medium-1 column community-totals">
|
||||
<span class="icon-organizations"></span>
|
||||
<span class="community-number">
|
||||
<%= number_with_delimiter(proposal.community.participants_count, delimiter: '.') %>
|
||||
<%= number_with_delimiter(proposal.community.participants_count, delimiter: ".") %>
|
||||
</span>
|
||||
<p class="community-info">
|
||||
<%= t("dashboard.community.participants") %>
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="small-12 large-1 column community-totals">
|
||||
<span class="icon-debates"></span>
|
||||
<span class="community-number">
|
||||
<%= number_with_delimiter(proposal.community.debates_count, delimiter: '.') %>
|
||||
<%= number_with_delimiter(proposal.community.debates_count, delimiter: ".") %>
|
||||
</span>
|
||||
<p class="community-info">
|
||||
<%= t("dashboard.community.debates") %>
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="small-12 large-1 column community-totals">
|
||||
<span class="icon-comments"></span>
|
||||
<span class="community-number">
|
||||
<%= number_with_delimiter(proposal.community.comments_count, delimiter: '.') %>
|
||||
<%= number_with_delimiter(proposal.community.comments_count, delimiter: ".") %>
|
||||
</span>
|
||||
<p class="community-info">
|
||||
<%= t("dashboard.community.comments") %>
|
||||
@@ -49,7 +49,7 @@
|
||||
<h4 class="title"><%= t("dashboard.community.latest_comments") %></h5>
|
||||
|
||||
<ul class="topic-show">
|
||||
<%= render partial: 'comment',
|
||||
<%= render partial: "comment",
|
||||
collection: proposal.community.comments.sort_by_newest.limit(5) %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="small-12 medium-3 column">
|
||||
<% if action_name != 'index' %>
|
||||
<% if action_name != "index" %>
|
||||
<%= link_to t("dashboard.mailing.mailing_options.preview"),
|
||||
proposal_dashboard_mailing_index_path(proposal),
|
||||
class: "button expanded" %>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<div class="mail-body">
|
||||
<p><%= t("dashboard.mailer.forward.hi") %></p>
|
||||
<p><%= t("dashboard.mailer.forward.introduction", org: setting['org_name']) %></p>
|
||||
<p><%= t("dashboard.mailer.forward.introduction", org: setting["org_name"]) %></p>
|
||||
<p><%= t("dashboard.mailer.forward.support") %></p>
|
||||
|
||||
<div class="text-center">
|
||||
@@ -40,5 +40,5 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render 'mailing_options' %>
|
||||
<%= render "mailing_options" %>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<% content_for :action_title, t("dashboard.mailing.new.title") %>
|
||||
<div class="row expanded">
|
||||
<div class="small-12 medium-9 column">
|
||||
<%== Setting['proposals.email_description'] %>
|
||||
<%== Setting["proposals.email_description"] %>
|
||||
</div>
|
||||
|
||||
<%= render 'mailing_options' %>
|
||||
<%= render "mailing_options" %>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<div class="js-questions">
|
||||
<%= f.fields_for :questions do |question| %>
|
||||
<%= render 'question_fields', f: question %>
|
||||
<%= render "question_fields", f: question %>
|
||||
<% end %>
|
||||
|
||||
<div class="links row expanded">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<div class="js-answers">
|
||||
<%= f.fields_for :question_answers do |answer| %>
|
||||
<%= render 'question_answer_fields', f: answer %>
|
||||
<%= render "question_answer_fields", f: answer %>
|
||||
<% end %>
|
||||
|
||||
<div class="answer-links links row expanded">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% content_for :action_title, t("dashboard.polls.index.title") %>
|
||||
<div class="row expanded">
|
||||
<div class="small-12 medium-9 column">
|
||||
<%== Setting['proposals.poll_description'] %>
|
||||
<%== Setting["proposals.poll_description"] %>
|
||||
|
||||
<% if @polls.any? %>
|
||||
<div class="row expanded margin-top" data-equalizer="poll-cards" data-equalize-on="medium">
|
||||
@@ -11,10 +11,10 @@
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<% if Setting['proposals.poll_link'].present? %>
|
||||
<% if Setting["proposals.poll_link"].present? %>
|
||||
<h4><%= t("dashboard.polls.index.links") %></h4>
|
||||
<%= link_to t("dashboard.polls.index.additiontal_information"),
|
||||
Setting['proposals.poll_link'], target: "_blank" %>
|
||||
Setting["proposals.poll_link"], target: "_blank" %>
|
||||
<% end %>
|
||||
|
||||
<p><strong><%= t("dashboard.polls.index.count", count: @polls.count) %></strong></p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="small-12 medium-3 column">
|
||||
<% if action_name != 'index' %>
|
||||
<% if action_name != "index" %>
|
||||
<%= link_to t("dashboard.poster.options.preview"),
|
||||
proposal_dashboard_poster_index_path(proposal),
|
||||
class: "button expanded" %>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<%= wicked_pdf_stylesheet_link_tag 'application' -%>
|
||||
<%= wicked_pdf_stylesheet_link_tag 'pdf_fonts' -%>
|
||||
<%= wicked_pdf_stylesheet_link_tag "application" -%>
|
||||
<%= wicked_pdf_stylesheet_link_tag "pdf_fonts" -%>
|
||||
</head>
|
||||
<body class="dashboard-poster-pdf">
|
||||
<div class="poster-header">
|
||||
@@ -25,7 +25,7 @@
|
||||
<% if proposal.image.present? %>
|
||||
<div class="overflow-image" style="background-image: url(<%= asset_url proposal.image.attachment.url(:large) %>);"></div>
|
||||
<% else %>
|
||||
<div class="overflow-image" style="background-image:url('<%= "file://#{Rails.root.join('app','assets','images','default_mailing.jpg')}" %>');"></div>
|
||||
<div class="overflow-image" style="background-image:url('<%= "file://#{Rails.root.join("app","assets","images","default_mailing.jpg")}" %>');"></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="poster-content">
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<% content_for :action_title, t("dashboard.poster.new.title") %>
|
||||
<div class="row expanded">
|
||||
<div class="small-12 medium-9 column">
|
||||
<%== Setting['proposals.poster_description'] %>
|
||||
<%== Setting["proposals.poster_description"] %>
|
||||
</div>
|
||||
|
||||
<%= render 'poster_options' %>
|
||||
<%= render "poster_options" %>
|
||||
</div>
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
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'),
|
||||
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'),
|
||||
progress_proposal_dashboard_path(proposal, group_by: "month"),
|
||||
class: "button medium #{monthly_selected_class}" %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,13 +29,13 @@
|
||||
class="c3 proposal-graph"></div>
|
||||
</div>
|
||||
|
||||
<%= javascript_include_tag 'dashboard_graphs', 'data-turbolinks-track' => true %>
|
||||
<%= javascript_include_tag "dashboard_graphs", "data-turbolinks-track" => true %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'next_goal' %>
|
||||
<%= render "next_goal" %>
|
||||
|
||||
<% if @pending_actions.any? || @done_actions.any? %>
|
||||
<%= render 'summary_recommended_actions' %>
|
||||
<%= render "summary_recommended_actions" %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'resources' %>
|
||||
<%= render "resources" %>
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<aside class="margin-bottom">
|
||||
<%= link_to t("debates.index.start_debate"), new_debate_path, class: "button expanded" %>
|
||||
<%= render "shared/tag_cloud", taggable: "debate" %>
|
||||
<%= render "shared/download_links", downloadable: 'debate' %>
|
||||
<%= render "shared/download_links", downloadable: "debate" %>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<%= render "layouts/tracking_data" %>
|
||||
<%= render "layouts/meta_tags" %>
|
||||
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
|
||||
<title><%= content_for?(:title) ? yield(:title) : setting["org_name"] %></title>
|
||||
<%= content_for :canonical %>
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
<!--[if lt IE 9]>
|
||||
<%= stylesheet_link_tag "ie" %>
|
||||
<![endif]-->
|
||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= favicon_link_tag "favicon.ico" %>
|
||||
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
||||
@@ -21,12 +21,12 @@
|
||||
type: "image/png" %>
|
||||
<%= content_for :social_media_meta_tags %>
|
||||
|
||||
<%= setting['per_page_code_head'].try(:html_safe) %>
|
||||
<%= setting["per_page_code_head"].try(:html_safe) %>
|
||||
</head>
|
||||
<body class="proposal-dashboard">
|
||||
<%= setting['per_page_code_body'].try(:html_safe) %>
|
||||
<%= setting["per_page_code_body"].try(:html_safe) %>
|
||||
|
||||
<h1 class="show-for-sr"><%= setting['org_name'] %></h1>
|
||||
<h1 class="show-for-sr"><%= setting["org_name"] %></h1>
|
||||
|
||||
<div class="off-canvas-wrapper">
|
||||
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<div class="small-12 medium-6 large-2 column counter-divider">
|
||||
<div class="counter">
|
||||
<div class="counter-value"><%= number_with_delimiter(community_members_count, delimiter: '.') %></div>
|
||||
<div class="counter-value"><%= number_with_delimiter(community_members_count, delimiter: ".") %></div>
|
||||
<span class="counter-label"><%= t("layouts.dashboard.proposal_totals.community") %></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -22,9 +22,9 @@
|
||||
<div class="small-12 medium-6 large-4 column supports">
|
||||
<div class="counter">
|
||||
<div class="counter-value">
|
||||
<%= number_with_delimiter(proposal.votes_for.size, delimiter: '.') %>
|
||||
<%= number_with_delimiter(proposal.votes_for.size, delimiter: ".") %>
|
||||
/
|
||||
<%= number_with_delimiter(next_goal_supports, delimiter: '.') %>
|
||||
<%= number_with_delimiter(next_goal_supports, delimiter: ".") %>
|
||||
</div>
|
||||
<div class="counter-label">
|
||||
<%= t("layouts.dashboard.proposal_totals.supports", count: proposal.votes_for.size) %>
|
||||
@@ -47,9 +47,9 @@
|
||||
<div class="small-12 column">
|
||||
<div class="proposal-link">
|
||||
<% if proposal.draft? %>
|
||||
<%= link_to t('layouts.dashboard.proposal_totals.preview_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
|
||||
<%= link_to t("layouts.dashboard.proposal_totals.preview_proposal"), proposal_path(proposal), class: "button success expanded", target: "_blank" %>
|
||||
<% else %>
|
||||
<%= link_to t('layouts.dashboard.proposal_totals.show_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
|
||||
<%= link_to t("layouts.dashboard.proposal_totals.show_proposal"), proposal_path(proposal), class: "button success expanded", target: "_blank" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<%= render "layouts/tracking_data" %>
|
||||
<%= render "layouts/meta_tags" %>
|
||||
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
|
||||
<title><%= content_for?(:title) ? yield(:title) : setting["org_name"] %></title>
|
||||
<%= content_for :canonical %>
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
<!--[if lt IE 9]>
|
||||
<%= stylesheet_link_tag "ie" %>
|
||||
<![endif]-->
|
||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= favicon_link_tag "favicon.ico" %>
|
||||
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
||||
@@ -21,12 +21,12 @@
|
||||
type: "image/png" %>
|
||||
<%= content_for :social_media_meta_tags %>
|
||||
|
||||
<%= setting['per_page_code_head'].try(:html_safe) %>
|
||||
<%= setting["per_page_code_head"].try(:html_safe) %>
|
||||
</head>
|
||||
<body class="proposal-dashboard">
|
||||
<%= setting['per_page_code_body'].try(:html_safe) %>
|
||||
<%= setting["per_page_code_body"].try(:html_safe) %>
|
||||
|
||||
<h1 class="show-for-sr"><%= setting['org_name'] %></h1>
|
||||
<h1 class="show-for-sr"><%= setting["org_name"] %></h1>
|
||||
|
||||
<div class="off-canvas-wrapper">
|
||||
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% Legislation::Proposal.where(legislation_process_id: @process)
|
||||
.where(selected: true).order('cached_votes_score desc').each do |proposal| %>
|
||||
.where(selected: true).order("cached_votes_score desc").each do |proposal| %>
|
||||
<div class="row">
|
||||
<div class="proposal">
|
||||
<div class="panel panel_resume" style="min-height: 5rem;">
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div class="small-12 medium-3 column">
|
||||
|
||||
<aside class="margin-bottom">
|
||||
<%= render "shared/download_links", downloadable: 'legislation_process' %>
|
||||
<%= render "shared/download_links", downloadable: "legislation_process" %>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<% else %>
|
||||
<button class="button hollow download-button">
|
||||
<%= link_to 'Download', resume_legislation_process_path(format: :xlsx) %>
|
||||
<%= link_to "Download", resume_legislation_process_path(format: :xlsx) %>
|
||||
</button>
|
||||
|
||||
<% if @process.debate_phase.enabled? %>
|
||||
|
||||
@@ -16,7 +16,7 @@ wb.add_worksheet(name: "Resume") do |sheet|
|
||||
|
||||
if @process.proposals_phase.enabled? && !Legislation::Proposal.where(legislation_process_id: @process).where(selected: true).empty?
|
||||
sheet.add_row [t("legislation.summary.proposal_phase"), t("legislation.proposals.total", count: Legislation::Proposal.where(legislation_process_id: @process).where(selected: true).count)]
|
||||
Legislation::Proposal.where(legislation_process_id: @process).where(selected: true).order('cached_votes_score desc').each do |proposal|
|
||||
Legislation::Proposal.where(legislation_process_id: @process).where(selected: true).order("cached_votes_score desc").each do |proposal|
|
||||
sheet.add_row [proposal.title,
|
||||
(proposal.cached_votes_total - proposal.cached_votes_down).to_s + space + t("legislation.summary.votes")]
|
||||
sheet.add_hyperlink :location => legislation_process_proposal_url(proposal.legislation_process_id, proposal), :ref => sheet.rows.last.cells.first
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<div id="nested-links">
|
||||
<%= f.fields_for :links do |links_builder| %>
|
||||
<%= render 'links/link_fields', f: links_builder %>
|
||||
<%= render "links/link_fields", f: links_builder %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -34,6 +34,6 @@
|
||||
<%= link_to answer.title, verification_path, class: "button secondary hollow" %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= t('polls.index.max_votes_reached') %>
|
||||
<%= t("polls.index.max_votes_reached") %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<h2><%= t("proposals.show.author") %></h2>
|
||||
<div class="show-actions-menu">
|
||||
<%= link_to progress_proposal_dashboard_path(@proposal),
|
||||
class: 'button hollow expanded',
|
||||
class: "button hollow expanded",
|
||||
id: "proposal-dashboard-#{@proposal.id}" do %>
|
||||
<span class="icon-edit"></span>
|
||||
<%= t("proposals.show.dashboard_proposal_link") %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@proposal) %>_votes").html('<%= j render("proposals/votes", proposal: @proposal) %>');
|
||||
$("#<%= dom_id(@proposal) %>_votes").html("<%= j render("proposals/votes", proposal: @proposal) %>");
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env ruby
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
||||
load Gem.bin_path('bundler', 'bundle')
|
||||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
|
||||
load Gem.bin_path("bundler", "bundle")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
|
||||
require 'delayed/command'
|
||||
require File.expand_path(File.join(File.dirname(__FILE__), "..", "config", "environment"))
|
||||
require "delayed/command"
|
||||
Delayed::Command.new(ARGV).daemonize
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env ruby
|
||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||
require_relative '../config/boot'
|
||||
require 'rails/commands'
|
||||
APP_PATH = File.expand_path("../config/application", __dir__)
|
||||
require_relative "../config/boot"
|
||||
require "rails/commands"
|
||||
|
||||
4
bin/rake
4
bin/rake
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env ruby
|
||||
require_relative '../config/boot'
|
||||
require 'rake'
|
||||
require_relative "../config/boot"
|
||||
require "rake"
|
||||
Rake.application.run
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env ruby
|
||||
begin
|
||||
load File.expand_path('../spring', __FILE__)
|
||||
load File.expand_path("../spring", __FILE__)
|
||||
rescue LoadError => e
|
||||
raise unless e.message.include?('spring')
|
||||
raise unless e.message.include?("spring")
|
||||
end
|
||||
# frozen_string_literal: true
|
||||
#
|
||||
|
||||
18
bin/setup
18
bin/setup
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env ruby
|
||||
require 'pathname'
|
||||
require 'fileutils'
|
||||
require "pathname"
|
||||
require "fileutils"
|
||||
include FileUtils
|
||||
|
||||
# path to your application root.
|
||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
||||
APP_ROOT = Pathname.new File.expand_path("../../", __FILE__)
|
||||
|
||||
def system!(*args)
|
||||
system(*args) || abort("\n== Command #{args} failed ==")
|
||||
@@ -14,9 +14,9 @@ chdir APP_ROOT do
|
||||
# This script is a starting point to setup your application.
|
||||
# Add necessary setup steps to this file.
|
||||
|
||||
puts '== Installing dependencies =='
|
||||
system! 'gem install bundler --conservative'
|
||||
system('bundle check') || system!('bundle install')
|
||||
puts "== Installing dependencies =="
|
||||
system! "gem install bundler --conservative"
|
||||
system("bundle check") || system!("bundle install")
|
||||
|
||||
# puts "\n== Copying sample files =="
|
||||
# unless File.exist?('config/database.yml')
|
||||
@@ -24,11 +24,11 @@ chdir APP_ROOT do
|
||||
# end
|
||||
|
||||
puts "\n== Preparing database =="
|
||||
system! 'bin/rails db:setup'
|
||||
system! "bin/rails db:setup"
|
||||
|
||||
puts "\n== Removing old logs and tempfiles =="
|
||||
system! 'bin/rails log:clear tmp:clear'
|
||||
system! "bin/rails log:clear tmp:clear"
|
||||
|
||||
puts "\n== Restarting application server =="
|
||||
system! 'bin/rails restart'
|
||||
system! "bin/rails restart"
|
||||
end
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
# It gets overwritten when you run the `spring binstub` command.
|
||||
|
||||
unless defined?(Spring)
|
||||
require 'rubygems'
|
||||
require 'bundler'
|
||||
require "rubygems"
|
||||
require "bundler"
|
||||
|
||||
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
||||
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
|
||||
if spring
|
||||
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
||||
gem 'spring', spring.version
|
||||
require 'spring/binstub'
|
||||
gem "spring", spring.version
|
||||
require "spring/binstub"
|
||||
end
|
||||
end
|
||||
|
||||
18
bin/update
18
bin/update
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env ruby
|
||||
require 'pathname'
|
||||
require 'fileutils'
|
||||
require "pathname"
|
||||
require "fileutils"
|
||||
include FileUtils
|
||||
|
||||
# path to your application root.
|
||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
||||
APP_ROOT = Pathname.new File.expand_path("../../", __FILE__)
|
||||
|
||||
def system!(*args)
|
||||
system(*args) || abort("\n== Command #{args} failed ==")
|
||||
@@ -14,16 +14,16 @@ chdir APP_ROOT do
|
||||
# This script is a way to update your development environment automatically.
|
||||
# Add necessary update steps to this file.
|
||||
|
||||
puts '== Installing dependencies =='
|
||||
system! 'gem install bundler --conservative'
|
||||
system('bundle check') || system!('bundle install')
|
||||
puts "== Installing dependencies =="
|
||||
system! "gem install bundler --conservative"
|
||||
system("bundle check") || system!("bundle install")
|
||||
|
||||
puts "\n== Updating database =="
|
||||
system! 'bin/rails db:migrate'
|
||||
system! "bin/rails db:migrate"
|
||||
|
||||
puts "\n== Removing old logs and tempfiles =="
|
||||
system! 'bin/rails log:clear tmp:clear'
|
||||
system! "bin/rails log:clear tmp:clear"
|
||||
|
||||
puts "\n== Restarting application server =="
|
||||
system! 'bin/rails restart'
|
||||
system! "bin/rails restart"
|
||||
end
|
||||
|
||||
@@ -251,8 +251,8 @@ namespace :admin do
|
||||
resources :administrator_tasks, only: [:index, :edit, :update]
|
||||
end
|
||||
|
||||
get 'download_settings/:resource', to: 'download_settings#edit', as: 'edit_download_settings'
|
||||
put 'download_settings/:resource', to: 'download_settings#update', as: 'update_download_settings'
|
||||
get "download_settings/:resource", to: "download_settings#edit", as: "edit_download_settings"
|
||||
put "download_settings/:resource", to: "download_settings#update", as: "update_download_settings"
|
||||
|
||||
get "/change_log/:id", to: "budget_investments#show_investment_log", as: "change_log"
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ describe "Admin settings" do
|
||||
visit admin_settings_path
|
||||
find("#map-tab").click
|
||||
|
||||
expect(page).to have_content 'To show the map to users you must enable ' \
|
||||
expect(page).to have_content "To show the map to users you must enable " \
|
||||
'"Proposals and budget investments geolocation" ' \
|
||||
'on "Features" tab.'
|
||||
expect(page).not_to have_css("#admin-map")
|
||||
@@ -51,7 +51,7 @@ describe "Admin settings" do
|
||||
find("#map-tab").click
|
||||
|
||||
expect(page).to have_css("#admin-map")
|
||||
expect(page).not_to have_content 'To show the map to users you must enable ' \
|
||||
expect(page).not_to have_content "To show the map to users you must enable " \
|
||||
'"Proposals and budget investments geolocation" ' \
|
||||
'on "Features" tab.'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user