Use double quotes in app/views

This commit is contained in:
Julian Herrero
2019-03-14 17:14:54 +01:00
parent dbe99f058e
commit f6489bc604
81 changed files with 256 additions and 256 deletions

View File

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

View File

@@ -1,17 +1,17 @@
<span id="flag-actions-<%= dom_id(comment) %>" class="js-flag-actions"> <span id="flag-actions-<%= dom_id(comment) %>" class="js-flag-actions">
<%= render 'comments/flag_actions', comment: comment %> <%= render "comments/flag_actions", comment: comment %>
</span> </span>
<span class='js-moderation-actions'> <span class="js-moderation-actions">
<% if can? :hide, comment %> <% if can? :hide, comment %>
<span class="divider">&nbsp;&bull;&nbsp;</span> <span class="divider">&nbsp;&bull;&nbsp;</span>
<%= link_to t("admin.actions.hide").capitalize, hide_moderation_comment_path(comment), <%= link_to t("admin.actions.hide").capitalize, hide_moderation_comment_path(comment),
method: :put, remote: true, data: { confirm: t('admin.actions.confirm') } %> method: :put, remote: true, data: { confirm: t("admin.actions.confirm") } %>
<% end %> <% end %>
<% if can? :hide, comment.user %> <% if can? :hide, comment.user %>
<span class="divider">&nbsp;&bull;&nbsp;</span> <span class="divider">&nbsp;&bull;&nbsp;</span>
<%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(comment.user_id), <%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(comment.user_id),
method: :put, data: { confirm: t('admin.actions.confirm') } %> method: :put, data: { confirm: t("admin.actions.confirm") } %>
<% end %> <% end %>
</span> </span>

View File

