Add rubocop spacing rules
We were following these rules in most places; we just didn't define them anywhere.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% provide(:title) {@process.title} %>
|
||||
<% provide(:title) { @process.title } %>
|
||||
|
||||
<%= render "legislation/processes/header", process: @process, header: :full %>
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ wb.add_worksheet(name: "Resume") do |sheet|
|
||||
sheet.add_row [question.title, t("legislation.summary.comments", count: question.comments.count)]
|
||||
sheet.add_hyperlink :location => legislation_process_question_url(question.process, question), :ref => sheet.rows.last.cells.first
|
||||
question.best_comments(3).each do |comment|
|
||||
sheet.add_row [comment.body, (comment.cached_votes_up - comment.cached_votes_down).to_s + space +t("legislation.summary.votes")]
|
||||
sheet.add_row [comment.body, (comment.cached_votes_up - comment.cached_votes_down).to_s + space + t("legislation.summary.votes")]
|
||||
sheet.add_hyperlink :location => comment_url(comment), :ref => sheet.rows.last.cells.first
|
||||
end
|
||||
sheet.add_row ["",""]
|
||||
sheet.add_row ["", ""]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,14 +21,14 @@ wb.add_worksheet(name: "Resume") do |sheet|
|
||||
(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
|
||||
end
|
||||
sheet.add_row ["",""]
|
||||
sheet.add_row ["", ""]
|
||||
end
|
||||
|
||||
if @process.allegations_phase.enabled? && !@process.get_last_draft_version.nil? && !@process.get_last_draft_version.annotations.empty?
|
||||
sheet.add_row [t("legislation.summary.comments_phase")+" ("+t("legislation.summary.version")+@process.get_last_draft_version.title+")",
|
||||
sheet.add_row [t("legislation.summary.comments_phase") + " (" + t("legislation.summary.version") + @process.get_last_draft_version.title + ")",
|
||||
t("legislation.annotations.index.comments_count", count: @process.get_best_annotation_comments.count)]
|
||||
@process.get_best_annotation_comments.take(10).each do |comment|
|
||||
sheet.add_row [Legislation::Annotation.find_by(id: comment.commentable_id).quote,""]
|
||||
sheet.add_row [Legislation::Annotation.find_by(id: comment.commentable_id).quote, ""]
|
||||
sheet.add_row [comment.body, (comment.cached_votes_up - comment.cached_votes_down).to_s + space + t("legislation.summary.votes")]
|
||||
sheet.add_hyperlink :location => comment_url(comment), :ref => sheet.rows.last.cells.first
|
||||
end
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<%= render "comments/form", {commentable: @proposal, parent_id: nil, toggeable: false} %>
|
||||
<%= render "comments/form", { commentable: @proposal, parent_id: nil, toggeable: false } %>
|
||||
<% else %>
|
||||
<br>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||
<p>
|
||||
<%= t("votes.verified_only",
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path)).html_safe %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif !user_signed_in? %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<span class="icon-flag flag-disable"></span>
|
||||
</a>
|
||||
<span class="dropdown-pane" id="flag-drop-proposal-<%= proposal.id %>" data-dropdown data-auto-focus="true">
|
||||
<%= link_to t("shared.flag"), flag_proposal_path(proposal), method: :put, remote: true, id: "flag-proposal-#{ proposal.id }" %>
|
||||
<%= link_to t("shared.flag"), flag_proposal_path(proposal), method: :put, remote: true, id: "flag-proposal-#{proposal.id}" %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<span class="icon-flag flag-active"></span>
|
||||
</a>
|
||||
<span class="dropdown-pane" id="unflag-drop-proposal-<%= proposal.id %>" data-dropdown data-auto-focus="true">
|
||||
<%= link_to t("shared.unflag"), unflag_proposal_path(proposal), method: :put, remote: true, id: "unflag-proposal-#{ proposal.id }" %>
|
||||
<%= link_to t("shared.unflag"), unflag_proposal_path(proposal), method: :put, remote: true, id: "unflag-proposal-#{proposal.id}" %>
|
||||
</span>
|
||||
<% end %>
|
||||
</span>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<p class="help-text" id="summary-help-text"><%= t("proposals.form.proposal_summary_note") %></p>
|
||||
<%= f.text_area :summary, rows: 4, maxlength: 200, label: false,
|
||||
placeholder: t("proposals.form.proposal_summary"),
|
||||
aria: {describedby: "summary-help-text"} %>
|
||||
aria: { describedby: "summary-help-text" } %>
|
||||
</div>
|
||||
|
||||
<div class="ckeditor small-12 column">
|
||||
@@ -28,7 +28,7 @@
|
||||
<%= f.label :video_url, t("proposals.form.proposal_video_url") %>
|
||||
<p class="help-text" id="video-url-help-text"><%= t("proposals.form.proposal_video_url_note") %></p>
|
||||
<%= f.text_field :video_url, placeholder: t("proposals.form.proposal_video_url"), label: false,
|
||||
aria: {describedby: "video-url-help-text"} %>
|
||||
aria: { describedby: "video-url-help-text" } %>
|
||||
</div>
|
||||
|
||||
<% if feature?(:allow_images) %>
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.label :geozone_id, t("proposals.form.geozone") %>
|
||||
<%= f.select :geozone_id, geozone_select_options, {include_blank: t("geozones.none"), label: false} %>
|
||||
<%= f.select :geozone_id, geozone_select_options, { include_blank: t("geozones.none"), label: false } %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
@@ -61,7 +61,7 @@
|
||||
label: false,
|
||||
placeholder: t("proposals.form.tags_placeholder"),
|
||||
class: "js-tag-list",
|
||||
aria: {describedby: "tag-list-help-text"} %>
|
||||
aria: { describedby: "tag-list-help-text" } %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||
<p>
|
||||
<%= t("legislation.proposals.not_verified",
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path)).html_safe %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif !user_signed_in? %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% if question.question_options.any? %>
|
||||
<% if process.debate_phase.open? && !answer.persisted? %>
|
||||
|
||||
<%= form_for answer, url: legislation_process_question_answers_path(process, question, answer), remote: true , html: { class: "controls-stacked"} do |f| %>
|
||||
<%= form_for answer, url: legislation_process_question_answers_path(process, question, answer), remote: true, html: { class: "controls-stacked" } do |f| %>
|
||||
<% question.question_options.each do |question_option| %>
|
||||
<label class="control radio <%= "is-active" if @answer.legislation_question_option_id == question_option.id %>">
|
||||
<%= f.radio_button :legislation_question_option_id, question_option.id, label: false %>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||
<p>
|
||||
<%= t("legislation.questions.participation.verified_only",
|
||||
verify_account: link_to(t("legislation.questions.participation.verify_account"), verification_path )).html_safe %>
|
||||
verify_account: link_to(t("legislation.questions.participation.verify_account"), verification_path)).html_safe %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif !user_signed_in? %>
|
||||
|
||||
Reference in New Issue
Block a user