Use double quotes in app/views
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<h2><%= t("devise_views.confirmations.new.title") %></h2>
|
||||
|
||||
<%= 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="small-12 columns">
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
<% provide :title do %><%= t("devise_views.confirmations.show.title") %><% end %>
|
||||
<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,
|
||||
as: resource_name,
|
||||
url: update_user_confirmation_path,
|
||||
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="small-12 columns">
|
||||
<%= f.password_field :password,
|
||||
autofocus: true,
|
||||
label: t('devise_views.confirmations.show.new_password_label') %>
|
||||
label: t("devise_views.confirmations.show.new_password_label") %>
|
||||
</div>
|
||||
<div class="small-12 columns">
|
||||
<%= 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>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<li>
|
||||
<%= layout_menu_link_to t("layouts.header.my_activity_link"),
|
||||
user_path(current_user),
|
||||
controller_name == 'users',
|
||||
controller_name == "users",
|
||||
rel: "nofollow",
|
||||
title: t("shared.go_to_page") +
|
||||
t("layouts.header.my_activity_link") %>
|
||||
@@ -10,7 +10,7 @@
|
||||
<li>
|
||||
<%= layout_menu_link_to t("layouts.header.my_account_link"),
|
||||
account_path,
|
||||
controller_name == 'account',
|
||||
controller_name == "account",
|
||||
rel: "nofollow",
|
||||
title: t("shared.go_to_page") +
|
||||
t("layouts.header.my_account_link") %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<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| %>
|
||||
<%= render 'shared/errors', resource: resource %>
|
||||
<%= render "shared/errors", resource: resource %>
|
||||
|
||||
<%= f.hidden_field :reset_password_token %>
|
||||
|
||||
@@ -20,4 +20,4 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render "devise/shared/links" %>
|
||||
<%= render "devise/shared/links" %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% provide :title do %><%= t("devise_views.passwords.new.title") %><% end %>
|
||||
<h2><%= t("devise_views.passwords.new.title") %></h2>
|
||||
<%= 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="small-12 column">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% provide :title do %><%= t("devise_views.sessions.new.title") %><% end %>
|
||||
<h2><%= t("devise_views.sessions.new.title") %></h2>
|
||||
|
||||
<%= render 'devise/omniauth_form' %>
|
||||
<%= render "devise/omniauth_form" %>
|
||||
|
||||
<p>
|
||||
<%= t("devise_views.shared.links.signup",
|
||||
@@ -22,7 +22,7 @@
|
||||
<% if devise_mapping.rememberable? -%>
|
||||
<div class="small-12 column">
|
||||
<%= 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>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
<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>
|
||||
<% end -%>
|
||||
|
||||
<%#- if devise_mapping.registerable? &&
|
||||
controller_name != 'registrations' ||
|
||||
controller_path != 'users/registrations' %>
|
||||
controller_name != "registrations" ||
|
||||
controller_path != "users/registrations" %>
|
||||
<%#= link_to t("devise_views.shared.links.signup"), new_user_registration_path %><!-- <br> -->
|
||||
<%# 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 %>
|
||||
<%# 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> -->
|
||||
<%# 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>
|
||||
<% 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>
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.omniauthable? && devise_mapping.name == 'user' %>
|
||||
<%- if devise_mapping.omniauthable? && devise_mapping.name == "user" %>
|
||||
<%- 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>
|
||||
<% end -%>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<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| %>
|
||||
<%= render 'shared/errors', resource: resource %>
|
||||
<%= render "shared/errors", resource: resource %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.email_field :email, autofocus: true,
|
||||
|
||||
Reference in New Issue
Block a user