@@ -73,12 +73,12 @@
<div id="<%= dom_id(comment) %>_reply" class="reply"> <div id="<%= dom_id(comment) %>_reply" class="reply">
<% if allow_votes %> <% if allow_votes %>
<div id="<%= dom_id(comment) %>_votes" class="comment-votes float-right"> <div id="<%= dom_id(comment) %>_votes" class="comment-votes float-right">
<%= render 'comments/votes', comment: comment %> <%= render "comments/votes", comment: comment %>
</div> </div>
<% end %> <% end %>
<% if comment.children.size > 0 %> <% if comment.children.size > 0 %>
<%= link_to "", class: "js-toggle-children relative", data: {'id': "#{dom_id(comment)}"} do %> <%= link_to "", class: "js-toggle-children relative", data: {"id": "#{dom_id(comment)}"} do %>
<span class="show-for-sr js-child-toggle" style="display: none;"><%= t("shared.show") %></span> <span class="show-for-sr js-child-toggle" style="display: none;"><%= t("shared.show") %></span>
<span class="show-for-sr js-child-toggle"><%= t("shared.hide") %></span> <span class="show-for-sr js-child-toggle"><%= t("shared.hide") %></span>
<span id="<%= dom_id(comment) %>_children_arrow" class="icon-arrow-down"></span> <%= t("comments.comment.responses", count: comment.children.size) %> <span id="<%= dom_id(comment) %>_children_arrow" class="icon-arrow-down"></span> <%= t("comments.comment.responses", count: comment.children.size) %>
@@ -90,14 +90,14 @@
<% if user_signed_in? && !comments_closed_for_commentable?(comment.commentable) && !require_verified_resident_for_commentable?(comment.commentable, current_user) %> <% if user_signed_in? && !comments_closed_for_commentable?(comment.commentable) && !require_verified_resident_for_commentable?(comment.commentable, current_user) %>
<span class="divider">&nbsp;|&nbsp;</span> <span class="divider">&nbsp;|&nbsp;</span>
<%= link_to(comment_link_text(comment), "", <%= link_to(comment_link_text(comment), "",
class: "js-add-comment-link", data: {'id': dom_id(comment)}) %> class: "js-add-comment-link", data: {"id": dom_id(comment)}) %>
<% if allow_actions %> <% if allow_actions %>
<%= render 'comments/actions', { comment: comment } %> <%= render "comments/actions", { comment: comment } %>
<% end %> <% end %>
<% if allow_comments %> <% if allow_comments %>
<%= render 'comments/form', {commentable: comment.commentable, <%= render "comments/form", {commentable: comment.commentable,
parent_id: comment.id, parent_id: comment.id,
toggeable: true, toggeable: true,
valuation: valuation } %> valuation: valuation } %>
@@ -111,7 +111,7 @@
<ul id="<%= dom_id(comment) %>_children" class="no-bullet comment-children"> <ul id="<%= dom_id(comment) %>_children" class="no-bullet comment-children">
<% child_comments_of(comment).each do |child| %> <% child_comments_of(comment).each do |child| %>
<li> <li>
<%= render 'comments/comment', { comment: child, <%= render "comments/comment", { comment: child,
valuation: valuation, valuation: valuation,
allow_votes: allow_votes, allow_votes: allow_votes,
allow_actions: allow_actions, allow_actions: allow_actions,

View File

@@ -12,7 +12,7 @@
</h2> </h2>
<% end %> <% end %>
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> <%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
<% if user_signed_in? %> <% if user_signed_in? %>
<% if comments_closed_for_commentable?(commentable) %> <% if comments_closed_for_commentable?(commentable) %>
@@ -26,7 +26,7 @@
<%= t("comments.verified_only", verify_account: link_to(t("comments.verify_account"), verification_path )).html_safe %> <%= t("comments.verified_only", verify_account: link_to(t("comments.verify_account"), verification_path )).html_safe %>
</div> </div>
<% elsif allow_comments %> <% elsif allow_comments %>
<%= render 'comments/form', { commentable: commentable, <%= render "comments/form", { commentable: commentable,
parent_id: nil, parent_id: nil,
toggeable: false, toggeable: false,
valuation: valuation } %> valuation: valuation } %>
@@ -41,7 +41,7 @@
<% end %> <% end %>
<% comment_tree.root_comments.each do |comment| %> <% comment_tree.root_comments.each do |comment| %>
<%= render 'comments/comment', { comment: comment, <%= render "comments/comment", { comment: comment,
comment_flags: comment_flags, comment_flags: comment_flags,
valuation: valuation, valuation: valuation,
allow_votes: !valuation, allow_votes: !valuation,

View File

@@ -9,10 +9,10 @@
<span class="js-comments-count">(<%= @investment.comments_count %>)</span> <span class="js-comments-count">(<%= @investment.comments_count %>)</span>
</h2> </h2>
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> <%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
<% if user_signed_in? && allow_comments %> <% if user_signed_in? && allow_comments %>
<%= render 'comments/form', { commentable: @investment, <%= render "comments/form", { commentable: @investment,
parent_id: nil, parent_id: nil,
toggeable: false, toggeable: false,
valuation: valuation } %> valuation: valuation } %>
@@ -27,7 +27,7 @@
<% end %> <% end %>
<% @comment_tree.root_comments.each do |comment| %> <% @comment_tree.root_comments.each do |comment| %>
<%= render 'comments/comment', { comment: comment, <%= render "comments/comment", { comment: comment,
valuation: valuation, valuation: valuation,
allow_comments: allow_comments } %> allow_comments: allow_comments } %>
<% end %> <% end %>

View File

@@ -14,13 +14,13 @@
<% if can? :comment_as_moderator, commentable %> <% if can? :comment_as_moderator, commentable %>
<div class="float-right"> <div class="float-right">
<%= f.check_box :as_moderator, title: t('comments.form.comment_as_moderator'), id: "comment-as-moderator-#{css_id}", label: false %> <%= f.check_box :as_moderator, title: t("comments.form.comment_as_moderator"), id: "comment-as-moderator-#{css_id}", label: false %>
<%= label_tag "comment-as-moderator-#{css_id}", t("comments.form.comment_as_moderator"), class: "checkbox" %> <%= label_tag "comment-as-moderator-#{css_id}", t("comments.form.comment_as_moderator"), class: "checkbox" %>
</div> </div>
<% end %> <% end %>
<% if can? :comment_as_administrator, commentable %> <% if can? :comment_as_administrator, commentable %>
<div class="float-right"> <div class="float-right">
<%= f.check_box :as_administrator, title: t('comments.form.comment_as_admin'), id: "comment-as-administrator-#{css_id}",label: false %> <%= f.check_box :as_administrator, title: t("comments.form.comment_as_admin"), id: "comment-as-administrator-#{css_id}",label: false %>
<%= label_tag "comment-as-administrator-#{css_id}", t("comments.form.comment_as_admin"), class: "checkbox" %> <%= label_tag "comment-as-administrator-#{css_id}", t("comments.form.comment_as_admin"), class: "checkbox" %>
</div> </div>
<% end %> <% end %>

View File

@@ -1,20 +1,20 @@
<div class="votes"> <div class="votes">
<% if user_signed_in? %> <% if user_signed_in? %>
<%= t('comments.comment.votes', count: comment.total_votes) %> <%= t("comments.comment.votes", count: comment.total_votes) %>
&nbsp;|&nbsp; &nbsp;|&nbsp;
<span class="in_favor"> <span class="in_favor">
<% if can?(:vote, comment) %> <% if can?(:vote, comment) %>
<%= link_to vote_comment_path(comment, value: 'yes'), <%= link_to vote_comment_path(comment, value: "yes"),
method: "post", remote: true, title: t('votes.agree') do %> method: "post", remote: true, title: t("votes.agree") do %>
<span class="icon-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>
<% end %> <% end %>
<% else %> <% else %>
<%= link_to new_user_session_path do %> <%= link_to new_user_session_path do %>
<span class="icon-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>
<% end %> <% end %>
<% end %> <% end %>
@@ -23,15 +23,15 @@
<span class="against"> <span class="against">
<% if can?(:vote, comment) %> <% if can?(:vote, comment) %>
<%= link_to vote_comment_path(comment, value: 'no'), <%= link_to vote_comment_path(comment, value: "no"),
method: "post", remote: true, title: t('votes.disagree') do %> method: "post", remote: true, title: t("votes.disagree") do %>
<span class="icon-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>
<% end %> <% end %>
<% else %> <% else %>
<span class="icon-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>
<% end %> <% end %>
<%= comment.total_dislikes %> <%= comment.total_dislikes %>
@@ -40,21 +40,21 @@
<% elsif !user_signed_in? %> <% elsif !user_signed_in? %>
<div class="participation-allowed"> <div class="participation-allowed">
<%= t('comments.comment.votes', count: comment.total_votes) %> <%= t("comments.comment.votes", count: comment.total_votes) %>
&nbsp;|&nbsp; &nbsp;|&nbsp;
<span class="in_favor"> <span class="in_favor">
<% if can?(:vote, comment) %> <% if can?(:vote, comment) %>
<%= link_to vote_comment_path(comment, value: 'yes'), <%= link_to vote_comment_path(comment, value: "yes"),
method: "post", remote: true, title: t('votes.agree') do %> method: "post", remote: true, title: t("votes.agree") do %>
<span class="icon-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>
<% end %> <% end %>
<% else %> <% else %>
<%= link_to new_user_session_path do %> <%= link_to new_user_session_path do %>
<span class="icon-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>
<% end %> <% end %>
<% end %> <% end %>
@@ -63,16 +63,16 @@
<span class="against"> <span class="against">
<% if can?(:vote, comment) %> <% if can?(:vote, comment) %>
<%= link_to vote_comment_path(comment, value: 'no'), <%= link_to vote_comment_path(comment, value: "no"),
method: "post", remote: true, title: t('votes.disagree') do %> method: "post", remote: true, title: t("votes.disagree") do %>
<span class="icon-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>
<% end %> <% end %>
<% else %> <% else %>
<%= link_to new_user_session_path do %> <%= link_to new_user_session_path do %>
<span class="icon-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>
<% end %> <% end %>
<% end %> <% end %>
@@ -80,7 +80,7 @@
</span> </span>
</div> </div>
<div class="participation-not-allowed" style='display:none' aria-hidden="false"> <div class="participation-not-allowed" style="display:none" aria-hidden="false">
<%= t("votes.comment_unauthenticated", <%= t("votes.comment_unauthenticated",
signin: link_to(t("votes.signin"), new_user_session_path), signin: link_to(t("votes.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %> signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>

View File

@@ -1,7 +1,7 @@
var comment_html = "<%= j(render @comment) %>" var comment_html = "<%= j(render @comment) %>"
<% if @comment.root? -%> <% if @comment.root? -%>
var commentable_id = '<%= dom_id(@commentable) %>'; var commentable_id = "<%= dom_id(@commentable) %>";
App.Comments.reset_form(commentable_id); App.Comments.reset_form(commentable_id);
App.Comments.add_comment(commentable_id, comment_html); App.Comments.add_comment(commentable_id, comment_html);
<% else -%> <% else -%>

View File

@@ -4,5 +4,5 @@
<p> <p>
<%= community_access_text(community) %> <%= community_access_text(community) %>
</p> </p>
<%= link_to t("community.sidebar.button_to_access"), community_path(community.id), class: 'button hollow expanded' %> <%= link_to t("community.sidebar.button_to_access"), community_path(community.id), class: "button hollow expanded" %>
<% end %> <% end %>

View File

@@ -1,7 +1,7 @@
<div class="comment-body"> <div class="comment-body">
<div class="comment-info"> <div class="comment-info">
<%= avatar_image( participant, seed: participant.id, size: 32, class: 'author-photo') %> <%= avatar_image( participant, seed: participant.id, size: 32, class: "author-photo") %>
<div class="comment-info"> <div class="comment-info">

View File

@@ -14,7 +14,7 @@
</ul> </ul>
<% @participants.each do |participant| %> <% @participants.each do |participant| %>
<%= render 'participant', participant: participant %> <%= render "participant", participant: participant %>
<% end %> <% end %>
</div> </div>

View File

@@ -35,4 +35,4 @@
</div> </div>
</div> </div>
<%= render 'participants' %> <%= render "participants" %>

View File

@@ -2,7 +2,7 @@
<h2><%= t("devise_views.confirmations.new.title") %></h2> <h2><%= t("devise_views.confirmations.new.title") %></h2>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<div class="row"> <div class="row">
<div class="small-12 columns"> <div class="small-12 columns">

View File

@@ -1,26 +1,26 @@
<% provide :title do %><%= t("devise_views.confirmations.show.title") %><% end %> <% provide :title do %><%= t("devise_views.confirmations.show.title") %><% end %>
<h1 class="text-center"><%= t("devise_views.confirmations.show.title") %></h1> <h1 class="text-center"><%= t("devise_views.confirmations.show.title") %></h1>
<p><%= t('devise_views.confirmations.show.instructions_html', email: resource.email) %></p> <p><%= t("devise_views.confirmations.show.instructions_html", email: resource.email) %></p>
<%= form_for(resource, <%= form_for(resource,
as: resource_name, as: resource_name,
url: update_user_confirmation_path, url: update_user_confirmation_path,
html: { method: :patch }) do |f| %> html: { method: :patch }) do |f| %>
<p><%= t('devise_views.confirmations.show.please_set_password') %></p> <p><%= t("devise_views.confirmations.show.please_set_password") %></p>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<div class="row"> <div class="row">
<div class="small-12 columns"> <div class="small-12 columns">
<%= f.password_field :password, <%= f.password_field :password,
autofocus: true, autofocus: true,
label: t('devise_views.confirmations.show.new_password_label') %> label: t("devise_views.confirmations.show.new_password_label") %>
</div> </div>
<div class="small-12 columns"> <div class="small-12 columns">
<%= f.password_field :password_confirmation, <%= f.password_field :password_confirmation,
label: t('devise_views.confirmations.show.new_password_confirmation_label') %> label: t("devise_views.confirmations.show.new_password_confirmation_label") %>
</div> </div>
</div> </div>

View File

@@ -2,7 +2,7 @@
<li> <li>
<%= layout_menu_link_to t("layouts.header.my_activity_link"), <%= layout_menu_link_to t("layouts.header.my_activity_link"),
user_path(current_user), user_path(current_user),
controller_name == 'users', controller_name == "users",
rel: "nofollow", rel: "nofollow",
title: t("shared.go_to_page") + title: t("shared.go_to_page") +
t("layouts.header.my_activity_link") %> t("layouts.header.my_activity_link") %>
@@ -10,7 +10,7 @@
<li> <li>
<%= layout_menu_link_to t("layouts.header.my_account_link"), <%= layout_menu_link_to t("layouts.header.my_account_link"),
account_path, account_path,
controller_name == 'account', controller_name == "account",
rel: "nofollow", rel: "nofollow",
title: t("shared.go_to_page") + title: t("shared.go_to_page") +
t("layouts.header.my_account_link") %> t("layouts.header.my_account_link") %>

View File

@@ -1,7 +1,7 @@
<h1 class="text-center"><%= t("devise_views.passwords.edit.title") %></h1> <h1 class="text-center"><%= t("devise_views.passwords.edit.title") %></h1>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<%= f.hidden_field :reset_password_token %> <%= f.hidden_field :reset_password_token %>
@@ -20,4 +20,4 @@
</div> </div>
<% end %> <% end %>
<%= render "devise/shared/links" %> <%= render "devise/shared/links" %>

View File

@@ -1,7 +1,7 @@
<% provide :title do %><%= t("devise_views.passwords.new.title") %><% end %> <% provide :title do %><%= t("devise_views.passwords.new.title") %><% end %>
<h2><%= t("devise_views.passwords.new.title") %></h2> <h2><%= t("devise_views.passwords.new.title") %></h2>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">

View File

@@ -1,7 +1,7 @@
<% provide :title do %><%= t("devise_views.sessions.new.title") %><% end %> <% provide :title do %><%= t("devise_views.sessions.new.title") %><% end %>
<h2><%= t("devise_views.sessions.new.title") %></h2> <h2><%= t("devise_views.sessions.new.title") %></h2>
<%= render 'devise/omniauth_form' %> <%= render "devise/omniauth_form" %>
<p> <p>
<%= t("devise_views.shared.links.signup", <%= t("devise_views.shared.links.signup",
@@ -22,7 +22,7 @@
<% if devise_mapping.rememberable? -%> <% if devise_mapping.rememberable? -%>
<div class="small-12 column"> <div class="small-12 column">
<%= f.label :remember_me do %> <%= f.label :remember_me do %>
<%= f.check_box :remember_me, title: t('devise_views.sessions.new.remember_me'), label: false %> <%= f.check_box :remember_me, title: t("devise_views.sessions.new.remember_me"), label: false %>
<span class="checkbox"><%= t("devise_views.sessions.new.remember_me") %></span> <span class="checkbox"><%= t("devise_views.sessions.new.remember_me") %></span>
<% end %> <% end %>
</div> </div>

View File

@@ -1,31 +1,31 @@
<div class="text-center"> <div class="text-center">
<%- if controller_name != 'sessions' %> <%- if controller_name != "sessions" %>
<%= link_to t("devise_views.shared.links.login"), new_session_path(resource_name) %><br> <%= link_to t("devise_views.shared.links.login"), new_session_path(resource_name) %><br>
<% end -%> <% end -%>
<%#- if devise_mapping.registerable? && <%#- if devise_mapping.registerable? &&
controller_name != 'registrations' || controller_name != "registrations" ||
controller_path != 'users/registrations' %> controller_path != "users/registrations" %>
<%#= link_to t("devise_views.shared.links.signup"), new_user_registration_path %><!-- <br> --> <%#= link_to t("devise_views.shared.links.signup"), new_user_registration_path %><!-- <br> -->
<%# end -%> <%# end -%>
<%#- if devise_mapping.registerable? && controller_name == 'registrations' && controller_path != 'organizations/registrations' %> <%#- if devise_mapping.registerable? && controller_name == "registrations" && controller_path != "organizations/registrations" %>
<%#= link_to t("devise_views.shared.links.organization_signup"), new_organization_registration_path %> <%#= link_to t("devise_views.shared.links.organization_signup"), new_organization_registration_path %>
<%# end -%> <%# end -%>
<%#- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> <%#- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
<%#= link_to t("devise_views.shared.links.new_password"), new_password_path(resource_name) %><!-- <br> --> <%#= link_to t("devise_views.shared.links.new_password"), new_password_path(resource_name) %><!-- <br> -->
<%# end -%> <%# end -%>
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> <%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
<%= link_to t("devise_views.shared.links.new_confirmation"), new_confirmation_path(resource_name) %><br> <%= link_to t("devise_views.shared.links.new_confirmation"), new_confirmation_path(resource_name) %><br>
<% end -%> <% end -%>
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
<%= link_to t("devise_views.shared.links.new_unlock"), new_unlock_path(resource_name) %><br> <%= link_to t("devise_views.shared.links.new_unlock"), new_unlock_path(resource_name) %><br>
<% end -%> <% end -%>
<%- if devise_mapping.omniauthable? && devise_mapping.name == 'user' %> <%- if devise_mapping.omniauthable? && devise_mapping.name == "user" %>
<%- resource_class.omniauth_providers.each do |provider| %> <%- resource_class.omniauth_providers.each do |provider| %>
<%= link_to t("devise_views.shared.links.signin_with_provider", provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider) %><br> <%= link_to t("devise_views.shared.links.signin_with_provider", provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider) %><br>
<% end -%> <% end -%>

View File

@@ -1,7 +1,7 @@
<h1 class="text-center"><%= t("devise_views.unlocks.new.title") %></h1> <h1 class="text-center"><%= t("devise_views.unlocks.new.title") %></h1>
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<div class="field"> <div class="field">
<%= f.email_field :email, autofocus: true, <%= f.email_field :email, autofocus: true,

View File

@@ -4,9 +4,9 @@
<div class="small-12 column"> <div class="small-12 column">
<div class="additional-document-link"> <div class="additional-document-link">
<p> <p>
<strong><%= t('proposals.show.title_external_url') %></strong> <strong><%= t("proposals.show.title_external_url") %></strong>
</p> </p>
<%= render partial: 'documents/additional_document', collection: documents, as: :document %> <%= render partial: "documents/additional_document", collection: documents, as: :document %>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -4,11 +4,11 @@
<div id="nested-documents" data-max-documents-allowed="<%= documentable.class.max_documents_allowed%>"> <div id="nested-documents" data-max-documents-allowed="<%= documentable.class.max_documents_allowed%>">
<%= f.fields_for :documents do |documents_builder| %> <%= f.fields_for :documents do |documents_builder| %>
<%= render 'documents/document_fields', f: documents_builder %> <%= render "documents/document_fields", f: documents_builder %>
<% end %> <% end %>
</div> </div>
<%= link_to_add_association t('documents.form.add_new_document'), f, :documents, <%= link_to_add_association t("documents.form.add_new_document"), f, :documents,
partial: "documents/document_fields", partial: "documents/document_fields",
id: "new_document_link", id: "new_document_link",
class: "button hollow #{"hide" if documentable.documents.count >= documentable.class.max_documents_allowed}", class: "button hollow #{"hide" if documentable.documents.count >= documentable.class.max_documents_allowed}",

View File

@@ -1,11 +1,11 @@
<div class="js-follow"> <div class="js-follow">
<span class="followable-content"> <span class="followable-content">
<% if follow.followable.followed_by?(current_user) %> <% if follow.followable.followed_by?(current_user) %>
<%= link_to t('shared.following'), <%= link_to t("shared.following"),
follow_path(follow), follow_path(follow),
method: :delete, remote: true, method: :delete, remote: true,
title: unfollow_text(follow.followable), title: unfollow_text(follow.followable),
class: 'button expanded' %> class: "button expanded" %>
<% else %> <% else %>
<%= link_to follow_text(follow.followable), <%= link_to follow_text(follow.followable),
@@ -13,7 +13,7 @@
followable_type: follow.followable.class.name), followable_type: follow.followable.class.name),
method: :post, remote: true, method: :post, remote: true,
title: follow_text(follow.followable), title: follow_text(follow.followable),
class: 'button hollow expanded' %> class: "button hollow expanded" %>
<% end %> <% end %>
</span> </span>
</div> </div>

View File

@@ -2,7 +2,7 @@
<div> <div>
<%= f.label :image, t("images.form.admin_title") %> <%= f.label :image, t("images.form.admin_title") %>
<%= link_to_add_association t('images.form.add_new_image'), f, :image, <%= link_to_add_association t("images.form.add_new_image"), f, :image,
force_non_association_create: true, force_non_association_create: true,
partial: "images/image_fields", partial: "images/image_fields",
id: "new_image_link", id: "new_image_link",

View File

@@ -5,11 +5,11 @@
<div id="nested-image"> <div id="nested-image">
<%= f.fields_for image_fields do |image_builder| %> <%= f.fields_for image_fields do |image_builder| %>
<%= render 'images/image_fields', f: image_builder, imageable: imageable %> <%= render "images/image_fields", f: image_builder, imageable: imageable %>
<% end %> <% end %>
</div> </div>
<%= link_to_add_association t('images.form.add_new_image'), f, image_fields, <%= link_to_add_association t("images.form.add_new_image"), f, image_fields,
force_non_association_create: true, force_non_association_create: true,
partial: "images/image_fields", partial: "images/image_fields",
id: "new_image_link", id: "new_image_link",

View File

@@ -25,8 +25,8 @@
<tr> <tr>
<td style="padding-bottom: 12px; text-align: center;"> <td style="padding-bottom: 12px; text-align: center;">
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %> <%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
<%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %> <%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
<%= t('mailers.budget_investment_created.share') %> <%= t("mailers.budget_investment_created.share") %>
<% end %> <% end %>
</td> </td>
</tr> </tr>

View File

@@ -13,8 +13,8 @@
<tr> <tr>
<td style="padding-bottom: 12px; text-align: center;"> <td style="padding-bottom: 12px; text-align: center;">
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66 !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %> <%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66 !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
<%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %> <%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
<%= t('mailers.budget_investment_selected.share_button') %> <%= t("mailers.budget_investment_selected.share_button") %>
<% end %> <% end %>
</td> </td>
</tr> </tr>
@@ -28,4 +28,4 @@
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t("mailers.budget_investment_selected.sincerely") %> <%= t("mailers.budget_investment_selected.sincerely") %>
</p> </p>
</td> </td>

View File

@@ -12,8 +12,8 @@
<tr> <tr>
<td style="padding-bottom: 12px; padding-top: 24px; text-align: center;"> <td style="padding-bottom: 12px; padding-top: 24px; text-align: center;">
<%= link_to user_url(@direct_message.sender), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 200px; display: inline-block;", target: "_blank" do %> <%= link_to user_url(@direct_message.sender), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 200px; display: inline-block;", target: "_blank" do %>
<%= image_tag('icon_mailer_reply.png', style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %> <%= image_tag("icon_mailer_reply.png", style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %>
<%= t('mailers.direct_message_for_receiver.reply', <%= t("mailers.direct_message_for_receiver.reply",
sender: @direct_message.sender.name) %> sender: @direct_message.sender.name) %>
<% end %> <% end %>
</td> </td>
@@ -26,8 +26,8 @@
<tr> <tr>
<td style="padding-left: 10px;"> <td style="padding-left: 10px;">
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin: 0; font-style: italic; padding-bottom: 20px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin: 0; font-style: italic; padding-bottom: 20px;">
<%= t('mailers.direct_message_for_receiver.unsubscribe', <%= t("mailers.direct_message_for_receiver.unsubscribe",
account: link_to(t('mailers.direct_message_for_receiver.unsubscribe_account'), account: link_to(t("mailers.direct_message_for_receiver.unsubscribe_account"),
account_url, style: "color: #2895F1; text-decoration: none;")).html_safe %> account_url, style: "color: #2895F1; text-decoration: none;")).html_safe %>
</p> </p>
</td> </td>

View File

@@ -1,7 +1,7 @@
<td style="padding-bottom: 20px; padding-left: 10px;"> <td style="padding-bottom: 20px; padding-left: 10px;">
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; font-size: 20px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; font-size: 20px;">
<%= t('mailers.direct_message_for_sender.title_html', <%= t("mailers.direct_message_for_sender.title_html",
receiver: @direct_message.receiver.name ) %> receiver: @direct_message.receiver.name ) %>
</p> </p>

View File

@@ -6,7 +6,7 @@
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t("mailers.email_verification.instructions_html", <%= t("mailers.email_verification.instructions_html",
verification_link: link_to( verification_link: link_to(
t('mailers.email_verification.click_here_to_verify'), t("mailers.email_verification.click_here_to_verify"),
email_url(email_verification_token: @token))) %> email_url(email_verification_token: @token))) %>
</p> </p>

View File

@@ -4,12 +4,12 @@
<tr> <tr>
<td style="padding-left: 10px;"> <td style="padding-left: 10px;">
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; margin-bottom: 0;"> <h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; margin-bottom: 0;">
<%= t('mailers.proposal_notification_digest.title', <%= t("mailers.proposal_notification_digest.title",
org_name: Setting['org_name']) %> org_name: Setting["org_name"]) %>
</h1> </h1>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.proposal_notification_digest.info', <%= t("mailers.proposal_notification_digest.info",
org_name: Setting['org_name']) %> org_name: Setting["org_name"]) %>
</p> </p>
</td> </td>
</tr> </tr>
@@ -38,13 +38,13 @@
<tr> <tr>
<td style="padding-bottom: 12px;"> <td style="padding-bottom: 12px;">
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %> <%= link_to proposal_url(notification.notifiable.proposal, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
<%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %> <%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
<%= t('mailers.proposal_notification_digest.share') %> <%= t("mailers.proposal_notification_digest.share") %>
<% end %> <% end %>
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "comments"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" do %> <%= link_to proposal_url(notification.notifiable.proposal, anchor: "comments"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" do %>
<%= image_tag('icon_mailer_comment.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %> <%= image_tag("icon_mailer_comment.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %>
<%= t('mailers.proposal_notification_digest.comment') %> <%= t("mailers.proposal_notification_digest.comment") %>
<% end %> <% end %>
</td> </td>
</tr> </tr>
@@ -61,8 +61,8 @@
<tr> <tr>
<td style="padding-left: 10px;"> <td style="padding-left: 10px;">
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin: 0; font-style: italic; padding-bottom: 20px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin: 0; font-style: italic; padding-bottom: 20px;">
<%= t('mailers.proposal_notification_digest.unsubscribe', <%= t("mailers.proposal_notification_digest.unsubscribe",
account: link_to(t('mailers.proposal_notification_digest.unsubscribe_account'), account: link_to(t("mailers.proposal_notification_digest.unsubscribe_account"),
account_url, style: "color: #2895F1; text-decoration: none;")).html_safe %> account_url, style: "color: #2895F1; text-decoration: none;")).html_safe %>
</p> </p>
</td> </td>

View File

@@ -1,23 +1,23 @@
<td style="padding-bottom: 20px; padding-left: 10px;"> <td style="padding-bottom: 20px; padding-left: 10px;">
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;"> <h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
<%= t('mailers.user_invite.title', <%= t("mailers.user_invite.title",
org: Setting['org_name']) %> org: Setting["org_name"]) %>
</h1> </h1>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.user_invite.text', <%= t("mailers.user_invite.text",
org: Setting['org_name']) %> org: Setting["org_name"]) %>
</p> </p>
<p style="text-align: center;"> <p style="text-align: center;">
<%= link_to t('mailers.user_invite.button'), new_user_registration_url, style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #004A83; border-radius: 6px; color: #fff !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" %> <%= link_to t("mailers.user_invite.button"), new_user_registration_url, style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #004A83; border-radius: 6px; color: #fff !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" %>
</p> </p>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.user_invite.ignore') %> <%= t("mailers.user_invite.ignore") %>
</p> </p>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.user_invite.thanks') %> <%= t("mailers.user_invite.thanks") %>
</p> </p>
</td> </td>

View File

@@ -6,23 +6,23 @@
<%= form.fields_for :map_location, map_location do |m_l_fields| %> <%= form.fields_for :map_location, map_location do |m_l_fields| %>
<%= m_l_fields.hidden_field :id, <%= m_l_fields.hidden_field :id,
value: map_location.id, value: map_location.id,
id: map_location_input_id(parent_class, 'id') %> id: map_location_input_id(parent_class, "id") %>
<%= m_l_fields.hidden_field :latitude, <%= m_l_fields.hidden_field :latitude,
value: map_location.latitude, value: map_location.latitude,
id: map_location_input_id(parent_class, 'latitude') %> id: map_location_input_id(parent_class, "latitude") %>
<%= m_l_fields.hidden_field :longitude, <%= m_l_fields.hidden_field :longitude,
value: map_location.longitude, value: map_location.longitude,
id: map_location_input_id(parent_class, 'longitude') %> id: map_location_input_id(parent_class, "longitude") %>
<%= m_l_fields.hidden_field :zoom, <%= m_l_fields.hidden_field :zoom,
value: map_location.zoom, value: map_location.zoom,
id: map_location_input_id(parent_class, 'zoom') %> id: map_location_input_id(parent_class, "zoom") %>
<div> <div>
<%= form.label :skip_map do %> <%= form.label :skip_map do %>
<%= form.check_box :skip_map, <%= form.check_box :skip_map,
title: t("#{i18n_namespace}.form.map_skip_checkbox"), title: t("#{i18n_namespace}.form.map_skip_checkbox"),
label: false, label: false,
class: 'js-toggle-map' %> class: "js-toggle-map" %>
<span class="checkbox"> <span class="checkbox">
<%= t("#{i18n_namespace}.form.map_skip_checkbox") %> <%= t("#{i18n_namespace}.form.map_skip_checkbox") %>
</span> </span>

View File

@@ -4,7 +4,7 @@
timestamp: notification.timestamp, timestamp: notification.timestamp,
title: notification.notifiable_title, title: notification.notifiable_title,
body: notification.notifiable.try(:body) } %> body: notification.notifiable.try(:body) } %>
<% link_text = render partial: '/notifications/notification_body', locals: locals %> <% link_text = render partial: "/notifications/notification_body", locals: locals %>
<%= link_to_if notification.link.present?, link_text, notification.link %> <%= link_to_if notification.link.present?, link_text, notification.link %>
<% else %> <% else %>
<p> <p>

View File

@@ -25,7 +25,7 @@
<% else %> <% else %>
<ul class="no-bullet clear notifications-list"> <ul class="no-bullet clear notifications-list">
<% @notifications.each do |notification| %> <% @notifications.each do |notification| %>
<%= render partial: '/notifications/notification', locals: {notification: notification} %> <%= render partial: "/notifications/notification", locals: {notification: notification} %>
<% end %> <% end %>
</ul> </ul>
<% end %> <% end %>

View File

@@ -2,7 +2,7 @@
<h2><%= t("devise_views.organizations.registrations.new.title") %></h2> <h2><%= t("devise_views.organizations.registrations.new.title") %></h2>
<%= form_for(resource, as: :user, url: organization_registration_path) do |f| %> <%= form_for(resource, as: :user, url: organization_registration_path) do |f| %>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">
@@ -29,10 +29,10 @@
placeholder: t("devise_views.organizations.registrations.new.password_confirmation_label") %> placeholder: t("devise_views.organizations.registrations.new.password_confirmation_label") %>
<%= f.label :terms_of_service do %> <%= f.label :terms_of_service do %>
<%= f.check_box :terms_of_service, title: t('devise_views.users.registrations.new.terms_title'), label: false %> <%= f.check_box :terms_of_service, title: t("devise_views.users.registrations.new.terms_title"), label: false %>
<span class="checkbox"> <span class="checkbox">
<%= t("devise_views.users.registrations.new.terms", <%= t("devise_views.users.registrations.new.terms",
terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", title: t('shared.target_blank_html'), target: "_blank")).html_safe %></span> terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", title: t("shared.target_blank_html"), target: "_blank")).html_safe %></span>
<% end %> <% end %>
<div class="small-12 medium-6 small-centered"> <div class="small-12 medium-6 small-centered">

View File

@@ -14,7 +14,7 @@
<% if @custom_page.print_content_flag %> <% if @custom_page.print_content_flag %>
<div class="small-12 medium-3 column"> <div class="small-12 medium-3 column">
<%= render '/shared/print' %> <%= render "/shared/print" %>
</div> </div>
<% end %> <% end %>

View File

@@ -5,14 +5,14 @@
</h3> </h3>
<p> <p>
<%= t("pages.help.debates.description", <%= t("pages.help.debates.description",
org: setting['org_name'], org: setting["org_name"],
link: link_to(t("pages.help.debates.link"), link: link_to(t("pages.help.debates.link"),
debates_path)).html_safe %> debates_path)).html_safe %>
</p> </p>
<ul class="features"> <ul class="features">
<li> <li>
<%= t("pages.help.debates.feature_html", <%= t("pages.help.debates.feature_html",
link: link_to(t("pages.help.debates.feature_link", org: setting['org_name']), link: link_to(t("pages.help.debates.feature_link", org: setting["org_name"]),
new_user_registration_path)).html_safe %> new_user_registration_path)).html_safe %>
</li> </li>
</ul> </ul>

View File

@@ -1,7 +1,7 @@
<h3 id="other" data-magellan-target="other"><%= t("pages.help.other.title") %></h3> <h3 id="other" data-magellan-target="other"><%= t("pages.help.other.title") %></h3>
<ul class="features"> <ul class="features">
<li><%= link_to t("pages.help.other.how_to_use", org_name: setting['org_name']), how_to_use_path %></li> <li><%= link_to t("pages.help.other.how_to_use", org_name: setting["org_name"]), how_to_use_path %></li>
<% SiteCustomization::Page.with_more_info_flag.with_same_locale.each do |custom_page| %> <% SiteCustomization::Page.with_more_info_flag.with_same_locale.each do |custom_page| %>
<li><%= link_to custom_page.title, page_path(custom_page.slug) %></li> <li><%= link_to custom_page.title, page_path(custom_page.slug) %></li>

View File

@@ -8,7 +8,7 @@
<ul class="features"> <ul class="features">
<li> <li>
<%= t("pages.help.polls.feature_1", <%= t("pages.help.polls.feature_1",
link: link_to(t("pages.help.polls.feature_1_link", org_name: setting['org_name']), link: link_to(t("pages.help.polls.feature_1_link", org_name: setting["org_name"]),
new_user_registration_path)).html_safe %> new_user_registration_path)).html_safe %>
</li> </li>
</ul> </ul>

View File

@@ -8,8 +8,8 @@
<%= back_link_to help_path %> <%= back_link_to help_path %>
<% end %> <% end %>
<h1><%= t('pages.help.titles.how_to_use') %></h1> <h1><%= t("pages.help.titles.how_to_use") %></h1>
<%= markdown t('pages.help.how_to_use.text') %> <%= markdown t("pages.help.how_to_use.text") %>
</div> </div>
</div> </div>

View File

@@ -1,4 +1,4 @@
<% provide :title do %><%= t("pages.titles.help", org: setting['org_name']) %><% end %> <% provide :title do %><%= t("pages.titles.help", org: setting["org_name"]) %><% end %>
<% content_for :canonical do %> <% content_for :canonical do %>
<%= render "shared/canonical", href: help_url %> <%= render "shared/canonical", href: help_url %>
<% end %> <% end %>
@@ -10,8 +10,8 @@
<div class="jumbo light"> <div class="jumbo light">
<div class="row"> <div class="row">
<div class="small-12 medium-9 column"> <div class="small-12 medium-9 column">
<h2><%= t("pages.help.title", org: setting['org_name']) %></h2> <h2><%= t("pages.help.title", org: setting["org_name"]) %></h2>
<p><%= t("pages.help.guide", org: setting['org_name']) %></p> <p><%= t("pages.help.guide", org: setting["org_name"]) %></p>
</div> </div>
</div> </div>

View File

@@ -7,16 +7,16 @@
</div> </div>
<% elsif current_user.unverified? %> <% elsif current_user.unverified? %>
<div class="callout warning"> <div class="callout warning">
<%= t('polls.show.cant_answer_verify_html', <%= t("polls.show.cant_answer_verify_html",
verify_link: link_to(t('polls.show.verify_link'), verification_path)) %> verify_link: link_to(t("polls.show.verify_link"), verification_path)) %>
</div> </div>
<% elsif @poll.expired? %> <% elsif @poll.expired? %>
<div class="callout alert"> <div class="callout alert">
<%= t('polls.show.cant_answer_expired') %> <%= t("polls.show.cant_answer_expired") %>
</div> </div>
<% else %> <% else %>
<div class="callout warning"> <div class="callout warning">
<%= t('polls.show.cant_answer_wrong_geozone') %> <%= t("polls.show.cant_answer_wrong_geozone") %>
</div> </div>
<% end %> <% end %>
<% end %> <% end %>

View File

@@ -1,10 +1,10 @@
<% cache [locale_and_user_status, @current_order, commentable_cache_key(@poll), @comment_tree.comments, @comment_tree.comment_authors, @poll.comments_count, @comment_flags] do %> <% cache [locale_and_user_status, @current_order, commentable_cache_key(@poll), @comment_tree.comments, @comment_tree.comment_authors, @poll.comments_count, @comment_flags] do %>
<div class="row comments"> <div class="row comments">
<div id="comments" class="small-12 column"> <div id="comments" class="small-12 column">
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> <%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
<% if user_signed_in? %> <% if user_signed_in? %>
<%= render 'comments/form', {commentable: @poll, parent_id: nil, toggeable: false} %> <%= render "comments/form", {commentable: @poll, parent_id: nil, toggeable: false} %>
<% else %> <% else %>
<br> <br>
@@ -16,7 +16,7 @@
<% end %> <% end %>
<% @comment_tree.root_comments.each do |comment| %> <% @comment_tree.root_comments.each do |comment| %>
<%= render 'comments/comment', comment: comment %> <%= render "comments/comment", comment: comment %>
<% end %> <% end %>
<%= paginate @comment_tree.root_comments %> <%= paginate @comment_tree.root_comments %>
</div> </div>

View File

@@ -17,7 +17,7 @@
</div> </div>
<aside class="small-12 medium-3 column margin-top"> <aside class="small-12 medium-3 column margin-top">
<%= render partial: 'shared/social_share', locals: { <%= render partial: "shared/social_share", locals: {
share_title: t("shared.share"), share_title: t("shared.share"),
title: @poll.name, title: @poll.name,
url: poll_url(@poll), url: poll_url(@poll),

View File

@@ -18,7 +18,7 @@
</div> </div>
<% end %> <% end %>
<%= render 'shared/filter_subnav', i18n_namespace: "polls.index" %> <%= render "shared/filter_subnav", i18n_namespace: "polls.index" %>
<% if @polls.any? %> <% if @polls.any? %>
<% polls_by_geozone_restriction = @polls.group_by(&:geozone_restricted) %> <% polls_by_geozone_restriction = @polls.group_by(&:geozone_restricted) %>
@@ -27,14 +27,14 @@
<h3 class="section-title-divider"> <h3 class="section-title-divider">
<span><%= t("polls.index.no_geozone_restricted") %></span> <span><%= t("polls.index.no_geozone_restricted") %></span>
</h3> </h3>
<%= render partial: 'poll_group', locals: {poll_group: polls_by_geozone_restriction[false]} %> <%= render partial: "poll_group", locals: {poll_group: polls_by_geozone_restriction[false]} %>
<% end %> <% end %>
<% if polls_by_geozone_restriction[true].present? %> <% if polls_by_geozone_restriction[true].present? %>
<h3 class="section-title-divider"> <h3 class="section-title-divider">
<span><%= t("polls.index.geozone_restricted") %></span> <span><%= t("polls.index.geozone_restricted") %></span>
</h3> </h3>
<%= render partial: 'poll_group', locals: {poll_group: polls_by_geozone_restriction[true]} %> <%= render partial: "poll_group", locals: {poll_group: polls_by_geozone_restriction[true]} %>
<% end %> <% end %>
<%= paginate @polls %> <%= paginate @polls %>

View File

@@ -4,6 +4,6 @@
</h3> </h3>
<div id="<%= dom_id(question) %>_answers" class="padding"> <div id="<%= dom_id(question) %>_answers" class="padding">
<%= render 'polls/questions/answers', question: question, token: token %> <%= render "polls/questions/answers", question: question, token: token %>
</div> </div>
</div> </div>

View File

@@ -23,12 +23,12 @@
<% end %> <% end %>
<% @questions.each do |question| %> <% @questions.each do |question| %>
<%= render 'polls/questions/question', question: question, token: @token %> <%= render "polls/questions/question", question: question, token: @token %>
<% end %> <% end %>
<% if poll_voter_token(@poll, current_user).empty? %> <% if poll_voter_token(@poll, current_user).empty? %>
<div class="callout token-message js-token-message" style="display: none"> <div class="callout token-message js-token-message" style="display: none">
<%= t('poll_questions.show.voted_token') %> <%= t("poll_questions.show.voted_token") %>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@@ -2,14 +2,14 @@
<label><%= t("related_content.label") %></label> <label><%= t("related_content.label") %></label>
<p class="help-text" id="related_content_help_text"> <p class="help-text" id="related_content_help_text">
<%= t("related_content.help", models: t('related_content.content_title').values.to_sentence, org: setting['org_name']) %> <%= t("related_content.help", models: t("related_content.content_title").values.to_sentence, org: setting["org_name"]) %>
</p> </p>
<div class="input-group"> <div class="input-group">
<div class="input-group-field"> <div class="input-group-field">
<%= text_field_tag :url, '', <%= text_field_tag :url, "",
"aria-describedby": "related_content_help_text", "aria-describedby": "related_content_help_text",
placeholder: t("related_content.placeholder", url: setting['url']) %> placeholder: t("related_content.placeholder", url: setting["url"]) %>
<%= hidden_field_tag :relationable_klass, relationable.class.name %> <%= hidden_field_tag :relationable_klass, relationable.class.name %>
<%= hidden_field_tag :relationable_id, relationable.id %> <%= hidden_field_tag :relationable_id, relationable.id %>

View File

@@ -1 +1 @@
$("#<%= dom_id(@related) %>.js-score-actions").html(''); $("#<%= dom_id(@related) %>.js-score-actions").html("");

View File

@@ -13,10 +13,10 @@
<% end %> <% end %>
</div> </div>
<%= render 'relationable/form', relationable: relationable %> <%= render "relationable/form", relationable: relationable %>
<% if @related_contents.present? %> <% if @related_contents.present? %>
<%= render 'relationable/related_list', relationable: relationable %> <%= render "relationable/related_list", relationable: relationable %>
<% end %> <% end %>
</div> </div>

View File

@@ -4,7 +4,7 @@
<% related_content = related.find_related_content(relationable) %> <% related_content = related.find_related_content(relationable) %>
<% if current_user && related_content.author != current_user && !related_content.scored_by_user?(current_user)%> <% if current_user && related_content.author != current_user && !related_content.scored_by_user?(current_user)%>
<span id="<%= dom_id(related.find_related_content(relationable)) %>" class="js-score-actions score-actions"> <span id="<%= dom_id(related.find_related_content(relationable)) %>" class="js-score-actions score-actions">
<%= render 'relationable/score', related: related_content %> <%= render "relationable/score", related: related_content %>
</span> </span>
<% end %> <% end %>
<span class="related-content-title"><%= t("related_content.content_title.#{related.model_name.singular}") %></span><br> <span class="related-content-title"><%= t("related_content.content_title.#{related.model_name.singular}") %></span><br>

View File

@@ -1,5 +1,5 @@
<%= form_for(@spending_proposal, url: form_url) do |f| %> <%= form_for(@spending_proposal, url: form_url) do |f| %>
<%= render 'shared/errors', resource: @spending_proposal %> <%= render "shared/errors", resource: @spending_proposal %>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">
@@ -32,7 +32,7 @@
<div class="small-12 column"> <div class="small-12 column">
<% if @spending_proposal.new_record? %> <% if @spending_proposal.new_record? %>
<%= f.label :terms_of_service do %> <%= 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"> <span class="checkbox">
<%= t("form.accept_terms", <%= t("form.accept_terms",
policy: link_to(t("form.policy"), "/privacy", target: "blank"), policy: link_to(t("form.policy"), "/privacy", target: "blank"),

View File

@@ -2,8 +2,8 @@
<h2 class="sidebar-title"><%= t("spending_proposals.index.sidebar.geozones") %></h2> <h2 class="sidebar-title"><%= t("spending_proposals.index.sidebar.geozones") %></h2>
<br> <br>
<div class="geozone"> <div class="geozone">
<%= link_to t('geozones.all'), spending_proposals_path(geozone: nil) %> <%= link_to t("geozones.all"), spending_proposals_path(geozone: nil) %>
<%= link_to t('geozones.none'), spending_proposals_path(geozone: 'all') %> <%= link_to t("geozones.none"), spending_proposals_path(geozone: "all") %>
<% Geozone.all.each do |geozone| %> <% Geozone.all.each do |geozone| %>
<%= link_to geozone.name, spending_proposals_path(geozone: geozone.id) %> <%= link_to geozone.name, spending_proposals_path(geozone: geozone.id) %>
<% end %> <% end %>
@@ -12,4 +12,4 @@
<div class="sidebar-divider"></div> <div class="sidebar-divider"></div>
<h2 class="sidebar-title"><%= t("spending_proposals.index.sidebar.feasibility") %></h2> <h2 class="sidebar-title"><%= t("spending_proposals.index.sidebar.feasibility") %></h2>
<br> <br>
<%= link_to t('spending_proposals.index.sidebar.unfeasible'), spending_proposals_path(unfeasible: '1') %> <%= link_to t("spending_proposals.index.sidebar.unfeasible"), spending_proposals_path(unfeasible: "1") %>

View File

@@ -5,7 +5,7 @@
<div class="small-12 medium-9 column"> <div class="small-12 medium-9 column">
<div class="investment-project-content"> <div class="investment-project-content">
<% cache [locale_and_user_status(spending_proposal), 'index', spending_proposal, spending_proposal.author] do %> <% cache [locale_and_user_status(spending_proposal), "index", spending_proposal, spending_proposal.author] do %>
<span class="label-investment-project float-left"><%= t("spending_proposals.spending_proposal.spending_proposal") %></span> <span class="label-investment-project float-left"><%= t("spending_proposals.spending_proposal.spending_proposal") %></span>
<span class="icon-budget"></span> <span class="icon-budget"></span>
<h3><%= link_to spending_proposal.title, namespaced_spending_proposal_path(spending_proposal) %></h3> <h3><%= link_to spending_proposal.title, namespaced_spending_proposal_path(spending_proposal) %></h3>
@@ -50,8 +50,8 @@
</div> </div>
<div id="<%= dom_id(spending_proposal) %>_votes" class="small-12 medium-3 column supports-container"> <div id="<%= dom_id(spending_proposal) %>_votes" class="small-12 medium-3 column supports-container">
<%= render 'votes', <%= render "votes",
{ spending_proposal: spending_proposal, vote_url: vote_spending_proposal_path(spending_proposal, value: 'yes') } %> { spending_proposal: spending_proposal, vote_url: vote_spending_proposal_path(spending_proposal, value: "yes") } %>
</div> </div>
</div> </div>

View File

@@ -16,7 +16,7 @@
<% elsif voting_allowed %> <% elsif voting_allowed %>
<%= link_to vote_url, <%= link_to vote_url,
class: "button button-support small expanded", class: "button button-support small expanded",
title: t('spending_proposals.spending_proposal.support_title'), method: "post", remote: true, title: t("spending_proposals.spending_proposal.support_title"), method: "post", remote: true,
"aria-hidden" => css_for_aria_hidden(reason) do %> "aria-hidden" => css_for_aria_hidden(reason) do %>
<%= t("spending_proposals.spending_proposal.support") %> <%= t("spending_proposals.spending_proposal.support") %>
<% end %> <% end %>
@@ -24,7 +24,7 @@
</div> </div>
<% if reason.present? && !user_voted_for %> <% if reason.present? && !user_voted_for %>
<div class="participation-not-allowed" style='display:none' aria-hidden="false"> <div class="participation-not-allowed" style="display:none" aria-hidden="false">
<p> <p>
<%= t("votes.spending_proposals.#{reason}", <%= t("votes.spending_proposals.#{reason}",
verify_account: link_to(t("votes.verify_account"), verification_path), verify_account: link_to(t("votes.verify_account"), verification_path),
@@ -35,8 +35,8 @@
</div> </div>
<% end %> <% end %>
<% if user_voted_for && setting['twitter_handle'] %> <% if user_voted_for && setting["twitter_handle"] %>
<%= render partial: 'shared/social_share', locals: { <%= render partial: "shared/social_share", locals: {
title: spending_proposal.title, title: spending_proposal.title,
url: spending_proposal_url(spending_proposal), url: spending_proposal_url(spending_proposal),
description: spending_proposal.title description: spending_proposal.title

View File

@@ -1,4 +1,4 @@
<% provide :title do %><%= t('spending_proposals.index.title') %><% end %> <% provide :title do %><%= t("spending_proposals.index.title") %><% end %>
<% content_for :header_addon do %> <% content_for :header_addon do %>
<%= render "shared/search_form", <%= render "shared/search_form",
search_path: spending_proposals_path(page: 1), search_path: spending_proposals_path(page: 1),
@@ -23,15 +23,15 @@
</div> </div>
<div class="show-for-small-only"> <div class="show-for-small-only">
<%= link_to t("spending_proposals.index.start_spending_proposal"), new_spending_proposal_path, class: 'button expanded' %> <%= link_to t("spending_proposals.index.start_spending_proposal"), new_spending_proposal_path, class: "button expanded" %>
</div> </div>
<%= render partial: 'spending_proposals/spending_proposal', collection: @spending_proposals %> <%= render partial: "spending_proposals/spending_proposal", collection: @spending_proposals %>
<%= paginate @spending_proposals %> <%= paginate @spending_proposals %>
</div> </div>
<div class="small-12 medium-3 column"> <div class="small-12 medium-3 column">
<aside id="sidebar" class="margin-bottom"> <aside id="sidebar" class="margin-bottom">
<%= render 'sidebar' %> <%= render "sidebar" %>
</aside> </aside>
</div> </div>

View File

@@ -5,7 +5,7 @@
<h1><%= t("spending_proposals.new.start_new") %></h1> <h1><%= t("spending_proposals.new.start_new") %></h1>
<div data-alert class="callout primary"> <div data-alert class="callout primary">
<%= link_to "/spending_proposals_info", title: t('shared.target_blank_html'), target: "_blank" do %> <%= link_to "/spending_proposals_info", title: t("shared.target_blank_html"), target: "_blank" do %>
<%= t("spending_proposals.new.more_info")%> <%= t("spending_proposals.new.more_info")%>
<% end %> <% end %>
</div> </div>
@@ -22,4 +22,4 @@
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -7,7 +7,7 @@
<h1><%= @spending_proposal.title %></h1> <h1><%= @spending_proposal.title %></h1>
<div class="investment-project-info"> <div class="investment-project-info">
<%= render '/shared/author_info', resource: @spending_proposal %> <%= render "/shared/author_info", resource: @spending_proposal %>
<span class="bullet">&nbsp;&bull;&nbsp;</span> <span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l @spending_proposal.created_at.to_date %> <%= l @spending_proposal.created_at.to_date %>
@@ -36,11 +36,11 @@
<h3><%= t("votes.supports") %></h3> <h3><%= t("votes.supports") %></h3>
<div class="text-center"> <div class="text-center">
<div id="<%= dom_id(@spending_proposal) %>_votes"> <div id="<%= dom_id(@spending_proposal) %>_votes">
<%= render 'votes', <%= render "votes",
{ spending_proposal: @spending_proposal, vote_url: vote_spending_proposal_path(@spending_proposal, value: 'yes') } %> { spending_proposal: @spending_proposal, vote_url: vote_spending_proposal_path(@spending_proposal, value: "yes") } %>
</div> </div>
</div> </div>
<%= render partial: 'shared/social_share', locals: { <%= render partial: "shared/social_share", locals: {
share_title: t("spending_proposals.show.share"), share_title: t("spending_proposals.show.share"),
title: @spending_proposal.title, title: @spending_proposal.title,
url: spending_proposal_url(@spending_proposal), url: spending_proposal_url(@spending_proposal),

View File

@@ -1,12 +1,12 @@
{ {
'<%= t('stats.index.visits') %>' : '<%= number_with_delimiter(@visits) %>', "<%= t('stats.index.visits') %>" : "<%= number_with_delimiter(@visits) %>",
'<%= t('stats.index.debates') %>' : <%= number_with_delimiter(@debates) %>', "<%= t('stats.index.debates') %>" : <%= number_with_delimiter(@debates) %>",
'<%= t('stats.index.proposals') %>' : '<%= number_with_delimiter(@proposals) %>', "<%= t('stats.index.proposals') %>" : "<%= number_with_delimiter(@proposals) %>",
'<%= t('stats.index.comments') %>' : '<%= number_with_delimiter(@comments) %>', "<%= t('stats.index.comments') %>" : "<%= number_with_delimiter(@comments) %>",
'<%= t('stats.index.proposal_votes') %>' : '<%= number_with_delimiter(@proposal_votes) %>', "<%= t('stats.index.proposal_votes') %>" : "<%= number_with_delimiter(@proposal_votes) %>",
'<%= t('stats.index.debate_votes') %>' : '<%= number_with_delimiter(@debate_votes) %>', "<%= t('stats.index.debate_votes') %>" : "<%= number_with_delimiter(@debate_votes) %>",
'<%= t('stats.index.comment_votes') %>' : '<%= number_with_delimiter(@comment_votes) %>', "<%= t('stats.index.comment_votes') %>" : "<%= number_with_delimiter(@comment_votes) %>",
'<%= t('stats.index.votes') %>' : '<%= number_with_delimiter(@votes) %>', "<%= t('stats.index.votes') %>" : "<%= number_with_delimiter(@votes) %>",
'<%= t('stats.index.verified_users') %>' : '<%= number_with_delimiter(@verified_users) %>', "<%= t('stats.index.verified_users') %>" : "<%= number_with_delimiter(@verified_users) %>",
'<%= t('stats.index.unverified_users') %>' : '<%= number_with_delimiter(@unverified_users) %>' "<%= t('stats.index.unverified_users') %>" : "<%= number_with_delimiter(@unverified_users) %>"
} }

View File

@@ -2,16 +2,16 @@
<div class="row comments"> <div class="row comments">
<div id="comments" class="small-12 column"> <div id="comments" class="small-12 column">
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> <%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
<% @comment_tree.root_comments.each do |comment| %> <% @comment_tree.root_comments.each do |comment| %>
<%= render 'comments/comment', comment: comment %> <%= render "comments/comment", comment: comment %>
<% end %> <% end %>
<%= paginate @comment_tree.root_comments %> <%= paginate @comment_tree.root_comments %>
<% if user_signed_in? %> <% if user_signed_in? %>
<%= render 'comments/form', {commentable: @topic, parent_id: nil, toggeable: false} %> <%= render "comments/form", {commentable: @topic, parent_id: nil, toggeable: false} %>
<% else %> <% else %>
<div data-alert class="callout primary"> <div data-alert class="callout primary">

View File

@@ -1,6 +1,6 @@
<%= form_for([@community, @topic]) do |f| %> <%= form_for([@community, @topic]) do |f| %>
<%= render 'shared/errors', resource: @topic %> <%= render "shared/errors", resource: @topic %>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">

View File

@@ -1,13 +1,13 @@
<% if topics.any? %> <% if topics.any? %>
<div class="row column"> <div class="row column">
<div class="order"> <div class="order">
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> <%= render "shared/wide_order_selector", i18n_namespace: "comments" %>
</div> </div>
</div> </div>
<% else %> <% else %>
<%= render 'topics/informative_text', topics: topics %> <%= render "topics/informative_text", topics: topics %>
<% end %> <% end %>
<% topics.each do |topic| %> <% topics.each do |topic| %>
<%= render 'topics/topic', topic: topic %> <%= render "topics/topic", topic: topic %>
<% end %> <% end %>

View File

@@ -3,7 +3,7 @@
<div class="small-12 medium-9 column"> <div class="small-12 medium-9 column">
<%= back_link_to community_path(@community) %> <%= back_link_to community_path(@community) %>
<h1><%= t("community.topic.create") %></h1> <h1><%= t("community.topic.create") %></h1>
<%= render 'form' %> <%= render "form" %>
</div> </div>
<div class="small-12 medium-3 column"> <div class="small-12 medium-3 column">

View File

@@ -9,7 +9,7 @@
<h1><%= @topic.title %></h1> <h1><%= @topic.title %></h1>
<div class="topic-info margin-bottom"> <div class="topic-info margin-bottom">
<%= render '/shared/author_info', resource: @topic %> <%= render "/shared/author_info", resource: @topic %>
<span class="bullet">&nbsp;&bull;&nbsp;</span> <span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l(@topic.created_at.to_date) %> <%= l(@topic.created_at.to_date) %>
@@ -28,11 +28,11 @@
<h2><%= t("community.show.author") %></h2> <h2><%= t("community.show.author") %></h2>
<%= link_to t("community.show.topic.edit"), <%= link_to t("community.show.topic.edit"),
edit_community_topic_path(@community.id, @topic), edit_community_topic_path(@community.id, @topic),
class: 'button hollow expanded' %> class: "button hollow expanded" %>
<%= link_to t("community.show.topic.destroy"), <%= link_to t("community.show.topic.destroy"),
community_topic_path(@community.id, @topic), method: :delete, community_topic_path(@community.id, @topic), method: :delete,
class: 'button hollow expanded alert' %> class: "button hollow expanded alert" %>
</aside> </aside>
<% end %> <% end %>
</div> </div>

View File

@@ -4,7 +4,7 @@
</td> </td>
<td> <td>
<% if can? :destroy, budget_investment %> <% if can? :destroy, budget_investment %>
<%= link_to t('shared.delete'), budget_investment_path(budget_investment.budget, budget_investment), <%= link_to t("shared.delete"), budget_investment_path(budget_investment.budget, budget_investment),
method: :delete, class: "button hollow alert expanded", method: :delete, class: "button hollow alert expanded",
data: {confirm: "#{t('users.show.delete_alert')}"} %> data: {confirm: "#{t('users.show.delete_alert')}"} %>
<% end %> <% end %>

View File

@@ -22,6 +22,6 @@
</div> </div>
<div class="small-12 medium-4 column interests" data-equalizer-watch> <div class="small-12 medium-4 column interests" data-equalizer-watch>
<%= render 'interests', user: @user if valid_interests_access? %> <%= render "interests", user: @user if valid_interests_access? %>
</div> </div>
</div> </div>

View File

@@ -1,6 +1,6 @@
<tr id="proposal_<%= proposal.id %>"> <tr id="proposal_<%= proposal.id %>">
<td class="small-9"> <td class="small-9">
<strong><%= link_to proposal.title, proposal, proposal.retired? ? { class: 'retired' } : {} %></strong> <strong><%= link_to proposal.title, proposal, proposal.retired? ? { class: "retired" } : {} %></strong>
<br> <br>
<%= proposal.summary %> <%= proposal.summary %>
</td> </td>
@@ -8,7 +8,7 @@
<% if proposal.retired? %> <% if proposal.retired? %>
<td class="text-center" colspan="2"> <td class="text-center" colspan="2">
<span class="label alert"><%= t('users.proposals.retired') %></span> <span class="label alert"><%= t("users.proposals.retired") %></span>
</td> </td>
<% elsif author?(proposal) %> <% elsif author?(proposal) %>
@@ -16,23 +16,23 @@
<td> <td>
<%= link_to t("users.proposals.send_notification"), <%= link_to t("users.proposals.send_notification"),
new_proposal_notification_path(proposal_id: proposal.id), new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow expanded' %> class: "button hollow expanded" %>
</td> </td>
<td> <td>
<% if proposal.retired? %> <% if proposal.retired? %>
<span class="label alert"><%= t('users.proposals.retired') %></span> <span class="label alert"><%= t("users.proposals.retired") %></span>
<% else %> <% else %>
<%= link_to t('users.proposals.retire'), <%= link_to t("users.proposals.retire"),
retire_form_proposal_path(proposal), retire_form_proposal_path(proposal),
class: 'button hollow alert expanded' %> class: "button hollow alert expanded" %>
<% end %> <% end %>
</td> </td>
<% else %> <% else %>
<td class="text-center" colspan="2"> <td class="text-center" colspan="2">
<%= link_to t('users.proposals.see'), proposal, class: 'button hollow' %> <%= link_to t("users.proposals.see"), proposal, class: "button hollow" %>
</td> </td>
<% end %> <% end %>

View File

@@ -1,6 +1,6 @@
<li id="proposal_<%= proposal.id %>"> <li id="proposal_<%= proposal.id %>">
<%= link_to proposal.title, proposal, proposal.retired? ? { class: 'retired' } : {} %> <%= link_to proposal.title, proposal, proposal.retired? ? { class: "retired" } : {} %>
<% if proposal.retired? %> <% if proposal.retired? %>
<span class="label alert"><%= t('users.proposals.retired') %></span> <span class="label alert"><%= t("users.proposals.retired") %></span>
<% end %> <% end %>
</li> </li>

View File

@@ -1,9 +1,9 @@
<h2><%= t('omniauth.finish_signup.title') %></h2> <h2><%= t("omniauth.finish_signup.title") %></h2>
<%= form_for current_user, as: :user, url: do_finish_signup_path, html: { role: 'form'} do |f| %> <%= form_for current_user, as: :user, url: do_finish_signup_path, html: { role: "form"} do |f| %>
<%= render 'shared/errors', resource: current_user %> <%= render "shared/errors", resource: current_user %>
<div class='callout primary'> <div class="callout primary">
<%= t("omniauth.finish_signup.username_warning") %> <%= t("omniauth.finish_signup.username_warning") %>
</div> </div>
@@ -19,8 +19,8 @@
<%= f.hidden_field :email %> <%= f.hidden_field :email %>
<% end %> <% end %>
<%= f.submit t("devise_views.users.registrations.new.submit"), class: 'button expanded' %> <%= f.submit t("devise_views.users.registrations.new.submit"), class: "button expanded" %>
<div class="text-center"> <div class="text-center">
<%= link_to t("devise_views.users.registrations.new.cancel"), destroy_user_session_path, class: 'delete', method: :delete %> <%= link_to t("devise_views.users.registrations.new.cancel"), destroy_user_session_path, class: "delete", method: :delete %>
</div> </div>
<% end %> <% end %>

View File

@@ -1,10 +1,10 @@
<% provide :title do %><%= t("devise_views.users.registrations.new.title") %><% end %> <% provide :title do %><%= t("devise_views.users.registrations.new.title") %><% end %>
<h2><%= t("devise_views.users.registrations.new.title") %></h2> <h2><%= t("devise_views.users.registrations.new.title") %></h2>
<%= render 'devise/omniauth_form' %> <%= render "devise/omniauth_form" %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= render 'shared/errors', resource: resource %> <%= render "shared/errors", resource: resource %>
<p> <p>
<%= t("devise_views.users.registrations.new.organization_signup", <%= t("devise_views.users.registrations.new.organization_signup",
@@ -41,11 +41,11 @@
<% end %> <% end %>
<%= f.label :terms_of_service do %> <%= f.label :terms_of_service do %>
<%= f.check_box :terms_of_service, title: t('devise_views.users.registrations.new.terms_title'), label: false %> <%= f.check_box :terms_of_service, title: t("devise_views.users.registrations.new.terms_title"), label: false %>
<span class="checkbox"> <span class="checkbox">
<%= t("devise_views.users.registrations.new.terms", <%= t("devise_views.users.registrations.new.terms",
terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions",
title: t('shared.target_blank_html'), title: t("shared.target_blank_html"),
target: "_blank")).html_safe %> target: "_blank")).html_safe %>
</span> </span>
<% end %> <% end %>

View File

@@ -49,7 +49,7 @@
<%= render "activity_page" %> <%= render "activity_page" %>
<% else %> <% else %>
<div class="callout warning margin"> <div class="callout warning margin">
<%= t('users.show.private_activity') %> <%= t("users.show.private_activity") %>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@@ -1,6 +1,6 @@
<h2><%= t("valuation.budget_investments.valuation_comments") %></h2> <h2><%= t("valuation.budget_investments.valuation_comments") %></h2>
<% unless @comment_tree.nil? %> <% unless @comment_tree.nil? %>
<%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, <%= render partial: "/comments/comment_tree", locals: { comment_tree: @comment_tree,
comment_flags: @comment_flags, comment_flags: @comment_flags,
display_comments_count: false, display_comments_count: false,
valuation: true, valuation: true,

View File

@@ -1,4 +1,4 @@
<%= link_to valuation_budget_budget_investment_path(@budget, @investment), class: 'back' do %> <%= link_to valuation_budget_budget_investment_path(@budget, @investment), class: "back" do %>
<span class="icon-angle-left"></span> <span class="icon-angle-left"></span>
<%= "#{t('valuation.budget_investments.show.title')} #{@investment.id}"%> <%= "#{t('valuation.budget_investments.show.title')} #{@investment.id}"%>
<% end %> <% end %>
@@ -6,29 +6,29 @@
<h2><%= t("valuation.budget_investments.edit.dossier") %></h2> <h2><%= t("valuation.budget_investments.edit.dossier") %></h2>
<% if can?(:valuate, @investment) %> <% if can?(:valuate, @investment) %>
<%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %> <%= form_for(@investment, url: valuate_valuation_budget_budget_investment_path(@budget, @investment), html: {id: "valuation_budget_investment_edit_form"}) do |f| %>
<%= render 'shared/errors', resource: @investment %> <%= render "shared/errors", resource: @investment %>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">
<fieldset class="fieldset"> <fieldset class="fieldset">
<legend><%= t('valuation.budget_investments.edit.feasibility') %></legend> <legend><%= t("valuation.budget_investments.edit.feasibility") %></legend>
<div class="small-4 column"> <div class="small-4 column">
<span class="radio"> <span class="radio">
<%= f.radio_button :feasibility, 'undecided', label: false %> <%= f.radio_button :feasibility, "undecided", label: false %>
<%= f.label :feasibility_undecided, t('valuation.budget_investments.edit.undefined_feasible') %> <%= f.label :feasibility_undecided, t("valuation.budget_investments.edit.undefined_feasible") %>
</span> </span>
</div> </div>
<div class="small-4 column"> <div class="small-4 column">
<span class="radio"> <span class="radio">
<%= f.radio_button :feasibility, 'feasible', label: false %> <%= f.radio_button :feasibility, "feasible", label: false %>
<%= f.label :feasibility_feasible, t('valuation.budget_investments.edit.feasible') %> <%= f.label :feasibility_feasible, t("valuation.budget_investments.edit.feasible") %>
</span> </span>
</div> </div>
<div class="small-4 column"> <div class="small-4 column">
<span class="radio"> <span class="radio">
<%= f.radio_button :feasibility, 'unfeasible', label: false %> <%= f.radio_button :feasibility, "unfeasible", label: false %>
<%= f.label :feasibility_unfeasible, t('valuation.budget_investments.edit.unfeasible') %> <%= f.label :feasibility_unfeasible, t("valuation.budget_investments.edit.unfeasible") %>
</span> </span>
</div> </div>
</fieldset> </fieldset>
@@ -80,8 +80,8 @@
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<%= f.label :valuation_finished do %> <%= f.label :valuation_finished do %>
<%= f.check_box :valuation_finished, <%= f.check_box :valuation_finished,
title: t('valuation.budget_investments.edit.valuation_finished'), title: t("valuation.budget_investments.edit.valuation_finished"),
label: false, id: 'js-investment-report-alert', label: false, id: "js-investment-report-alert",
"data-alert": t("valuation.budget_investments.edit.valuation_finished_alert"), "data-alert": t("valuation.budget_investments.edit.valuation_finished_alert"),
"data-not-feasible-alert": t("valuation.budget_investments.edit.not_feasible_alert") %> "data-not-feasible-alert": t("valuation.budget_investments.edit.not_feasible_alert") %>
<span class="checkbox"><%= t("valuation.budget_investments.edit.valuation_finished") %></span> <span class="checkbox"><%= t("valuation.budget_investments.edit.valuation_finished") %></span>
@@ -97,35 +97,35 @@
<% end %> <% end %>
<% else %> <% else %>
<p> <p>
<h3><%= t('valuation.budget_investments.edit.valuation_finished') %></h3> <h3><%= t("valuation.budget_investments.edit.valuation_finished") %></h3>
</p> </p>
<p> <p>
<strong><%= t('valuation.budget_investments.edit.feasibility') %>:</strong> <strong><%= t("valuation.budget_investments.edit.feasibility") %>:</strong>
<%= t("admin.budget_investments.index.feasibility.#{@investment.feasibility}") %> <%= t("admin.budget_investments.index.feasibility.#{@investment.feasibility}") %>
</p> </p>
<p> <p>
<strong><%= t("valuation.budget_investments.edit.feasible_explanation_html") %>:</strong> <strong><%= t("valuation.budget_investments.edit.feasible_explanation_html") %>:</strong>
<%= @investment.unfeasibility_explanation.presence || '-' %> <%= @investment.unfeasibility_explanation.presence || "-" %>
</p> </p>
<p> <p>
<strong><%= t('valuation.budget_investments.edit.price_html', currency: @budget.currency_symbol) %>:</strong> <strong><%= t("valuation.budget_investments.edit.price_html", currency: @budget.currency_symbol) %>:</strong>
<%= @investment.price.presence || '-' %> <%= @investment.price.presence || "-" %>
</p> </p>
<p> <p>
<strong><%= t('valuation.budget_investments.show.price_first_year', currency: @budget.currency_symbol) %>:</strong> <strong><%= t("valuation.budget_investments.show.price_first_year", currency: @budget.currency_symbol) %>:</strong>
<%= @investment.price_first_year.presence || '-' %> <%= @investment.price_first_year.presence || "-" %>
</p> </p>
<p> <p>
<strong><%= t('valuation.budget_investments.edit.price_explanation_html') %>:</strong> <strong><%= t("valuation.budget_investments.edit.price_explanation_html") %>:</strong>
<%= @investment.price_explanation.presence || '-'%> <%= @investment.price_explanation.presence || "-"%>
</p> </p>
<p> <p>
<strong><%= t('valuation.budget_investments.edit.duration_html') %>:</strong> <strong><%= t("valuation.budget_investments.edit.duration_html") %>:</strong>
<%= @investment.duration.presence || '-' %> <%= @investment.duration.presence || "-" %>
</p> </p>
<% end %> <% end %>
<%= render 'valuation/budget_investments/valuation_comments' %> <%= render "valuation/budget_investments/valuation_comments" %>
<h1><%= @investment.title %></h1> <h1><%= @investment.title %></h1>

View File

@@ -16,7 +16,7 @@
<% end %> <% end %>
</div> </div>
<%= render 'shared/filter_subnav', i18n_namespace: "valuation.budget_investments.index" %> <%= render "shared/filter_subnav", i18n_namespace: "valuation.budget_investments.index" %>
<% if @investments.any? %> <% if @investments.any? %>
<h3><%= page_entries_info @investments %></h3> <h3><%= page_entries_info @investments %></h3>

View File

@@ -50,6 +50,6 @@
<p> <p>
<%= link_to t("valuation.budget_investments.show.edit_dossier"), edit_valuation_budget_budget_investment_path(@budget, @investment) %> <%= link_to t("valuation.budget_investments.show.edit_dossier"), edit_valuation_budget_budget_investment_path(@budget, @investment) %>
</p> </p>
<%= render 'dossier' %> <%= render "dossier" %>
<%= render 'valuation/budget_investments/valuation_comments' %> <%= render "valuation/budget_investments/valuation_comments" %>

View File

@@ -1,30 +1,30 @@
<%= link_to "#{t('valuation.spending_proposals.show.heading')} #{@spending_proposal.id}", valuation_spending_proposal_path(@spending_proposal), class: 'back' %> <%= link_to "#{t('valuation.spending_proposals.show.heading')} #{@spending_proposal.id}", valuation_spending_proposal_path(@spending_proposal), class: "back" %>
<h2><%= t("valuation.spending_proposals.edit.dossier") %></h2> <h2><%= t("valuation.spending_proposals.edit.dossier") %></h2>
<%= form_for(@spending_proposal, url: valuate_valuation_spending_proposal_path(@spending_proposal), html: {id: "valuation_spending_proposal_edit_form"}) do |f| %> <%= form_for(@spending_proposal, url: valuate_valuation_spending_proposal_path(@spending_proposal), html: {id: "valuation_spending_proposal_edit_form"}) do |f| %>
<%= render 'shared/errors', resource: @spending_proposal %> <%= render "shared/errors", resource: @spending_proposal %>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<fieldset class="fieldset"> <fieldset class="fieldset">
<legend><%= t('valuation.spending_proposals.edit.feasibility') %></legend> <legend><%= t("valuation.spending_proposals.edit.feasibility") %></legend>
<div class="small-4 column"> <div class="small-4 column">
<span class="radio"> <span class="radio">
<%= f.radio_button :feasible, :nil, label: false, checked: @spending_proposal.feasible.nil? %> <%= f.radio_button :feasible, :nil, label: false, checked: @spending_proposal.feasible.nil? %>
<%= f.label :feasible_nil, t('valuation.spending_proposals.edit.undefined_feasible') %> <%= f.label :feasible_nil, t("valuation.spending_proposals.edit.undefined_feasible") %>
</span> </span>
</div> </div>
<div class="small-4 column"> <div class="small-4 column">
<span class="radio"> <span class="radio">
<%= f.radio_button :feasible, true, value: true, label: false %> <%= f.radio_button :feasible, true, value: true, label: false %>
<%= f.label :feasible_true, t('valuation.spending_proposals.edit.feasible') %> <%= f.label :feasible_true, t("valuation.spending_proposals.edit.feasible") %>
</span> </span>
</div> </div>
<div class="small-4 column"> <div class="small-4 column">
<span class="radio"> <span class="radio">
<%= f.radio_button :feasible, false, value: false, label: false %> <%= f.radio_button :feasible, false, value: false, label: false %>
<%= f.label :feasible_false, t('valuation.spending_proposals.edit.not_feasible') %> <%= f.label :feasible_false, t("valuation.spending_proposals.edit.not_feasible") %>
</span> </span>
</div> </div>
</fieldset> </fieldset>
@@ -75,7 +75,7 @@
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<%= f.label :valuation_finished do %> <%= f.label :valuation_finished do %>
<%= f.check_box :valuation_finished, title: t('valuation.spending_proposals.edit.valuation_finished'), label: false %> <%= f.check_box :valuation_finished, title: t("valuation.spending_proposals.edit.valuation_finished"), label: false %>
<span class="checkbox"><%= t("valuation.spending_proposals.edit.valuation_finished") %></span> <span class="checkbox"><%= t("valuation.spending_proposals.edit.valuation_finished") %></span>
<% end %> <% end %>
</div> </div>

View File

@@ -13,7 +13,7 @@
<% end %> <% end %>
</div> </div>
<%= render 'shared/filter_subnav', i18n_namespace: "valuation.spending_proposals.index" %> <%= render "shared/filter_subnav", i18n_namespace: "valuation.spending_proposals.index" %>
<h3><%= page_entries_info @spending_proposals %></h3> <h3><%= page_entries_info @spending_proposals %></h3>

View File

@@ -58,4 +58,4 @@
<%= link_to t("valuation.spending_proposals.show.edit_dossier"), edit_valuation_spending_proposal_path(@spending_proposal) %> <%= link_to t("valuation.spending_proposals.show.edit_dossier"), edit_valuation_spending_proposal_path(@spending_proposal) %>
</p> </p>
<%= render 'written_by_valuators' %> <%= render "written_by_valuators" %>

View File

@@ -81,11 +81,11 @@
<div class="small-12"> <div class="small-12">
<%= f.label :terms_of_service do %> <%= f.label :terms_of_service do %>
<%= f.check_box :terms_of_service, title: t('verification.residence.new.accept_terms_text_title'), label: false %> <%= f.check_box :terms_of_service, title: t("verification.residence.new.accept_terms_text_title"), label: false %>
<span class="checkbox"> <span class="checkbox">
<%= t("verification.residence.new.accept_terms_text", <%= t("verification.residence.new.accept_terms_text",
terms_url: link_to(t("verification.residence.new.terms"), "/census_terms", terms_url: link_to(t("verification.residence.new.terms"), "/census_terms",
title: t('shared.target_blank_html'), title: t("shared.target_blank_html"),
target: "_blank")).html_safe target: "_blank")).html_safe
%> %>
</span> </span>

View File

@@ -1,2 +1,2 @@
<%= render 'proposals/votes', <%= render "proposals/votes",
{ proposal: proposal, vote_url: vote_proposal_path(proposal, value: 'yes') } %> { proposal: proposal, vote_url: vote_proposal_path(proposal, value: "yes") } %>