Merge pull request #3369 from consul/double_quotes_for_views

Change single quotes to double quotes for views
This commit is contained in:
Julian Nicolas Herrero
2019-03-19 14:34:53 +01:00
committed by GitHub
345 changed files with 993 additions and 993 deletions

View File

@@ -33,7 +33,7 @@
<div>
<%= f.label :public_activity do %>
<%= f.check_box :public_activity, title: t('account.show.public_activity_label'), label: false %>
<%= f.check_box :public_activity, title: t("account.show.public_activity_label"), label: false %>
<span class="checkbox">
<%= t("account.show.public_activity_label") %>
</span>
@@ -42,7 +42,7 @@
<div>
<%= f.label :public_interests do %>
<%= f.check_box :public_interests, title: t('account.show.public_interests_label'), label: false %>
<%= f.check_box :public_interests, title: t("account.show.public_interests_label"), label: false %>
<span class="checkbox">
<%= t("account.show.public_interests_label") %>
</span>
@@ -55,7 +55,7 @@
<div>
<%= f.label :email_on_comment do %>
<%= f.check_box :email_on_comment, title: t('account.show.email_on_comment_label'), label: false %>
<%= f.check_box :email_on_comment, title: t("account.show.email_on_comment_label"), label: false %>
<span class="checkbox">
<%= t("account.show.email_on_comment_label") %>
</span>
@@ -64,7 +64,7 @@
<div>
<%= f.label :email_on_comment_reply do %>
<%= f.check_box :email_on_comment_reply, title: t('account.show.email_on_comment_reply_label'), label: false %>
<%= f.check_box :email_on_comment_reply, title: t("account.show.email_on_comment_reply_label"), label: false %>
<span class="checkbox">
<%= t("account.show.email_on_comment_reply_label") %>
</span>
@@ -73,7 +73,7 @@
<div>
<%= f.label :email_newsletter_subscribed do %>
<%= f.check_box :newsletter, title: t('account.show.subscription_to_website_newsletter_label'), label: false %>
<%= f.check_box :newsletter, title: t("account.show.subscription_to_website_newsletter_label"), label: false %>
<span class="checkbox">
<%= t("account.show.subscription_to_website_newsletter_label") %>
</span>
@@ -82,7 +82,7 @@
<div>
<%= f.label :email_digest do %>
<%= f.check_box :email_digest, title: t('account.show.email_digest_label'), label: false %>
<%= f.check_box :email_digest, title: t("account.show.email_digest_label"), label: false %>
<span class="checkbox">
<%= t("account.show.email_digest_label") %>
</span>
@@ -91,7 +91,7 @@
<div>
<%= f.label :email_on_direct_message do %>
<%= f.check_box :email_on_direct_message, title: t('account.show.email_on_direct_message_label'), label: false %>
<%= f.check_box :email_on_direct_message, title: t("account.show.email_on_direct_message_label"), label: false %>
<span class="checkbox">
<%= t("account.show.email_on_direct_message_label") %>
</span>
@@ -103,7 +103,7 @@
<div>
<%= f.label :official_position_badge do %>
<%= f.check_box :official_position_badge,
title: t('account.show.official_position_badge_label'),
title: t("account.show.official_position_badge_label"),
label: false %>
<span class="checkbox">
<%= t("account.show.official_position_badge_label") %>

View File

@@ -2,7 +2,7 @@
<h2><%= t("admin.activity.show.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.activity.show" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.activity.show" %>
<% if @activity.any? %>
<h3 class="margin"><%= page_entries_info @activity %></h3>

View File

@@ -1,7 +1,7 @@
<%= render "admin/shared/globalize_locales", resource: @admin_notification %>
<%= translatable_form_for [:admin, @admin_notification] do |f| %>
<%= render 'shared/errors', resource: @admin_notification %>
<%= render "shared/errors", resource: @admin_notification %>
<%= f.select :segment_recipient, options_for_select(user_segments_options,
@admin_notification[:segment_recipient]) %>

View File

@@ -55,7 +55,7 @@
title: @admin_notification.title,
body: @admin_notification.body,
timestamp: Time.current } %>
<% link_text = render partial: '/notifications/notification_body', locals: locals %>
<% link_text = render partial: "/notifications/notification_body", locals: locals %>
<%= link_to_if @admin_notification.link.present?, link_text, @admin_notification.link %>
</li>
</ul>

View File

