Use double quotes in app/views/debates
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
<% if can? :hide, debate %>
|
||||
<%= link_to t("admin.actions.hide").capitalize, hide_moderation_debate_path(debate),
|
||||
method: :put, remote: true, data: { confirm: t('admin.actions.confirm') } %>
|
||||
method: :put, remote: true, data: { confirm: t("admin.actions.confirm") } %>
|
||||
<% end %>
|
||||
|
||||
<% if can? :hide, debate.author %>
|
||||
|
|
||||
<%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(debate.author_id),
|
||||
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
||||
method: :put, data: { confirm: t("admin.actions.confirm") } %>
|
||||
<% end %>
|
||||
|
||||
<% if can? :mark_featured, debate %>
|
||||
|
|
||||
<% if debate.featured? %>
|
||||
<%= link_to t("admin.actions.unmark_featured").capitalize, unmark_featured_debate_path(debate),
|
||||
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
||||
method: :put, data: { confirm: t("admin.actions.confirm") } %>
|
||||
<% else %>
|
||||
<%= link_to t("admin.actions.mark_featured").capitalize, mark_featured_debate_path(debate),
|
||||
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
||||
method: :put, data: { confirm: t("admin.actions.confirm") } %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
<span class="js-comments-count">(<%= @debate.comments_count %>)</span>
|
||||
</h3>
|
||||
|
||||
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>
|
||||
<%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<%= render 'comments/form', {commentable: @debate, parent_id: nil, toggeable: false} %>
|
||||
<%= render "comments/form", {commentable: @debate, parent_id: nil, toggeable: false} %>
|
||||
<% else %>
|
||||
<br>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<% end %>
|
||||
|
||||
<% @comment_tree.root_comments.each do |comment| %>
|
||||
<%= render 'comments/comment', comment: comment %>
|
||||
<%= render "comments/comment", comment: comment %>
|
||||
<% end %>
|
||||
<%= paginate @comment_tree.root_comments %>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
|
||||
<div id="<%= dom_id(debate) %>_votes" class="small-12 medium-3 column">
|
||||
<%= render 'debates/votes', debate: debate %>
|
||||
<%= render "debates/votes", debate: debate %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="small-12 column">
|
||||
<div class="debate-content">
|
||||
<% cache [locale_and_user_status,
|
||||
'index_minimal', debate, @debate_votes[debate.id]] do %>
|
||||
"index_minimal", debate, @debate_votes[debate.id]] do %>
|
||||
<h3><%= link_to debate.title, debate %></h3>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<span class="icon-flag flag-disable"></span>
|
||||
</a>
|
||||
<span class="dropdown-pane" id="flag-drop-debate-<%= debate.id %>" data-dropdown data-auto-focus="true">
|
||||
<%= link_to t('shared.flag'), flag_debate_path(debate), method: :put, remote: true, id: "flag-debate-#{ debate.id }" %>
|
||||
<%= link_to t("shared.flag"), flag_debate_path(debate), method: :put, remote: true, id: "flag-debate-#{ debate.id }" %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<span class="icon-flag flag-active"></span>
|
||||
</a>
|
||||
<span class="dropdown-pane" id="unflag-drop-debate-<%= debate.id %>" data-dropdown data-auto-focus="true">
|
||||
<%= link_to t('shared.unflag'), unflag_debate_path(debate), method: :put, remote: true, id: "unflag-debate-#{ debate.id }" %>
|
||||
<%= link_to t("shared.unflag"), unflag_debate_path(debate), method: :put, remote: true, id: "unflag-debate-#{ debate.id }" %>
|
||||
</span>
|
||||
<% end %>
|
||||
</span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= form_for(@debate) do |f| %>
|
||||
|
||||
<%= render 'shared/errors', resource: @debate %>
|
||||
<%= render "shared/errors", resource: @debate %>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
@@ -24,12 +24,12 @@
|
||||
placeholder: t("debates.form.tags_placeholder"),
|
||||
aria: {describedby: "tag-list-help-text"},
|
||||
data: {js_url: suggest_tags_path},
|
||||
class: 'tag-autocomplete'%>
|
||||
class: "tag-autocomplete"%>
|
||||
</div>
|
||||
<div class="small-12 column">
|
||||
<% if @debate.new_record? %>
|
||||
<%= f.label :terms_of_service do %>
|
||||
<%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %>
|
||||
<%= f.check_box :terms_of_service, title: t("form.accept_terms_title"), label: false %>
|
||||
<span class="checkbox">
|
||||
<%= t("form.accept_terms",
|
||||
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
<div class="votes">
|
||||
<div class="in-favor inline-block">
|
||||
<% if user_signed_in? %>
|
||||
<%= link_to vote_debate_path(debate, value: 'yes'),
|
||||
class: "like #{voted_classes[:in_favor]}", title: t('votes.agree'), method: "post", remote: true do %>
|
||||
<%= link_to vote_debate_path(debate, value: "yes"),
|
||||
class: "like #{voted_classes[:in_favor]}", title: t("votes.agree"), method: "post", remote: true do %>
|
||||
<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>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div class="like">
|
||||
<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>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -23,18 +23,18 @@
|
||||
|
||||
<div class="against inline-block">
|
||||
<% if user_signed_in? %>
|
||||
<%= link_to vote_debate_path(debate, value: 'no'), class: "unlike #{voted_classes[:against]}", title: t('votes.disagree'), method: "post", remote: true do %>
|
||||
<%= link_to vote_debate_path(debate, value: "no"), class: "unlike #{voted_classes[:against]}", title: t("votes.disagree"), method: "post", remote: true do %>
|
||||
<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>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div class="unlike">
|
||||
<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>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -44,13 +44,13 @@
|
||||
</span>
|
||||
|
||||
<% if user_signed_in? && current_user.organization? %>
|
||||
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||
<p>
|
||||
<%= t("votes.organizations") %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif user_signed_in? && !debate.votable_by?(current_user)%>
|
||||
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||
<p>
|
||||
<%= t("votes.anonymous",
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
|
||||
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<% elsif !user_signed_in? %>
|
||||
<div tabindex="0">
|
||||
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<div class="participation-not-allowed" style="display:none" aria-hidden="false">
|
||||
<%= t("votes.unauthenticated",
|
||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
||||
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<%= render "shared/section_header", i18n_namespace: "debates.index.section_header", image: "debates" %>
|
||||
<% end %>
|
||||
|
||||
<% if feature?('user.recommendations') && @recommended_debates.present? %>
|
||||
<% if feature?("user.recommendations") && @recommended_debates.present? %>
|
||||
<%= render "shared/recommended_index", recommended: @recommended_debates,
|
||||
disable_recommendations_path: recommendations_disable_debates_path,
|
||||
namespace: "debates" %>
|
||||
@@ -71,7 +71,7 @@
|
||||
<%= render @debates %>
|
||||
<% else %>
|
||||
<% @debates.each do |debate| %>
|
||||
<%= render partial: 'debates/debate_minimal', locals: { debate: debate } %>
|
||||
<%= render partial: "debates/debate_minimal", locals: { debate: debate } %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render 'shared/map', new_url_path: new_debate_path %>
|
||||
<%= render "shared/map", new_url_path: new_debate_path %>
|
||||
|
||||
@@ -17,7 +17,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 %>
|
||||
@@ -26,18 +26,18 @@
|
||||
<%= 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>
|
||||
|
||||
<%= safe_html_with_links @debate.description %>
|
||||
|
||||
<%= render 'shared/tags', taggable: @debate %>
|
||||
<%= render "shared/tags", taggable: @debate %>
|
||||
|
||||
<%= render 'relationable/related_content', relationable: @debate %>
|
||||
<%= render "relationable/related_content", relationable: @debate %>
|
||||
|
||||
<div class="js-moderator-debate-actions margin">
|
||||
<%= render 'actions', debate: @debate %>
|
||||
<%= render "actions", debate: @debate %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<% if current_user && @debate.editable_by?(current_user) %>
|
||||
<div class="sidebar-divider"></div>
|
||||
<h2><%= t("debates.show.author") %></h2>
|
||||
<%= link_to edit_debate_path(@debate), class: 'button hollow expanded' do %>
|
||||
<%= link_to edit_debate_path(@debate), class: "button hollow expanded" do %>
|
||||
<span class="icon-edit"></span>
|
||||
<%= t("debates.show.edit_debate_link") %>
|
||||
<% end %>
|
||||
@@ -54,9 +54,9 @@
|
||||
<div class="sidebar-divider"></div>
|
||||
<h2><%= t("votes.supports") %></h2>
|
||||
<div id="<%= dom_id(@debate) %>_votes">
|
||||
<%= render 'debates/votes', debate: @debate %>
|
||||
<%= render "debates/votes", debate: @debate %>
|
||||
</div>
|
||||
<%= render partial: 'shared/social_share', locals: {
|
||||
<%= render partial: "shared/social_share", locals: {
|
||||
share_title: t("debates.show.share"),
|
||||
title: @debate.title,
|
||||
url: debate_url(@debate),
|
||||
|
||||
Reference in New Issue
Block a user