Use double quotes in app/views/moderation

This commit is contained in:
Julian Herrero
2019-03-14 17:13:41 +01:00
parent 0e0462368b
commit 129a258f19
11 changed files with 51 additions and 51 deletions

View File

@@ -24,7 +24,7 @@
<li <%= "class=is-active" if controller_name == "debates" %>> <li <%= "class=is-active" if controller_name == "debates" %>>
<%= link_to moderation_debates_path do %> <%= link_to moderation_debates_path do %>
<span class="icon-debates"></span> <span class="icon-debates"></span>
<%= t('moderation.menu.flagged_debates') %> <%= t("moderation.menu.flagged_debates") %>
<% end %> <% end %>
</li> </li>
<% end %> <% end %>

View File

@@ -1,3 +1,3 @@
var investment_id = '<%= dom_id(@investment) %>' var investment_id = "<%= dom_id(@investment) %>"
App.ModeratorBudgetInvestments.add_class_faded(investment_id) App.ModeratorBudgetInvestments.add_class_faded(investment_id)
App.ModeratorBudgetInvestments.hide_moderator_actions(investment_id) App.ModeratorBudgetInvestments.hide_moderator_actions(investment_id)

View File

@@ -1,3 +1,3 @@
var comment_id = '<%= dom_id(@comment) %>'; var comment_id = "<%= dom_id(@comment) %>";
App.ModeratorComments.add_class_faded(comment_id); App.ModeratorComments.add_class_faded(comment_id);
App.ModeratorComments.hide_moderator_actions(comment_id); App.ModeratorComments.hide_moderator_actions(comment_id);

View File

