Use double quotes in app/views/legislation
This commit is contained in:
@@ -9,21 +9,21 @@
|
||||
<% if comment.body.length > 250 %>
|
||||
<div class="comment-expand">
|
||||
<%= link_to legislation_process_draft_version_annotation_path(annotation.draft_version.process, annotation.draft_version, annotation) do %>
|
||||
<%= t('legislation.annotations.comments.see_complete') %>
|
||||
<%= t("legislation.annotations.comments.see_complete") %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="comment-replies" id="annotation-<%= annotation.id %>-comments">
|
||||
<%= link_to legislation_process_draft_version_annotation_path(annotation.draft_version.process, annotation.draft_version, annotation, anchor: "comment_#{comment.id}") do %>
|
||||
<%= t('legislation.annotations.comments.replies_count', count: comment.children.size) %>
|
||||
<%= t("legislation.annotations.comments.replies_count", count: comment.children.size) %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="comment-votes">
|
||||
<div id="<%= dom_id(comment) %>_votes" class="comment-votes float-right">
|
||||
<%= render 'comments/votes', comment: comment %>
|
||||
<%= render "comments/votes", comment: comment %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
<div class="comment-footer">
|
||||
<% if annotation.comments.roots.count > Legislation::Annotation::COMMENTS_PAGE_SIZE %>
|
||||
<%= link_to legislation_process_draft_version_annotation_path(annotation.draft_version.process, annotation.draft_version, annotation), class: "button" do %>
|
||||
<strong><%= t('legislation.annotations.comments.see_all') %></strong>
|
||||
<strong><%= t("legislation.annotations.comments.see_all") %></strong>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if @process.allegations_phase.open? %>
|
||||
<a class="button publish-comment" href="#"><strong><%= t('legislation.annotations.comments.publish_comment') %></strong></a>
|
||||
<a class="button publish-comment" href="#"><strong><%= t("legislation.annotations.comments.publish_comment") %></strong></a>
|
||||
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
$('#comments-box-<%= annotation.id %> a.publish-comment').on({
|
||||
$("#comments-box-<%= annotation.id %> a.publish-comment").on({
|
||||
click: function(e) {
|
||||
e.preventDefault();
|
||||
$('a.publish-comment').hide();
|
||||
$('#js-comment-form-annotation-<%= annotation.id %>').toggle();
|
||||
$('#js-comment-form-annotation-<%= annotation.id %> textarea').focus();
|
||||
$("a.publish-comment").hide();
|
||||
$("#js-comment-form-annotation-<%= annotation.id %>").toggle();
|
||||
$("#js-comment-form-annotation-<%= annotation.id %> textarea").focus();
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
<% if comment.errors.any? %>
|
||||
$('#comments-box-<%= @annotation.id %> a.publish-comment').hide();
|
||||
$('#js-comment-form-annotation-<%= annotation.id %>').toggle();
|
||||
$('#js-comment-form-annotation-<%= annotation.id %> textarea').focus();
|
||||
$("#comments-box-<%= @annotation.id %> a.publish-comment").hide();
|
||||
$("#js-comment-form-annotation-<%= annotation.id %>").toggle();
|
||||
$("#js-comment-form-annotation-<%= annotation.id %> textarea").focus();
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="comment-box">
|
||||
<div class="comment-header">
|
||||
<span class="icon-comment" aria-hidden="true"></span>
|
||||
<div class="comment-number"><%= t('legislation.annotations.comments.comments_count', count: 0) %></div>
|
||||
<div class="comment-number"><%= t("legislation.annotations.comments.comments_count", count: 0) %></div>
|
||||
</div>
|
||||
|
||||
<div class="comments-wrapper">
|
||||
@@ -15,8 +15,8 @@
|
||||
<%= f.text_area :text %>
|
||||
|
||||
<div class="comment-actions">
|
||||
<a class="cancel-comment" href="#" data-cancel-annotation><%= t('legislation.annotations.comments.cancel') %></a>
|
||||
<%= f.submit value: t('legislation.annotations.comments.publish_comment'), class: 'button publish-comment' %>
|
||||
<a class="cancel-comment" href="#" data-cancel-annotation><%= t("legislation.annotations.comments.cancel") %></a>
|
||||
<%= f.submit value: t("legislation.annotations.comments.publish_comment"), class: "button publish-comment" %>
|
||||
</div>
|
||||
|
||||
<%= f.hidden_field :quote %>
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
<div class="row draft-chooser">
|
||||
<div class="small-12 medium-6 column">
|
||||
<h3><%= t('legislation.annotations.version_chooser.seeing_version') %></h3>
|
||||
<h3><%= t("legislation.annotations.version_chooser.seeing_version") %></h3>
|
||||
<div class="select-box">
|
||||
<%= form_tag go_to_version_legislation_process_draft_versions_path(process), method: :get, id: "draft_version_go_to_version" do %>
|
||||
<%= select_tag "draft_version_id", options_from_collection_for_select(process.draft_versions.published, 'id', 'display_title', draft_version.id), "aria-label": t('legislation.draft_versions.show.select_draft_version') %>
|
||||
<%= select_tag "draft_version_id", options_from_collection_for_select(process.draft_versions.published, "id", "display_title", draft_version.id), "aria-label": t("legislation.draft_versions.show.select_draft_version") %>
|
||||
<%= hidden_field_tag "redirect_action", "annotations" %>
|
||||
<%= submit_tag t('legislation.draft_versions.show.select_version_submit'), class: "button" %>
|
||||
<%= submit_tag t("legislation.draft_versions.show.select_version_submit"), class: "button" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<span><%= t('legislation.draft_versions.show.updated_at', date: format_date(@draft_version.updated_at)) %></span>
|
||||
<span><%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
||||
</div>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= link_to legislation_process_draft_version_path(process, draft_version), title: t('legislation.annotations.version_chooser.see_text'), class: "button" do %>
|
||||
<strong><%= t('legislation.annotations.version_chooser.see_text') %></strong>
|
||||
<%= link_to legislation_process_draft_version_path(process, draft_version), title: t("legislation.annotations.version_chooser.see_text"), class: "button" do %>
|
||||
<strong><%= t("legislation.annotations.version_chooser.see_text") %></strong>
|
||||
<% end %>
|
||||
</div>
|
||||
<aside class="small-12 medium-3 column">
|
||||
<div class="sidebar-divider"></div>
|
||||
<h2><%= t('legislation.shared.share') %></h2>
|
||||
<%= render '/shared/social_share',
|
||||
title: t('legislation.shared.share_comment', version_name: @draft_version.title.downcase, process_name: @process.title),
|
||||
<h2><%= t("legislation.shared.share") %></h2>
|
||||
<%= render "/shared/social_share",
|
||||
title: t("legislation.shared.share_comment", version_name: @draft_version.title.downcase, process_name: @process.title),
|
||||
url: legislation_process_draft_version_path(process, draft_version)
|
||||
%>
|
||||
</aside>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<div class="row draft-chooser">
|
||||
<div class="small-12 medium-9 column">
|
||||
<h3><%= t('.seeing_version') %></h3>
|
||||
<h3><%= t(".seeing_version") %></h3>
|
||||
<div class="select-box">
|
||||
<%= form_tag go_to_version_legislation_process_draft_versions_path(process), method: :get, id: "draft_version_go_to_version" do %>
|
||||
<%= select_tag "draft_version_id", options_from_collection_for_select(process.draft_versions.published, 'id', 'display_title', draft_version.id), "aria-label": t('legislation.draft_versions.show.select_draft_version') %>
|
||||
<%= select_tag "draft_version_id", options_from_collection_for_select(process.draft_versions.published, "id", "display_title", draft_version.id), "aria-label": t("legislation.draft_versions.show.select_draft_version") %>
|
||||
<%= hidden_field_tag "redirect_action", "annotations" %>
|
||||
<%= submit_tag t('legislation.draft_versions.show.select_version_submit'), class: "button" %>
|
||||
<%= submit_tag t("legislation.draft_versions.show.select_version_submit"), class: "button" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<span><%= t('legislation.draft_versions.show.updated_at', date: format_date(@draft_version.updated_at)) %></span>
|
||||
<span><%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
||||
</div>
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= link_to legislation_process_draft_version_path(process, draft_version), title: t('.see_text'), class: "button" do %>
|
||||
<%= t('.see_text') %>
|
||||
<%= link_to legislation_process_draft_version_path(process, draft_version), title: t(".see_text"), class: "button" do %>
|
||||
<%= t(".see_text") %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@ if ($(".comment").length == 0) {
|
||||
$("#comments-box #comments").append("<%= j render('comments', annotation: @annotation) %>");
|
||||
|
||||
var current_annotation_link = $("#annotation-link a").attr("href")
|
||||
var sub_annotation_ids = current_annotation_link.split('=')[1];
|
||||
var sub_annotation_ids = current_annotation_link.split("=")[1];
|
||||
if (sub_annotation_ids.length == 0) {
|
||||
var new_annotation_link = current_annotation_link + <%= "#{@annotation.id}" %>
|
||||
}
|
||||
@@ -21,4 +21,4 @@ if ($(".comment").length == 0) {
|
||||
$(".comment-number").text(new_comment_count_text)
|
||||
}
|
||||
|
||||
<%= render 'comments_box_form', comment: @comment, annotation: @annotation %>
|
||||
<%= render "comments_box_form", comment: @comment, annotation: @annotation %>
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
<% provide :title do %><%= "#{t('.title')} - #{@draft_version.title} - #{@process.title}" %><% end %>
|
||||
|
||||
<%= render 'legislation/processes/header', process: @process, header: :small %>
|
||||
<%= render "legislation/processes/header", process: @process, header: :small %>
|
||||
|
||||
<%= render 'legislation/processes/key_dates', process: @process, phase: :allegations_phase %>
|
||||
<%= render "legislation/processes/key_dates", process: @process, phase: :allegations_phase %>
|
||||
|
||||
<div class="column row">
|
||||
<div class="draft-panels small-12 column row">
|
||||
<%= render 'slim_version_chooser', process: @process, draft_version: @draft_version %>
|
||||
<%= render "slim_version_chooser", process: @process, draft_version: @draft_version %>
|
||||
</div>
|
||||
|
||||
<%= render 'legislation/processes/help_gif' %>
|
||||
<%= render "legislation/processes/help_gif" %>
|
||||
|
||||
<div class="small-12 medium-8 column row legislation-comments end">
|
||||
|
||||
<% @annotations.each do |annotation| %>
|
||||
<div class="comment">
|
||||
<strong><%= t('.comments_about') %></strong>
|
||||
<strong><%= t(".comments_about") %></strong>
|
||||
<span class="float-right">
|
||||
<%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{annotation.id}") do %>
|
||||
<span><%= t('.see_in_context') %></span> <span class="icon-expand" aria-hidden="true"></span>
|
||||
<span><%= t(".see_in_context") %></span> <span class="icon-expand" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
</span>
|
||||
<div class="comment-section">
|
||||
<%= annotation.context.try(:html_safe).presence || annotation.quote %>
|
||||
</div>
|
||||
<%= link_to legislation_process_draft_version_annotation_path(@process, @draft_version, annotation) do %>
|
||||
<span class="icon-comments" aria-hidden="true"></span> <span><%= t('.comments_count', count: annotation.comments_count) %></span></a>
|
||||
<span class="icon-comments" aria-hidden="true"></span> <span><%= t(".comments_count", count: annotation.comments_count) %></span></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
$("#comments-box-<%= @annotation.id %>").replaceWith("<%= j render('comments_box', annotation: @annotation) %>").show();
|
||||
$("#comments-box-<%= @annotation.id %>").replaceWith("<%= j render("comments_box", annotation: @annotation) %>").show();
|
||||
|
||||
<%= render 'comments_box_form', comment: @comment, annotation: @annotation %>
|
||||
<%= render "comments_box_form", comment: @comment, annotation: @annotation %>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<% provide :title do %><%= "#{t('.title')} - #{@draft_version.title} - #{@process.title}" %><% end %>
|
||||
|
||||
<%= render 'legislation/processes/header', process: @process, header: :small %>
|
||||
<%= render "legislation/processes/header", process: @process, header: :small %>
|
||||
|
||||
<%= render 'legislation/processes/key_dates', process: @process, phase: :allegations_phase %>
|
||||
<%= render "legislation/processes/key_dates", process: @process, phase: :allegations_phase %>
|
||||
|
||||
<div class="column row">
|
||||
<div class="draft-panels small-12 column row">
|
||||
<%= render 'version_chooser', process: @process, draft_version: @draft_version %>
|
||||
<%= render "version_chooser", process: @process, draft_version: @draft_version %>
|
||||
|
||||
<%= render 'legislation/processes/help_gif' %>
|
||||
<%= render "legislation/processes/help_gif" %>
|
||||
|
||||
<div class="legislation-comment">
|
||||
<div class="annotation-comment">
|
||||
<div class="row annotation-share-comment">
|
||||
<div class="small-12 medium-9 column">
|
||||
<strong><%= t('legislation.annotations.index.comments_about') %></strong>
|
||||
<strong><%= t("legislation.annotations.index.comments_about") %></strong>
|
||||
|
||||
<div class="comment-section">
|
||||
<div class="row">
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="small-12 medium-3 column legislation-comment">
|
||||
<span class="float-right">
|
||||
<%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{@annotation.id}") do %>
|
||||
<span><%= t('legislation.annotations.index.see_in_context') %></span> <span class="icon-expand" aria-hidden="true"></span>
|
||||
<span><%= t("legislation.annotations.index.see_in_context") %></span> <span class="icon-expand" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
</span>
|
||||
</div>
|
||||
@@ -34,15 +34,15 @@
|
||||
|
||||
<aside class="small-12 medium-3 column">
|
||||
<div class="sidebar-divider"></div>
|
||||
<h2><%= t('legislation.shared.share') %></h2>
|
||||
<%= render '/shared/social_share',
|
||||
title: t('legislation.shared.share_comment', version_name: @draft_version.title.downcase, process_name: @process.title),
|
||||
<h2><%= t("legislation.shared.share") %></h2>
|
||||
<%= render "/shared/social_share",
|
||||
title: t("legislation.shared.share_comment", version_name: @draft_version.title.downcase, process_name: @process.title),
|
||||
url: legislation_process_draft_version_annotations_path(@process, @draft_version)
|
||||
%>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
<%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree,
|
||||
<%= render partial: "/comments/comment_tree", locals: { comment_tree: @comment_tree,
|
||||
comment_flags: @comment_flags,
|
||||
display_comments_count: true } %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user