@@ -1,6 +1,6 @@
<h2><%= t("admin.administrators.index.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_administrators_path %>
<%= render "admin/shared/user_search", url: search_admin_administrators_path %>
<div id="administrators">
<% if @administrators.any? %>
@@ -26,13 +26,13 @@
</td>
<td>
<% if administrator.persisted? %>
<%= link_to t('admin.administrators.administrator.delete'),
<%= link_to t("admin.administrators.administrator.delete"),
admin_administrator_path(administrator),
method: :delete,
class: "button hollow alert expanded"
%>
<% else %>
<%= link_to t('admin.administrators.administrator.add'),
<%= link_to t("admin.administrators.administrator.add"),
{ controller: "admin/administrators", action: :create,
user_id: administrator.user_id },
method: :post,

View File

@@ -1,6 +1,6 @@
<h2><%= t("admin.administrators.search.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_administrators_path %>
<%= render "admin/shared/user_search", url: search_admin_administrators_path %>
<div id="administrators">
<% if @users.any? %>
@@ -19,12 +19,12 @@
<td><%= user.email %></td>
<td class="text-right">
<% if user.administrator? && user.administrator.persisted? %>
<%= link_to t('admin.administrators.administrator.delete'),
<%= link_to t("admin.administrators.administrator.delete"),
admin_administrator_path(user),
method: :delete,
class: "button hollow alert expanded" %>
<% else %>
<%= link_to t('admin.administrators.administrator.add'),
<%= link_to t("admin.administrators.administrator.add"),
{ controller: "admin/administrators",
action: :create,
user_id: user },

View File

@@ -2,7 +2,7 @@
<%= translatable_form_for [:admin, @banner] do |f| %>
<%= render 'errors' %>
<%= render "errors" %>
<div class="row">
<% date_started_at = @banner.post_started_at.present? ? I18n.localize(@banner.post_started_at) : "" %>

View File

@@ -3,7 +3,7 @@
<h2 class="inline-block"><%= t("admin.banners.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.banners.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.banners.index" %>
<h3><%= page_entries_info @banners %></h3>
@@ -23,12 +23,12 @@
<td>
<div class="small-12 medium-6 column">
<%= link_to t("admin.banners.index.edit"), edit_admin_banner_path(banner),
class: 'button hollow expanded' %>
class: "button hollow expanded" %>
</div>
<div class="small-12 medium-6 column">
<%= link_to t("admin.banners.index.delete"), admin_banner_path(banner),
method: :delete,
class: 'button hollow alert expanded' %>
class: "button hollow alert expanded" %>
</div>
</td>
</tr>

View File

@@ -3,7 +3,7 @@
<div class="small-12 medium-6">
<%= translatable_form_for [:admin, @budget, @group], url: path do |f| %>
<%= render 'shared/errors', resource: @group %>
<%= render "shared/errors", resource: @group %>
<%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_field :name,

View File

@@ -4,7 +4,7 @@
<%= translatable_form_for [:admin, @budget, @group, @heading], url: path do |f| %>
<%= render 'shared/errors', resource: @heading %>
<%= render "shared/errors", resource: @heading %>
<%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_field :name,

View File

@@ -2,7 +2,7 @@
admin_budget_budget_investments_path(csv_params),
class: "float-right small clear" %>
<% if params[:filter] == 'winners' %>
<% if params[:filter] == "winners" %>
<% if display_calculate_winners_button?(@budget) %>
<%= link_to calculate_winner_button_text(@budget),
calculate_winners_admin_budget_path(@budget),
@@ -48,7 +48,7 @@
<tbody>
<% @investments.each do |investment| %>
<tr id="<%= dom_id(investment) %>" class="budget_investment">
<%= render '/admin/budget_investments/select_investment', investment: investment %>
<%= render "/admin/budget_investments/select_investment", investment: investment %>
</tr>
<% end %>
</tbody>

View File

@@ -67,7 +67,7 @@
<% if @investment.image.present? %>
<%= link_to t("admin.budget_investments.show.see_image"),
namespaced_budget_investment_path(@investment, {anchor: 'image'}),
namespaced_budget_investment_path(@investment, {anchor: "image"}),
target: "blank" %>
<% else %>
<%= t("admin.budget_investments.show.no_image") %>
@@ -80,7 +80,7 @@
<% if @investment.documents.present? %>
<%= link_to t("admin.budget_investments.show.see_documents",
count: @investment.documents.count),
namespaced_budget_investment_path(@investment, {anchor: 'documents'}),
namespaced_budget_investment_path(@investment, {anchor: "documents"}),
target: "blank" %>
<% else %>
<%= t("admin.budget_investments.show.no_documents") %>
@@ -89,5 +89,5 @@
<p id="user-tags">
<strong><%= t("admin.budget_investments.show.user_tags") %>: </strong>
<%= @investment.tag_list.sort.join(', ') %>
<%= @investment.tag_list.sort.join(", ") %>
</p>

View File

@@ -1,4 +1,4 @@
<%= link_to admin_budget_budget_investment_path(@budget, @investment, Budget::Investment.filter_params(params)), class: 'back' do %>
<%= link_to admin_budget_budget_investment_path(@budget, @investment, Budget::Investment.filter_params(params)), class: "back" do %>
<span class="icon-angle-left"></span> <%= t("shared.back") %>
<% end %>
@@ -21,7 +21,7 @@
<div class="small-12 column">
<%= f.label :tag_list, t("admin.budget_investments.edit.user_tags") %>
<%= f.text_field :tag_list,
value: @investment.tag_list.sort.join(','),
value: @investment.tag_list.sort.join(","),
label: false %>
</div>
@@ -57,10 +57,10 @@
<% end %>
</div>
<%= f.text_field :valuation_tag_list,
value: @investment.valuation_tag_list.sort.join(','),
value: @investment.valuation_tag_list.sort.join(","),
label: false,
placeholder: t("admin.budget_investments.edit.tags_placeholder"),
class: 'js-tag-list' %>
class: "js-tag-list" %>
</div>
<div class="small-12 column margin-top">
@@ -88,7 +88,7 @@
<div class="small-12 medium-3 column">
<h2 id="incompatible"><%= t("admin.budget_investments.edit.compatibility") %></h2>
<%= f.label :incompatible do %>
<%= f.check_box :incompatible, title: t('admin.budget_investments.edit.compatibility'), label: false %>
<%= f.check_box :incompatible, title: t("admin.budget_investments.edit.compatibility"), label: false %>
<span class="checkbox"><%= t("admin.budget_investments.edit.mark_as_incompatible") %></span>
<% end %>
</div>
@@ -96,7 +96,7 @@
<div class="small-12 medium-3 column float-left">
<h2 id="selected"><%= t("admin.budget_investments.edit.selection") %></h2>
<%= f.label :selected do %>
<%= f.check_box :selected, title: t('admin.budget_investments.edit.selection'), label: false %>
<%= f.check_box :selected, title: t("admin.budget_investments.edit.selection"), label: false %>
<span class="checkbox"><%= t("admin.budget_investments.edit.mark_as_selected") %></span>
<% end %>
</div>

View File

@@ -3,7 +3,7 @@
<span class="icon-angle-left"></span><%= t("shared.back") %>
<% end %>
<%= render 'written_by_author' %>
<%= render "written_by_author" %>
<%= link_to t("admin.budget_investments.show.edit"),
edit_admin_budget_budget_investment_path(@budget, @investment,
@@ -20,13 +20,13 @@
<p id="tags">
<strong><%= t("admin.budget_investments.show.tags") %>:</strong>
<%= @investment.tags_on(:valuation).pluck(:name).sort.join(', ') %>
<%= @investment.tags_on(:valuation).pluck(:name).sort.join(", ") %>
</p>
<p id="assigned_valuator_groups">
<strong><%= t("admin.budget_investments.show.valuator_groups") %>:</strong>
<% if @investment.valuator_groups.any? %>
<%= @investment.valuator_groups.collect(&:name).join(', ') %>
<%= @investment.valuator_groups.collect(&:name).join(", ") %>
<% else %>
<%= t("admin.budget_investments.show.undefined") %>
<% end %>
@@ -35,7 +35,7 @@
<p id="assigned_valuators">
<strong><%= t("admin.budget_investments.show.assigned_valuators") %>:</strong>
<% if @investment.valuators.any? %>
<%= @investment.valuators.collect(&:name_and_email).join(', ') %>
<%= @investment.valuators.collect(&:name_and_email).join(", ") %>
<% else %>
<%= t("admin.budget_investments.show.undefined") %>
<% end %>
@@ -44,17 +44,17 @@
<p>
<%= link_to t("admin.budget_investments.show.edit_classification"),
edit_admin_budget_budget_investment_path(@budget, @investment,
{anchor: 'classification'}.merge(Budget::Investment.filter_params(params))) unless @budget.finished? %>
{anchor: "classification"}.merge(Budget::Investment.filter_params(params))) unless @budget.finished? %>
</p>
<hr>
<h2><%= t("admin.budget_investments.show.dossier") %></h2>
<%= render 'valuation/budget_investments/dossier' %>
<%= render "valuation/budget_investments/dossier" %>
<p>
<%= link_to t("admin.budget_investments.show.edit_dossier"), edit_valuation_budget_budget_investment_path(@budget, @investment) unless @budget.finished? %>
</p>
<%= render 'valuation/budget_investments/valuation_comments' %>
<%= render "valuation/budget_investments/valuation_comments" %>
<%= render "admin/milestones/milestones", milestoneable: @investment %>

View File

@@ -2,7 +2,7 @@
<%= translatable_form_for [:admin, @phase.budget, @phase] do |f| %>
<%= render 'shared/errors', resource: @phase %>
<%= render "shared/errors", resource: @phase %>
<div class="small-12 medium-6 column">
<%= f.label :starts_at, t("admin.budget_phases.edit.start_date") %>

View File

@@ -4,4 +4,4 @@
<h2><%= t("admin.budgets.edit.title") %> - <%= t("budgets.phase.#{@phase.kind}") %></h2>
</div>
<%= render '/admin/budget_phases/form' %>
<%= render "/admin/budget_phases/form" %>

View File

@@ -2,7 +2,7 @@
<%= translatable_form_for [:admin, @budget] do |f| %>
<%= render 'shared/errors', resource: @budget %>
<%= render "shared/errors", resource: @budget %>
<div class="small-12 medium-9 column">
<%= f.translatable_fields do |translations_form| %>

View File

@@ -4,4 +4,4 @@
<h2><%= t("admin.budgets.edit.title") %></h2>
</div>
<%= render '/admin/budgets/form' %>
<%= render "/admin/budgets/form" %>

View File

@@ -4,7 +4,7 @@
new_admin_budget_path,
class: "button float-right" %>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.budgets.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.budgets.index" %>
<% if @budgets.any? %>
<h3><%= page_entries_info @budgets %></h3>

View File

@@ -2,4 +2,4 @@
<h2><%= t("admin.budgets.new.title") %></h2>
</div>
<%= render '/admin/budgets/form' %>
<%= render "/admin/budgets/form" %>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.comments.index.title") %></h2>
<p><%= t("admin.shared.moderated_content") %></p>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.comments.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.comments.index" %>
<% if @comments.any? %>
<h3 class="margin"><%= page_entries_info @comments %></h3>

View File

@@ -1,3 +1,3 @@
<h2 class="title inline-block"><%= t("admin.dashboard.index.title") %></h2>
<p><%= t("admin.dashboard.index.description", org: setting['org_name']) %></p>
<p><%= t("admin.dashboard.index.description", org: setting["org_name"]) %></p>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.debates.index.title") %></h2>
<p><%= t("admin.shared.moderated_content") %></p>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.debates.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.debates.index" %>
<% if @debates.any? %>
<h3 class="margin"><%= page_entries_info @debates %></h3>

View File

@@ -4,4 +4,4 @@
<h2><%= t("admin.geozones.edit.editing") %></h2>
</div>
<%= render 'form' %>
<%= render "form" %>

View File

@@ -4,4 +4,4 @@
<h2><%= t("admin.geozones.new.creating") %></h2>
</div>
<%= render 'form' %>
<%= render "form" %>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.hidden_budget_investments.index.title") %></h2>
<p><%= t("admin.shared.moderated_content") %></p>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.hidden_budget_investments.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_budget_investments.index" %>
<% if @investments.any? %>
<h3 class="margin"><%= page_entries_info @investments %></h3>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.hidden_proposals.index.title") %></h2>
<p><%= t("admin.shared.moderated_content") %></p>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.hidden_proposals.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposals.index" %>
<% if @proposals.any? %>
<h3 class="margin"><%= page_entries_info @proposals %></h3>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.hidden_users.index.title") %></h2>
<p><%= t("admin.shared.moderated_content") %></p>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.hidden_users.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_users.index" %>
<% if @users.any? %>
<h3 class="margin"><%= page_entries_info @users %></h3>

View File

@@ -24,7 +24,7 @@
<%= link_to t("admin.actions.delete"),
admin_widget_card_path(card),
method: :delete,
data: { confirm: t('admin.actions.confirm') },
data: { confirm: t("admin.actions.confirm") },
class: "button hollow alert" %>
</td>
</tr>

View File

@@ -44,7 +44,7 @@
<%= f.submit(class: "button", value: t("admin.legislation.draft_versions.#{admin_submit_action(@draft_version)}.submit_button")) %>
</div>
<%= link_to "#", class: 'fullscreen-toggle' do %>
<%= link_to "#", class: "fullscreen-toggle" do %>
<span data-closed-text="<%= t("admin.legislation.draft_versions.form.launch_text_editor")%>"
data-open-text="<%= t("admin.legislation.draft_versions.form.close_text_editor")%>">
<strong><%= t("admin.legislation.draft_versions.form.launch_text_editor")%></strong>

View File

@@ -9,7 +9,7 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
<div class="small-12 column">
<div class="callout warning" style="display: none;">
@@ -24,10 +24,10 @@
<%= link_to t("admin.legislation.draft_versions.index.delete"),
admin_legislation_process_draft_version_path(@process, @draft_version),
method: :delete,
class: 'button hollow alert' %>
class: "button hollow alert" %>
</div>
</div>
<%= render 'form', url: admin_legislation_process_draft_version_path(@process, @draft_version) %>
<%= render "form", url: admin_legislation_process_draft_version_path(@process, @draft_version) %>
</div>
</div>

View File

@@ -8,7 +8,7 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
<div class="small-12 column">
<h4 class="inline-block"><%= t("admin.legislation.draft_versions.index.title") %></h4>
@@ -36,7 +36,7 @@
</td>
<td><%= draft_version.created_at.to_date %></td>
<td>
<% if draft_version.status == 'draft' %>
<% if draft_version.status == "draft" %>
<%= t("admin.legislation.draft_versions.statuses.draft") %>
<%= link_to "(#{t('.preview')})", legislation_process_draft_version_path(@process, draft_version) %>
<% else %>

View File

@@ -9,12 +9,12 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
<div class="small-12 column">
<h3><%= t("admin.legislation.draft_versions.new.title") %></h3>
</div>
<%= render 'form', url: admin_legislation_process_draft_versions_path(@process) %>
<%= render "form", url: admin_legislation_process_draft_versions_path(@process) %>
</div>
</div>

View File

@@ -16,7 +16,7 @@
<%= translations_form.cktext_area :homepage,
language: I18n.locale,
label: t("admin.legislation.processes.form.homepage"),
ckeditor: { height: 500, toolbar: 'admin' },
ckeditor: { height: 500, toolbar: "admin" },
hint: t("admin.legislation.processes.form.homepage_description") %>
</div>
</div>

View File

@@ -7,7 +7,7 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'homepage' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "homepage" %>
<%= render 'form', url: admin_legislation_process_homepage_path(@process) %>
<%= render "form", url: admin_legislation_process_homepage_path(@process) %>
</div>

View File

@@ -172,7 +172,7 @@
</div>
<div class="documents small-12 column">
<%= render 'documents/nested_documents', documentable: @process, f: f %>
<%= render "documents/nested_documents", documentable: @process, f: f %>
</div>
<div class="small-12 column">
@@ -180,7 +180,7 @@
</div>
<div class="images small-12 column">
<%= render 'images/nested_image', imageable: @process, f: f %>
<%= render "images/nested_image", imageable: @process, f: f %>
</div>
<div class="small-12 column">

View File

@@ -7,7 +7,7 @@
<h2><%= @process.title %></h2>
<%= render 'subnav', process: @process, active: 'info' %>
<%= render "subnav", process: @process, active: "info" %>
<%= render 'form' %>
<%= render "form" %>
</div>

View File

@@ -7,7 +7,7 @@
<%= link_to t("admin.legislation.processes.index.create"), new_admin_legislation_process_path,
class: "button float-right" %>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.legislation.processes.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.legislation.processes.index" %>
<% if @processes.any? %>
<h3><%= page_entries_info @processes %></h3>
@@ -37,7 +37,7 @@
<td>
<%= link_to t("admin.legislation.processes.index.delete"), admin_legislation_process_path(process),
method: :delete,
class: 'button hollow alert expanded' %>
class: "button hollow alert expanded" %>
</td>
</tr>
<% end %>

View File

@@ -32,7 +32,7 @@
<div id="nested_question_options">
<%= f.fields_for :question_options do |ff| %>
<%= render 'question_option_fields', f: ff %>
<%= render "question_option_fields", f: ff %>
<% end %>
<div class="js-add-fields-container">

View File

@@ -8,7 +8,7 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>
<div class="small-12 column">
<h3 class="inline-block"><%= t("admin.legislation.questions.edit.title", question_title: @question.title) %></h3>
@@ -16,10 +16,10 @@
<div class="float-right">
<%= link_to t("admin.legislation.questions.index.delete"), admin_legislation_process_question_path(@process, @question),
method: :delete,
class: 'button hollow alert' %>
class: "button hollow alert" %>
</div>
</div>
<%= render 'form', url: admin_legislation_process_question_path(@process, @question) %>
<%= render "form", url: admin_legislation_process_question_path(@process, @question) %>
</div>
</div>

View File

@@ -7,7 +7,7 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>
<div class="small-12 column">
<h4 class="inline-block"><%= t("admin.legislation.questions.index.title") %></h4>
@@ -42,7 +42,7 @@
<% end %>
</td>
<td class="text-center"><%= question.answers_count %></td>
<td class="text-center"><%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: 'comments') %></td>
<td class="text-center"><%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: "comments") %></td>
</tr>
<% end %>
</tbody>

View File

@@ -8,11 +8,11 @@
<h2><%= @process.title %></h2>
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %>
<%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>
<div class="small-12 column">
<h3><%= t("admin.legislation.questions.new.title") %></h3>
</div>
<%= render 'form', url: admin_legislation_process_questions_path(@process) %>
<%= render "form", url: admin_legislation_process_questions_path(@process) %>
</div>

View File

@@ -1,6 +1,6 @@
<h2><%= t("admin.managers.index.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_managers_path %>
<%= render "admin/shared/user_search", url: search_admin_managers_path %>
<div id="managers">
<% if @managers.any? %>
@@ -23,13 +23,13 @@
</td>
<td>
<% if manager.persisted? %>
<%= link_to t('admin.managers.manager.delete'),
<%= link_to t("admin.managers.manager.delete"),
admin_manager_path(manager),
method: :delete,
class: "button hollow alert expanded"
%>
<% else %>
<%= link_to t('admin.managers.manager.add'),
<%= link_to t("admin.managers.manager.add"),
{ controller: "admin/managers",
action: :create,
user_id: manager.user_id },

View File

@@ -1,6 +1,6 @@
<h2><%= t("admin.managers.search.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_managers_path %>
<%= render "admin/shared/user_search", url: search_admin_managers_path %>
<div id="managers">
<% if @users.any? %>
@@ -19,12 +19,12 @@
<td><%= user.email %></td>
<td>
<% if user.manager? && user.manager.persisted? %>
<%= link_to t('admin.managers.manager.delete'),
<%= link_to t("admin.managers.manager.delete"),
admin_manager_path(user),
method: :delete,
class: "button hollow alert expanded" %>
<% else %>
<%= link_to t('admin.managers.manager.add'),
<%= link_to t("admin.managers.manager.add"),
{ controller: "admin/managers",
action: :create,
user_id: user },

View File

@@ -1,5 +1,5 @@
<%= form_for [:admin, @status] do |f| %>
<%= render 'shared/errors', resource: @status %>
<%= render "shared/errors", resource: @status %>
<%= f.text_field :name %>
<%= f.text_area :description %>

View File

@@ -2,4 +2,4 @@
<h2><%= t("admin.statuses.edit.title") %></h2>
<%= render '/admin/milestone_statuses/form' %>
<%= render "/admin/milestone_statuses/form" %>

View File

@@ -2,4 +2,4 @@
<h2><%= t("admin.statuses.new.title") %></h2>
<%= render '/admin/milestone_statuses/form' %>
<%= render "/admin/milestone_statuses/form" %>

View File

@@ -5,9 +5,9 @@
<div class="small-12 medium-6 margin-bottom">
<%= f.select :status_id,
@statuses.collect { |s| [s.name, s.id] },
{ include_blank: @statuses.any? ? '' : t('admin.milestones.form.no_statuses_defined') },
{ include_blank: @statuses.any? ? "" : t("admin.milestones.form.no_statuses_defined") },
{ disabled: @statuses.blank? } %>
<%= link_to t('admin.milestones.form.admin_statuses'),
<%= link_to t("admin.milestones.form.admin_statuses"),
admin_milestone_statuses_path %>
</div>
@@ -26,10 +26,10 @@
label: false,
class: "js-calendar-full" %>
<%= render 'images/admin_image', imageable: @milestone, f: f %>
<%= render "images/admin_image", imageable: @milestone, f: f %>
<div class="documents">
<%= render 'documents/nested_documents', documentable: @milestone, f: f %>
<%= render "documents/nested_documents", documentable: @milestone, f: f %>
</div>
<%= f.submit nil, class: "button success" %>

View File

@@ -32,7 +32,7 @@
<%= l(milestone.publication_date.to_date) if milestone.publication_date.present? %>
</td>
<td class="small">
<%= milestone.status.present? ? milestone.status.name : '' %>
<%= milestone.status.present? ? milestone.status.name : "" %>
</td>
<td class="small">
<%= link_to t("admin.milestones.index.show_image"),

View File

@@ -1,8 +1,8 @@
<%= link_to t('admin.menu.activity'), admin_activity_path, class: "button float-right" %>
<%= link_to t("admin.menu.activity"), admin_activity_path, class: "button float-right" %>
<h2 class="inline-block"><%= t("admin.moderators.index.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_moderators_path %>
<%= render "admin/shared/user_search", url: search_admin_moderators_path %>
<div id="moderators">
<% if @moderators.any? %>
@@ -25,13 +25,13 @@
</td>
<td>
<% if moderator.persisted? %>
<%= link_to t('admin.moderators.moderator.delete'),
<%= link_to t("admin.moderators.moderator.delete"),
admin_moderator_path(moderator),
method: :delete,
class: "button hollow alert expanded"
%>
<% else %>
<%= link_to t('admin.moderators.moderator.add'),
<%= link_to t("admin.moderators.moderator.add"),
{ controller: "admin/moderators", action: :create,
user_id: moderator.user_id },
method: :post,

View File

@@ -1,6 +1,6 @@
<h2><%= t("admin.moderators.search.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_moderators_path %>
<%= render "admin/shared/user_search", url: search_admin_moderators_path %>
<div id="moderators">
<% if @users.any? %>
@@ -19,12 +19,12 @@
<td><%= user.email %></td>
<td>
<% if user.moderator? && user.moderator.persisted? %>
<%= link_to t('admin.moderators.moderator.delete'),
<%= link_to t("admin.moderators.moderator.delete"),
admin_moderator_path(user),
method: :delete,
class: "button hollow alert expanded" %>
<% else %>
<%= link_to t('admin.moderators.moderator.add'),
<%= link_to t("admin.moderators.moderator.add"),
{ controller: "admin/moderators",
action: :create,
user_id: user },

View File

@@ -1,5 +1,5 @@
<%= form_for [:admin, @newsletter] do |f| %>
<%= render 'shared/errors', resource: @newsletter %>
<%= render "shared/errors", resource: @newsletter %>
<%= f.select :segment_recipient, options_for_select(user_segments_options,
@newsletter[:segment_recipient]) %>

View File

@@ -16,7 +16,7 @@
<%= f.submit class: "button" %>
<% if @user.official? %>
<br>
<%= link_to t("admin.officials.edit.destroy"), admin_official_path(@user), method: :delete, class: 'delete' %>
<%= link_to t("admin.officials.edit.destroy"), admin_official_path(@user), method: :delete, class: "delete" %>
<% end %>
<% end %>
</div>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.officials.index.title") %></h2>
<p><%= t("admin.officials.index.help") %></p>
<%= render 'admin/shared/user_search', url: search_admin_officials_path %>
<%= render "admin/shared/user_search", url: search_admin_officials_path %>
<% if @officials.any? %>
<h3 class="margin"><%= page_entries_info @officials %></h3>

View File

@@ -1,6 +1,6 @@
<h2><%= t("admin.officials.search.title") %></h2>
<%= render 'admin/shared/user_search', url: search_admin_officials_path %>
<%= render "admin/shared/user_search", url: search_admin_officials_path %>
<% if @users.any? %>
@@ -50,4 +50,4 @@
<div class="callout alert">
<%= t("admin.officials.search.no_results") %>
</div>
<% end %>
<% end %>

View File

@@ -12,7 +12,7 @@
<% end %>
</div>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.organizations.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.organizations.index" %>
<% if @organizations.any? %>
<h3 class="margin"><%= page_entries_info @organizations %></h3>

View File

@@ -2,7 +2,7 @@
<%= translatable_form_for(@active_poll, url: form_url) do |f| %>
<%= render 'shared/errors', resource: @active_poll %>
<%= render "shared/errors", resource: @active_poll %>
<%= f.translatable_fields do |translations_form| %>
<div class="ckeditor">

View File

@@ -1,9 +1,9 @@
<% if @booths.blank? %>
<div class="callout alert margin-bottom">
<%= t('admin.shared.no_search_results') %>
<%= t("admin.shared.no_search_results") %>
</div>
<% else %>
<h3><%= t('admin.shared.search_results') %></h3>
<h3><%= t("admin.shared.search_results") %></h3>
<% end %>
<% if @booths.any? %>

View File

@@ -64,7 +64,7 @@
<tbody>
<tr>
<td class="text-center" id="total_final">
<%= total_recounts_by_booth(@booth_assignment) || '-' %>
<%= total_recounts_by_booth(@booth_assignment) || "-" %>
</td>
<td class="text-center" id="total_system">
<%= @booth_assignment.voters.count %>

View File

@@ -1,6 +1,6 @@
<div class="small-12 medium-6 column">
<%= f.text_field :name,
placeholder: t('admin.booths.new.name'),
placeholder: t("admin.booths.new.name"),
label: t("admin.booths.new.name") %>
</div>

View File

@@ -1,9 +1,9 @@
<% if @officers.blank? %>
<div class="callout alert margin-bottom">
<%= t('admin.shared.no_search_results') %>
<%= t("admin.shared.no_search_results") %>
</div>
<% else %>
<h3><%= t('admin.shared.search_results') %></h3>
<h3><%= t("admin.shared.search_results") %></h3>
<% end %>
<% if @officers.any? %>

View File

@@ -21,7 +21,7 @@
<tbody>
<% @officer_assignments.each do |officer_assignment| %>
<tr id="<%= dom_id officer_assignment %>">
<td><%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t('polls.final_date') if officer_assignment.final %></td>
<td><%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %></td>
<td><%= booth_name_with_location(officer_assignment.booth_assignment.booth) %></td>
</tr>
<% end %>

View File

@@ -1,6 +1,6 @@
<%= form_tag search_admin_officers_path, method: :get, remote: true do %>
<div class="input-group">
<%= text_field_tag :email, '',
<%= text_field_tag :email, "",
placeholder: t("admin.poll_officers.search.email_placeholder") %>
<div class="input-group-button">
<%= submit_tag t("admin.poll_officers.search.search"), class: "button" %>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.poll_officers.index.title") %></h2>
<div class="small-12 medium-6">
<%= render 'search' %>
<%= render "search" %>
</div>
<div id="search-result"></div>
@@ -49,4 +49,4 @@
</table>
<%= paginate @officers %>
<% end %>
<% end %>

View File

@@ -33,7 +33,7 @@
<% end %>
<div class="small-12 column">
<%= render 'images/admin_image', imageable: @poll, f: f %>
<%= render "images/admin_image", imageable: @poll, f: f %>
</div>
<div class="clear">

View File

@@ -1,4 +1,4 @@
<%= form_tag '', method: :get do %>
<%= form_tag "", method: :get do %>
<%= label_tag :poll_id, t("admin.questions.index.filter_poll") %>
<%= select_tag "poll_id",
poll_select_options(true),

View File

@@ -2,7 +2,7 @@
<%= translatable_form_for(@question, url: form_url) do |f| %>
<%= render 'shared/errors', resource: @question %>
<%= render "shared/errors", resource: @question %>
<%= f.hidden_field :proposal_id %>

View File

@@ -1,5 +1,5 @@
<div class="small-12 medium-4 large-3">
<%= render 'filter' %>
<%= render "filter" %>
</div>
<% if @questions.count == 0 %>

View File

@@ -2,7 +2,7 @@
<%= translatable_form_for(@answer, url: form_url) do |f| %>
<%= render 'shared/errors', resource: @answer %>
<%= render "shared/errors", resource: @answer %>
<%= f.hidden_field :question_id, value: @answer.question_id || @question.id %>

View File

@@ -12,10 +12,10 @@
url: admin_answer_path(@answer),
method: :put) do |f| %>
<%= render 'shared/errors', resource: @answer %>
<%= render "shared/errors", resource: @answer %>
<div class="documents">
<%= render 'documents/nested_documents', documentable: @answer, f: f %>
<%= render "documents/nested_documents", documentable: @answer, f: f %>
</div>
<div class="small-12 medium-6 large-2">

View File

@@ -1,3 +1,3 @@
$('.delete').bind('ajax:success', function () {
$(this).closest('div').fadeOut()
$(".delete").bind("ajax:success", function () {
$(this).closest("div").fadeOut()
})

View File

@@ -2,10 +2,10 @@
<%= form_for(Poll::Question::Answer.new,
url: admin_answer_images_path(@answer),
method: :post) do |f| %>
<%= render 'shared/errors', resource: @answer %>
<%= render "shared/errors", resource: @answer %>
<div class="images">
<%= render 'images/nested_image', imageable: @answer, f: f, image_fields: :images %>
<%= render "images/nested_image", imageable: @answer, f: f, image_fields: :images %>
</div>
<%= f.submit t("admin.questions.answers.images.save_image"), class: "button success" %>

View File

@@ -1,6 +1,6 @@
<%= form_for(@video, url: form_url) do |f| %>
<%= render 'shared/errors', resource: @video %>
<%= render "shared/errors", resource: @video %>
<%= f.hidden_field :answer_id, value: @video.answer_id || @answer.id %>

View File

@@ -1,7 +1,7 @@
<%= back_link_to admin_answer_videos_path(@answer) %>
<h2>
<%= t('admin.answers.videos.new.title') %>
<%= t("admin.answers.videos.new.title") %>
</h2>
<div class="poll-question-answer-video-form">

View File

@@ -4,7 +4,7 @@
class: "button float-right" %>
<div class="small-12 medium-6">
<%= render 'search' %>
<%= render "search" %>
</div>
<div class="tabs-content" data-tabs-content="questions-tabs">

View File

@@ -1,6 +1,6 @@
<%= back_link_to %>
<%= link_to t('admin.questions.show.edit_question'), edit_admin_question_path(@question),
<%= link_to t("admin.questions.show.edit_question"), edit_admin_question_path(@question),
class: "button hollow float-right" %>
<div class="clear"></div>
@@ -37,7 +37,7 @@
<table class="margin-top">
<tr>
<th colspan="5" scope="col" class="with-button">
<%= t('admin.questions.show.valid_answers') %>
<%= t("admin.questions.show.valid_answers") %>
</th>
</tr>

View File

@@ -40,7 +40,7 @@
<tr id="<%= dom_id(booth_assignment) %>_recounts" class="booth_recounts">
<td>
<strong>
<%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: 'tab-recounts') %>
<%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: "tab-recounts") %>
</strong>
</td>
<td class="text-center <%= 'count-error' if total_recounts.to_i != system_count %>">

View File

@@ -18,22 +18,22 @@
Poll::Shift.tasks.map {|k,v| [t("admin.poll_shifts.#{k}"), k]},
{ prompt: t("admin.poll_shifts.new.select_task"),
label: false },
class: 'js-poll-shifts' %>
class: "js-poll-shifts" %>
</div>
<div class="small-12 medium-3 column">
<label><%= t("admin.poll_shifts.new.date") %></label>
<%= select 'shift[date]', 'vote_collection_date',
<%= select "shift[date]", "vote_collection_date",
options_for_select(shift_vote_collection_dates(@booth, @voting_polls)),
{ prompt: @voting_polls.present? ? t("admin.poll_shifts.new.select_date") : t("admin.poll_shifts.new.no_voting_days"),
label: false },
class: 'js-shift-vote-collection-dates' %>
<%= select 'shift[date]', 'recount_scrutiny_date',
class: "js-shift-vote-collection-dates" %>
<%= select "shift[date]", "recount_scrutiny_date",
options_for_select(shift_recount_scrutiny_dates(@booth, @recount_polls)),
{ prompt: t("admin.poll_shifts.new.select_date"),
label: false },
class: 'js-shift-recount-scrutiny-dates',
hidden: 'hidden' %>
class: "js-shift-recount-scrutiny-dates",
hidden: "hidden" %>
</div>
<%= f.hidden_field :booth_id, value: @booth.id %>

View File

@@ -1,9 +1,9 @@
<% if @officers.blank? %>
<div class="callout alert margin-bottom">
<%= t('admin.shared.no_search_results') %>
<%= t("admin.shared.no_search_results") %>
</div>
<% else %>
<h3><%= t('admin.shared.search_results') %></h3>
<h3><%= t("admin.shared.search_results") %></h3>
<table>
<thead>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.proposal_notifications.index.title") %></h2>
<p><%= t("admin.shared.moderated_content") %></p>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.proposal_notifications.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.proposal_notifications.index" %>
<% if @proposal_notifications.any? %>
<h3 class="margin"><%= page_entries_info @proposal_notifications %></h3>

View File

@@ -23,7 +23,7 @@
<%= f.text_area :value, label: false, id: dom_id(setting), lines: 1 %>
</div>
<div class="small-12 medium-6 large-4 column">
<%= f.submit(t('admin.settings.index.update_setting'), class: "button hollow expanded") %>
<%= f.submit(t("admin.settings.index.update_setting"), class: "button hollow expanded") %>
</div>
<% end %>
</td>

View File

@@ -15,7 +15,7 @@
data-zoom-input-selector="#zoom">
</div>
<%= form_tag admin_update_map_path, method: :put, id: 'map-form' do |f| %>
<%= form_tag admin_update_map_path, method: :put, id: "map-form" do |f| %>
<%= hidden_field_tag :latitude, Setting["map_latitude"] %>
<%= hidden_field_tag :longitude, Setting["map_longitude"] %>
@@ -28,4 +28,4 @@
<% end %>
</div>
</div>
</div>

View File

@@ -4,7 +4,7 @@
<%= link_to t("admin.translations.remove_language"), "#",
id: "js_delete_#{locale}",
style: display_translation_style(resource, locale),
class: 'delete js-delete-language',
class: "delete js-delete-language",
data: { locale: locale } %>
</div>
<% end %>

View File

@@ -3,7 +3,7 @@
<h2><%= t("admin.signature_sheets.new.title") %></h2>
<%= form_for [:admin, @signature_sheet] do |f| %>
<%= render 'shared/errors',
<%= render "shared/errors",
resource: @signature_sheet %>
<div class="small-12 medium-6 large-4">
@@ -19,4 +19,4 @@
<%= f.text_area :document_numbers, rows: "6", label: false, aria: {describedby: "document-numbers-help-text"} %>
<%= f.submit(class: "button", value: t("admin.signature_sheets.new.submit")) %>
<% end %>
<% end %>

View File

@@ -24,7 +24,7 @@
<%= link_to t("admin.actions.delete"),
admin_widget_card_path(card, page_id: params[:page_id]),
method: :delete,
data: { confirm: t('admin.actions.confirm') },
data: { confirm: t("admin.actions.confirm") },
class: "button hollow alert" %>
</td>
</tr>

View File

@@ -1,5 +1,5 @@
<% if @is_heading_content_block %>
<%= render 'form_heading_content_block' %>
<%= render "form_heading_content_block" %>
<% else %>
<%= render 'form_content_block' %>
<%= render "form_content_block" %>
<% end %>

View File

@@ -13,4 +13,4 @@
<h2><%= t("admin.site_customization.content_blocks.edit.title") %></h2>
</div>
<%= render 'form' %>
<%= render "form" %>

View File

@@ -8,4 +8,4 @@
<h2><%= t("admin.site_customization.content_blocks.new.title") %></h2>
</div>
<%= render 'form' %>
<%= render "form" %>

View File

@@ -20,8 +20,8 @@
<%= f.file_field :image, label: false %>
</div>
<div class="small-12 medium-6 large-6 column">
<%= f.submit(t('admin.site_customization.images.index.update'), class: "button hollow") %>
<%= link_to t('admin.site_customization.images.index.delete'), admin_site_customization_image_path(image), method: :delete, class: "button hollow alert" if image.image.exists? %>
<%= f.submit(t("admin.site_customization.images.index.update"), class: "button hollow") %>
<%= link_to t("admin.site_customization.images.index.delete"), admin_site_customization_image_path(image), method: :delete, class: "button hollow alert" if image.image.exists? %>
</div>
<% end %>
</td>

View File

@@ -2,7 +2,7 @@
<% [:debates, :community, :proposals, :polls, :layouts, :mailers, :management, :welcome].each do |tab| %>
<li class="tabs-title">
<% if tab.to_s == @tab %>
<%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab), :class => 'is-active' %>
<%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab), :class => "is-active" %>
<% else %>
<%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab) %>
<% end %>

View File

@@ -1,7 +1,7 @@
<h2><%= t("admin.menu.site_customization.information_texts") %></h2>
<div class="tabs-content" data-tabs-content="information-texts-tabs" role="tablist">
<%= render 'tabs' %>
<%= render "tabs" %>
<div class="tabs-panel is-active" role="tab">
<%= render "form", contents: [@content] %>

View File

@@ -10,4 +10,4 @@
<%= link_to t("admin.site_customization.pages.index.delete"), admin_site_customization_page_path(@page), method: :delete, class: "delete float-right" %>
</div>
<%= render 'form' %>
<%= render "form" %>

View File

@@ -8,4 +8,4 @@
<h2><%= t("admin.site_customization.pages.new.title") %></h2>
</div>
<%= render 'form' %>
<%= render "form" %>

View File

@@ -1,4 +1,4 @@
<%= link_to admin_spending_proposal_path(@spending_proposal, SpendingProposal.filter_params(params)), class: 'back' do %>
<%= link_to admin_spending_proposal_path(@spending_proposal, SpendingProposal.filter_params(params)), class: "back" do %>
<span class="icon-angle-left"></span> <%= t("admin.spending_proposals.show.back") %>
<% end %>
@@ -52,7 +52,7 @@
<%= f.text_field :tag_list, value: @spending_proposal.tag_list.to_s,
label: false,
placeholder: t("admin.spending_proposals.edit.tags_placeholder"),
class: 'js-tag-list' %>
class: "js-tag-list" %>
</div>
<div class="small-12 column">
@@ -70,4 +70,4 @@
<% end %>
<hr>
<%= render 'valuation/spending_proposals/written_by_valuators' %>
<%= render "valuation/spending_proposals/written_by_valuators" %>

View File

@@ -44,7 +44,7 @@
<% end %>
</div>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.spending_proposals.index" %>
<%= render "shared/filter_subnav", i18n_namespace: "admin.spending_proposals.index" %>
<h3><%= page_entries_info @spending_proposals %></h3>
@@ -68,7 +68,7 @@
<% if spending_proposal.valuators.size == 0 %>
<%= t("admin.spending_proposals.index.no_valuators_assigned") %>
<% else %>
<%= spending_proposal.valuators.collect(&:description_or_name).join(', ') %>
<%= spending_proposal.valuators.collect(&:description_or_name).join(", ") %>
<% end %>
</td>
<td class="small">

View File

@@ -2,7 +2,7 @@
<span class="icon-angle-left"></span> <%= t("admin.spending_proposals.show.back") %>
<% end %>
<%= render 'written_by_author' %>
<%= render "written_by_author" %>
<%= link_to t("admin.spending_proposals.show.edit"),
edit_admin_spending_proposal_path(@spending_proposal,
@@ -19,13 +19,13 @@
<p id="tags">
<strong><%= t("admin.spending_proposals.show.tags") %>:</strong>
<%= @spending_proposal.tags.pluck(:name).join(', ') %>
<%= @spending_proposal.tags.pluck(:name).join(", ") %>
</p>
<p id="assigned_valuators">
<strong><%= t("admin.spending_proposals.show.assigned_valuators") %>:</strong>
<% if @spending_proposal.valuators.any? %>
<%= @spending_proposal.valuators.collect(&:name_and_email).join(', ') %>
<%= @spending_proposal.valuators.collect(&:name_and_email).join(", ") %>
<% else %>
<%= t("admin.spending_proposals.show.undefined") %>
<% end %>
@@ -34,14 +34,14 @@
<p>
<%= link_to t("admin.spending_proposals.show.edit_classification"),
edit_admin_spending_proposal_path(@spending_proposal,
{anchor: 'classification'}.merge(SpendingProposal.filter_params(params))) %>
{anchor: "classification"}.merge(SpendingProposal.filter_params(params))) %>
</p>
<hr>
<h2><%= t("admin.spending_proposals.show.dossier") %></h2>
<%= render 'valuation/spending_proposals/written_by_valuators' %>
<%= render "valuation/spending_proposals/written_by_valuators" %>
<p>
<%= link_to t("admin.spending_proposals.show.edit_dossier"), edit_valuation_spending_proposal_path(@spending_proposal) %>

View File

@@ -5,14 +5,14 @@
<h2><%= t("admin.spending_proposals.summary.title") %></h2>
<div id="all-proposals">
<%= render 'summary_table',
<%= render "summary_table",
spending_proposals: @spending_proposals,
second_scope: 'all' %>
second_scope: "all" %>
</div>
<div id="proposals-with-votes">
<h2><%= t("admin.spending_proposals.summary.title_proposals_with_supports") %></h2>
<%= render 'summary_table',
<%= render "summary_table",
spending_proposals: @spending_proposals_with_supports,
second_scope: 'with_supports' %>
</div>
second_scope: "with_supports" %>
</div>

View File

@@ -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 %>
<div class="stats">
<div class="row">

View File

@@ -18,7 +18,7 @@
<%= t("admin.system_emails.#{system_email_title}.description") %>
</td>
<td>
<% if system_email_actions.include?('view') %>
<% if system_email_actions.include?("view") %>
<div class="small-4 column">
<%= link_to t("admin.shared.view"), admin_system_email_view_path(system_email_title),
class: "button hollow expanded" %>

View File

@@ -12,7 +12,7 @@
</div>
<div class="small-12 medium-6 column">
<strong><%= t("admin.shared.author") %></strong><br>
<%= preview.proposal.author&.username || '-' %>
<%= preview.proposal.author&.username || "-" %>
</div>
<div class="small-12 medium-6 column">
<strong><%= t("admin.shared.created_at") %></strong><br>
@@ -31,7 +31,7 @@
</div>
<%= link_to t("admin.system_emails.preview_pending.moderate_pending"),
admin_system_email_moderate_pending_path(system_email_id: 'proposal_notification_digest',
admin_system_email_moderate_pending_path(system_email_id: "proposal_notification_digest",
id: preview.id),
method: :put,
class: "button hollow float-right" %>

Some files were not shown because too many files have changed in this diff Show More