@@ -1,19 +1,19 @@
<h2><%= t("moderation.comments.index.title") %></h2> <h2><%= t("moderation.comments.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "moderation.comments.index" %> <%= render "shared/filter_subnav", i18n_namespace: "moderation.comments.index" %>
<h3 class="inline-block"><%= page_entries_info @comments %></h3> <h3 class="inline-block"><%= page_entries_info @comments %></h3>
<div class="float-right"> <div class="float-right">
<%= t("moderation.comments.index.order") %> <%= t("moderation.comments.index.order") %>
<%= render 'shared/order_selector', i18n_namespace: "moderation.comments.index" %> <%= render "shared/order_selector", i18n_namespace: "moderation.comments.index" %>
</div> </div>
<%= form_tag moderate_moderation_comments_path(request.query_parameters), method: :put do %> <%= form_tag moderate_moderation_comments_path(request.query_parameters), method: :put do %>
<p class="float-left js-check"> <p class="float-left js-check">
<%= t('shared.check') %>: <%= t("shared.check") %>:
<%= link_to t('shared.check_all'), '#', data: { check_all: "comment_ids[]" } %> <%= link_to t("shared.check_all"), "#", data: { check_all: "comment_ids[]" } %>
| |
<%= link_to t('shared.check_none'), '#', data: { check_none: "comment_ids[]" } %> <%= link_to t("shared.check_none"), "#", data: { check_none: "comment_ids[]" } %>
</p> </p>
<table class="clear"> <table class="clear">
@@ -49,21 +49,21 @@
</tbody> </tbody>
</table> </table>
<%= submit_tag t('moderation.comments.index.block_authors'), <%= submit_tag t("moderation.comments.index.block_authors"),
name: "block_authors", name: "block_authors",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.comments.index.confirm') } %> data: { confirm: t("moderation.comments.index.confirm") } %>
<div class="float-right"> <div class="float-right">
<%= submit_tag t('moderation.comments.index.hide_comments'), <%= submit_tag t("moderation.comments.index.hide_comments"),
name: "hide_comments", name: "hide_comments",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.comments.index.confirm') } %> data: { confirm: t("moderation.comments.index.confirm") } %>
<%= submit_tag t('moderation.comments.index.ignore_flags'), <%= submit_tag t("moderation.comments.index.ignore_flags"),
name: "ignore_flags", name: "ignore_flags",
class: "button hollow", class: "button hollow",
data: { confirm: t('moderation.comments.index.confirm') } %> data: { confirm: t("moderation.comments.index.confirm") } %>
</div> </div>
<%= paginate @comments %> <%= paginate @comments %>

View File

@@ -1,3 +1,3 @@
<%= link_to t("admin.dashboard.index.back", org: setting['org_name']), root_path, class: "button float-right" %> <%= link_to t("admin.dashboard.index.back", org: setting["org_name"]), root_path, class: "button float-right" %>
<h2 class="inline-block"><%= t("moderation.dashboard.index.title") %></h2> <h2 class="inline-block"><%= t("moderation.dashboard.index.title") %></h2>

View File

@@ -1,3 +1,3 @@
var debate_id = '<%= dom_id(@debate) %>'; var debate_id = "<%= dom_id(@debate) %>";
App.ModeratorDebates.add_class_faded(debate_id); App.ModeratorDebates.add_class_faded(debate_id);
App.ModeratorDebates.hide_moderator_actions(debate_id); App.ModeratorDebates.hide_moderator_actions(debate_id);

View File

@@ -1,19 +1,19 @@
<h2><%= t("moderation.debates.index.title") %></h2> <h2><%= t("moderation.debates.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "moderation.debates.index" %> <%= render "shared/filter_subnav", i18n_namespace: "moderation.debates.index" %>
<h3 class="inline-block"><%= page_entries_info @debates %></h3> <h3 class="inline-block"><%= page_entries_info @debates %></h3>
<div class="float-right"> <div class="float-right">
<%= t("moderation.debates.index.order") %> <%= t("moderation.debates.index.order") %>
<%= render 'shared/order_selector', i18n_namespace: "moderation.debates.index" %> <%= render "shared/order_selector", i18n_namespace: "moderation.debates.index" %>
</div> </div>
<%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %> <%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %>
<p class="float-left js-check"> <p class="float-left js-check">
<%= t('shared.check') %>: <%= t("shared.check") %>:
<%= link_to t('shared.check_all'), '#', data: { check_all: "debate_ids[]" } %> <%= link_to t("shared.check_all"), "#", data: { check_all: "debate_ids[]" } %>
| |
<%= link_to t('shared.check_none'), '#', data: { check_none: "debate_ids[]" } %> <%= link_to t("shared.check_none"), "#", data: { check_none: "debate_ids[]" } %>
</p> </p>
<table class="clear"> <table class="clear">
@@ -48,21 +48,21 @@
</tbody> </tbody>
</table> </table>
<%= submit_tag t('moderation.debates.index.block_authors'), <%= submit_tag t("moderation.debates.index.block_authors"),
name: "block_authors", name: "block_authors",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.debates.index.confirm') } %> data: { confirm: t("moderation.debates.index.confirm") } %>
<div class="float-right"> <div class="float-right">
<%= submit_tag t('moderation.debates.index.hide_debates'), <%= submit_tag t("moderation.debates.index.hide_debates"),
name: "hide_debates", name: "hide_debates",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.debates.index.confirm') } %> data: { confirm: t("moderation.debates.index.confirm") } %>
<%= submit_tag t('moderation.debates.index.ignore_flags'), <%= submit_tag t("moderation.debates.index.ignore_flags"),
name: "ignore_flags", name: "ignore_flags",
class: "button hollow", class: "button hollow",
data: { confirm: t('moderation.debates.index.confirm') } %> data: { confirm: t("moderation.debates.index.confirm") } %>
</div> </div>
<%= paginate @debates %> <%= paginate @debates %>

View File

@@ -1,3 +1,3 @@
var proposal_notification_id = '<%= dom_id(@proposal_notification) %>'; var proposal_notification_id = "<%= dom_id(@proposal_notification) %>";
App.ModeratorProposalNotifications.add_class_faded(proposal_notification_id); App.ModeratorProposalNotifications.add_class_faded(proposal_notification_id);
App.ModeratorProposalNotifications.hide_moderator_actions(proposal_notification_id); App.ModeratorProposalNotifications.hide_moderator_actions(proposal_notification_id);

View File

@@ -1,19 +1,19 @@
<h2><%= t("moderation.proposal_notifications.index.title") %></h2> <h2><%= t("moderation.proposal_notifications.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "moderation.proposal_notifications.index" %> <%= render "shared/filter_subnav", i18n_namespace: "moderation.proposal_notifications.index" %>
<h3 class="inline-block"><%= page_entries_info @proposal_notifications %></h3> <h3 class="inline-block"><%= page_entries_info @proposal_notifications %></h3>
<div class="float-right"> <div class="float-right">
<%= t("moderation.proposal_notifications.index.order") %> <%= t("moderation.proposal_notifications.index.order") %>
<%= render 'shared/order_selector', i18n_namespace: "moderation.proposal_notifications.index" %> <%= render "shared/order_selector", i18n_namespace: "moderation.proposal_notifications.index" %>
</div> </div>
<%= form_tag moderate_moderation_proposal_notifications_path(request.query_parameters), method: :put do %> <%= form_tag moderate_moderation_proposal_notifications_path(request.query_parameters), method: :put do %>
<p class="float-left js-check"> <p class="float-left js-check">
<%= t('shared.check') %>: <%= t("shared.check") %>:
<%= link_to t('shared.check_all'), '#', data: { check_all: "proposal_notification_ids[]" } %> <%= link_to t("shared.check_all"), "#", data: { check_all: "proposal_notification_ids[]" } %>
| |
<%= link_to t('shared.check_none'), '#', data: { check_none: "proposal_notification_ids[]" } %> <%= link_to t("shared.check_none"), "#", data: { check_none: "proposal_notification_ids[]" } %>
</p> </p>
<table class="clear"> <table class="clear">
@@ -47,21 +47,21 @@
</tbody> </tbody>
</table> </table>
<%= submit_tag t('moderation.proposal_notifications.index.block_authors'), <%= submit_tag t("moderation.proposal_notifications.index.block_authors"),
name: "block_authors", name: "block_authors",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.proposal_notifications.index.confirm') } %> data: { confirm: t("moderation.proposal_notifications.index.confirm") } %>
<div class="float-right"> <div class="float-right">
<%= submit_tag t('moderation.proposal_notifications.index.hide_proposal_notifications'), <%= submit_tag t("moderation.proposal_notifications.index.hide_proposal_notifications"),
name: "hide_proposal_notifications", name: "hide_proposal_notifications",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.proposal_notifications.index.confirm') } %> data: { confirm: t("moderation.proposal_notifications.index.confirm") } %>
<%= submit_tag t('moderation.proposal_notifications.index.ignore_flags'), <%= submit_tag t("moderation.proposal_notifications.index.ignore_flags"),
name: "ignore_flags", name: "ignore_flags",
class: "button hollow", class: "button hollow",
data: { confirm: t('moderation.proposal_notifications.index.confirm') } %> data: { confirm: t("moderation.proposal_notifications.index.confirm") } %>
</div> </div>
<%= paginate @proposal_notifications %> <%= paginate @proposal_notifications %>

View File

@@ -1,3 +1,3 @@
var proposal_id = '<%= dom_id(@proposal) %>'; var proposal_id = "<%= dom_id(@proposal) %>";
App.ModeratorProposals.add_class_faded(proposal_id); App.ModeratorProposals.add_class_faded(proposal_id);
App.ModeratorProposals.hide_moderator_actions(proposal_id); App.ModeratorProposals.hide_moderator_actions(proposal_id);

View File

@@ -1,19 +1,19 @@
<h2><%= t("moderation.proposals.index.title") %></h2> <h2><%= t("moderation.proposals.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "moderation.proposals.index" %> <%= render "shared/filter_subnav", i18n_namespace: "moderation.proposals.index" %>
<h3 class="inline-block"><%= page_entries_info @proposals %></h3> <h3 class="inline-block"><%= page_entries_info @proposals %></h3>
<div class="float-right"> <div class="float-right">
<%= t("moderation.proposals.index.order") %> <%= t("moderation.proposals.index.order") %>
<%= render 'shared/order_selector', i18n_namespace: "moderation.proposals.index" %> <%= render "shared/order_selector", i18n_namespace: "moderation.proposals.index" %>
</div> </div>
<%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %> <%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %>
<p class="float-left js-check"> <p class="float-left js-check">
<%= t('shared.check') %>: <%= t("shared.check") %>:
<%= link_to t('shared.check_all'), '#', data: { check_all: "proposal_ids[]" } %> <%= link_to t("shared.check_all"), "#", data: { check_all: "proposal_ids[]" } %>
| |
<%= link_to t('shared.check_none'), '#', data: { check_none: "proposal_ids[]" } %> <%= link_to t("shared.check_none"), "#", data: { check_none: "proposal_ids[]" } %>
</p> </p>
<table class="clear"> <table class="clear">
@@ -48,21 +48,21 @@
</tbody> </tbody>
</table> </table>
<%= submit_tag t('moderation.proposals.index.block_authors'), <%= submit_tag t("moderation.proposals.index.block_authors"),
name: "block_authors", name: "block_authors",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.proposals.index.confirm') } %> data: { confirm: t("moderation.proposals.index.confirm") } %>
<div class="float-right"> <div class="float-right">
<%= submit_tag t('moderation.proposals.index.hide_proposals'), <%= submit_tag t("moderation.proposals.index.hide_proposals"),
name: "hide_proposals", name: "hide_proposals",
class: "button hollow alert", class: "button hollow alert",
data: { confirm: t('moderation.proposals.index.confirm') } %> data: { confirm: t("moderation.proposals.index.confirm") } %>
<%= submit_tag t('moderation.proposals.index.ignore_flags'), <%= submit_tag t("moderation.proposals.index.ignore_flags"),
name: "ignore_flags", name: "ignore_flags",
class: "button hollow", class: "button hollow",
data: { confirm: t('moderation.proposals.index.confirm') } %> data: { confirm: t("moderation.proposals.index.confirm") } %>
</div> </div>
<%= paginate @proposals %> <%= paginate @proposals %>