Use <%= instead of <% for block helpers that use concat
This commit is contained in:
parent
7b37f4cb62
commit
b25a468e3c
23 changed files with 26 additions and 26 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
<%= error_messages_for 'diary_entry' %>
|
||||
|
||||
<% form_for :diary_entry do |f| %>
|
||||
<%= form_for :diary_entry do |f| %>
|
||||
<table class="diary_entry">
|
||||
<tr valign="top">
|
||||
<td class="fieldName"><%= t 'diary_entry.edit.subject' -%></td>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<%= error_messages_for 'diary_comment' %>
|
||||
|
||||
<% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
|
||||
<%= form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
|
||||
<%= f.text_area :body, :cols => 80, :rows => 5 %>
|
||||
<br />
|
||||
<br />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% form_tag :action => "finish" do %>
|
||||
<%= form_tag :action => "finish" do %>
|
||||
|
||||
<p class="export_heading"><%= t'export.start.area_to_export' %></p>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<%= error_messages_for 'message' %>
|
||||
|
||||
<% form_for :message, :url => { :action => "new", :display_name => @to_user.display_name } do |f| %>
|
||||
<%= form_for :message, :url => { :action => "new", :display_name => @to_user.display_name } do |f| %>
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td class="fieldName"><%= t'message.new.subject' %></td>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<h1>Authorize access to your account</h1>
|
||||
<p><%= t('oauth.oauthorize.request_access', :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(@user.display_name, :controller => :user, :action => :view, :display_name => @user.display_name)) %></p>
|
||||
<% form_tag authorize_url do %>
|
||||
<%= form_tag authorize_url do %>
|
||||
<%= hidden_field_tag "oauth_token", @token.token %>
|
||||
<%- if params[:oauth_callback] -%>
|
||||
<%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h1><%= t'oauth_clients.edit.title' %></h1>
|
||||
<% form_for :client_application, @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
|
||||
<%= form_for :client_application, @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<br/>
|
||||
<%= submit_tag t'oauth_clients.edit.submit' %>
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
<tr><th><%= t'oauth_clients.index.application' %></th>
|
||||
<th><%= t'oauth_clients.index.issued_at' %></th><th> </th></tr>
|
||||
<% @tokens.each do |token|%>
|
||||
<% content_tag_for :tr, token do %>
|
||||
<%= content_tag_for :tr, token do %>
|
||||
<td><%= link_to token.client_application.name, token.client_application.url %></td>
|
||||
<td><%= token.authorized_at %></td>
|
||||
<td>
|
||||
<% form_tag :controller => 'oauth', :action => 'revoke' do %>
|
||||
<%= form_tag :controller => 'oauth', :action => 'revoke' do %>
|
||||
<%= hidden_field_tag 'token', token.token %>
|
||||
<%= submit_tag t('oauth_clients.index.revoke') %>
|
||||
<% end %>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<% else %>
|
||||
<p><%= t'oauth_clients.index.registered_apps' %></p>
|
||||
<% @client_applications.each do |client|%>
|
||||
<% div_for client do %>
|
||||
<%= div_for client do %>
|
||||
<%= link_to client.name, :action => :show, :id => client.id %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h1><%= t'oauth_clients.new.title' %></h1>
|
||||
<% form_for :client_application, :url => { :action => :create } do |f| %>
|
||||
<%= form_for :client_application, :url => { :action => :create } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<br />
|
||||
<%= submit_tag t('oauth_clients.new.submit') %>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<%= error_messages_for 'trace' %>
|
||||
|
||||
<% form_for :trace, @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
|
||||
<%= form_for :trace, @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
|
||||
<table>
|
||||
<tr><td class="fieldName"><%= t'trace.trace_form.upload_gpx' %></td><td><%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %></td></tr>
|
||||
<tr><td class="fieldName"><%= t'trace.trace_form.description' %></td><td><%= f.text_field :description, :size => 50, :maxlength => 255 %></td></tr>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
|
||||
|
||||
<% form_for :trace, @trace do |f| %>
|
||||
<%= form_for :trace, @trace do |f| %>
|
||||
|
||||
<table border="0">
|
||||
<tr>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<h2><%= t 'user.account.my settings' %></h2>
|
||||
<%= error_messages_for 'user' %>
|
||||
<% form_for :user, :html => { :multipart => true } do |f| %>
|
||||
<%= form_for :user, :html => { :multipart => true } do |f| %>
|
||||
<table id="accountForm">
|
||||
<tr>
|
||||
<td class="fieldName"><%= t 'user.new.display name' %></td>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<h1><%= t('user.list.heading') %></h1>
|
||||
|
||||
<% unless @users.empty? %>
|
||||
<% form_tag do %>
|
||||
<%= form_tag do %>
|
||||
<%= hidden_field_tag :status, params[:status] if params[:status] %>
|
||||
<%= hidden_field_tag :ip, params[:ip] if params[:ip] %>
|
||||
<%= hidden_field_tag :page, params[:page] if params[:page] %>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div id="login_login">
|
||||
<h1><%= t 'user.login.heading' %></h1>
|
||||
|
||||
<% form_tag({ :action => "login" }, { :id => "login_form" }) do %>
|
||||
<%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>
|
||||
<%= hidden_field_tag('referer', h(params[:referer])) %>
|
||||
|
||||
<p><%= t 'user.login.with username' %></p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h1><%= t 'user.logout.heading' %></h1>
|
||||
<% form_tag :action => "logout" do %>
|
||||
<%= form_tag :action => "logout" do %>
|
||||
<%= hidden_field_tag("referer", h(params[:referer])) %>
|
||||
<%= hidden_field_tag("session", request.session_options[:id]) %>
|
||||
<%= submit_tag t('user.logout.logout_button') %>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<p><%= t 'user.lost_password.help_text' %></p>
|
||||
|
||||
<% form_tag :action => 'lost_password' do %>
|
||||
<%= form_tag :action => 'lost_password' do %>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="fieldName"><%= t 'user.lost_password.email address' %></td>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<%= error_messages_for 'user' %>
|
||||
|
||||
<% form_tag :action => 'terms' do %>
|
||||
<%= form_tag :action => 'terms' do %>
|
||||
<%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
|
||||
|
||||
<table id="signupForm">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<%= error_messages_for :user %>
|
||||
|
||||
<% form_tag do %>
|
||||
<%= form_tag do %>
|
||||
<%= hidden_field_tag(:token, params[:token]) %>
|
||||
<table id="loginForm">
|
||||
<tr><td class="fieldName"><%= t 'user.reset_password.password' %></td><td><%= password_field(:user, :pass_crypt, {:value => '', :size => 30, :maxlength => 255, :tabindex => 4}) %></td></tr>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<p><%= t 'user.terms.read and accept' %></p>
|
||||
|
||||
<!-- legale is <%= @legale %> -->
|
||||
<% form_tag :action => 'terms' do %>
|
||||
<%= form_tag :action => 'terms' do %>
|
||||
<p>
|
||||
<%= t 'user.terms.legale_select' %>
|
||||
<% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name,legale| %>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<%= render :partial => "terms" %>
|
||||
</div>
|
||||
|
||||
<% form_tag({:action => "save"}, { :id => "termsForm" }) do %>
|
||||
<%= form_tag({:action => "save"}, { :id => "termsForm" }) do %>
|
||||
<p>
|
||||
<label for="confirm_pd_checkbox"><%= t 'user.terms.consider_pd' %></label>
|
||||
<%= check_box('user', 'consider_pd') %>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
h(@user_block.user.display_name),
|
||||
{:controller => 'user', :action => 'view', :display_name => @user_block.user.display_name})) %></h1>
|
||||
|
||||
<% form_for(@user_block) do |f| %>
|
||||
<%= form_for(@user_block) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
h(@this_user.display_name),
|
||||
{:controller => 'user', :action => 'view', :display_name => @this_user.display_name})) %></h1>
|
||||
|
||||
<% form_for(@user_block) do |f| %>
|
||||
<%= form_forevxr(@user_block) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<%= t('user_block.revoke.time_future', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
|
||||
</b></p>
|
||||
|
||||
<% form_for :revoke, :url => { :action => "revoke" } do |f| %>
|
||||
<%= form_for :revoke, :url => { :action => "revoke" } do |f| %>
|
||||
<%= f.error_messages %>
|
||||
<p>
|
||||
<%= check_box_tag 'confirm', 'yes' %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% form_tag request.request_uri do %>
|
||||
<%= form_tag request.request_uri do %>
|
||||
<%= hidden_field_tag 'nonce', @nonce %>
|
||||
<% @title = t('user_role.grant.heading') %>
|
||||
<h1><%= t('user_role.grant.heading') %></h1>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% form_tag request.request_uri do %>
|
||||
<%= form_tag request.request_uri do %>
|
||||
<%= hidden_field_tag 'nonce', @nonce %>
|
||||
<% @title = t('user_role.revoke.heading') %>
|
||||
<h1><%= t('user_role.revoke.heading') %></h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue