Adds missing html titles (#14517).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12050 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-07-28 11:50:18 +00:00
parent 1e738fbaca
commit f3241385cd
29 changed files with 34 additions and 43 deletions

View File

@ -1,4 +1,4 @@
<h2><%= l(:label_plugins) %></h2> <%= title l(:label_plugins) %>
<% if @plugins.any? %> <% if @plugins.any? %>
<table class="list plugins"> <table class="list plugins">

View File

@ -2,7 +2,7 @@
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
</div> </div>
<h2><%=l(:label_project_plural)%></h2> <%= title l(:label_project_plural) %>
<%= form_tag({}, :method => :get) do %> <%= form_tag({}, :method => :get) do %>
<fieldset><legend><%= l(:label_filter_plural) %></legend> <fieldset><legend><%= l(:label_filter_plural) %></legend>
@ -41,5 +41,3 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<% html_title(l(:label_project_plural)) -%>

View File

@ -1,4 +1,4 @@
<h2><%=l(:label_auth_source)%> (<%= h(@auth_source.auth_method_name) %>)</h2> <%= title [l(:label_auth_source_plural), auth_sources_path], @auth_source.name %>
<%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_source_path(@auth_source), :html => {:id => 'auth_source_form'} do |f| %> <%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_source_path(@auth_source), :html => {:id => 'auth_source_form'} do |f| %>
<%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %> <%= render :partial => auth_source_partial_name(@auth_source), :locals => { :f => f } %>

View File

@ -2,7 +2,7 @@
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %> <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
</div> </div>
<h2><%=l(:label_auth_source_plural)%></h2> <%= title l(:label_auth_source_plural) %>
<table class="list"> <table class="list">
<thead><tr> <thead><tr>

View File

@ -1,4 +1,4 @@
<h2><%=l(:label_auth_source_new)%> (<%= h(@auth_source.auth_method_name) %>)</h2> <%= title [l(:label_auth_source_plural), auth_sources_path], "#{l(:label_auth_source_new)} (#{@auth_source.auth_method_name})" %>
<%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_sources_path, :html => {:id => 'auth_source_form'} do |f| %> <%= labelled_form_for @auth_source, :as => :auth_source, :url => auth_sources_path, :html => {:id => 'auth_source_form'} do |f| %>
<%= hidden_field_tag 'type', @auth_source.type %> <%= hidden_field_tag 'type', @auth_source.type %>

View File

@ -1,6 +1,6 @@
<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> <%= title [l(:label_custom_field_plural), custom_fields_path],
&#187; <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %> [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
&#187; <%=h @custom_field.name %></h2> @custom_field.name %>
<%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put, :id => 'custom_field_form'} do |f| %> <%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put, :id => 'custom_field_form'} do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,5 +1,3 @@
<h2><%=l(:label_custom_field_plural)%></h2> <%= title l(:label_custom_field_plural) %>
<%= render_tabs custom_fields_tabs %> <%= render_tabs custom_fields_tabs %>
<% html_title(l(:label_custom_field_plural)) -%>

View File

@ -1,6 +1,6 @@
<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> <%= title [l(:label_custom_field_plural), custom_fields_path],
&#187; <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %> [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
&#187; <%= l(:label_custom_field_new) %></h2> l(:label_custom_field_new) %>
<%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %> <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,4 +1,4 @@
<h2><%= l(@enumeration.option_name) %>: <%=h @enumeration %></h2> <%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %>
<%= form_tag({}, :method => :delete) do %> <%= form_tag({}, :method => :delete) do %>
<div class="box"> <div class="box">

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(@enumeration.option_name), enumerations_path %> &#187; <%=h @enumeration %></h2> <%= title [l(@enumeration.option_name), enumerations_path], @enumeration.name %>
<%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %> <%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(@enumeration.option_name), enumerations_path %> &#187; <%=l(:label_enumeration_new)%></h2> <%= title [l(@enumeration.option_name), enumerations_path], l(:label_enumeration_new) %>
<%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %> <%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %>
<%= f.hidden_field :type %> <%= f.hidden_field :type %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_issue_status_plural), issue_statuses_path %> &#187; <%=h @issue_status %></h2> <%= title [l(:label_issue_status_plural), issue_statuses_path], @issue_status.name %>
<%= labelled_form_for @issue_status do |f| %> <%= labelled_form_for @issue_status do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_issue_status_plural), issue_statuses_path %> &#187; <%=l(:label_issue_status_new)%></h2> <%= title [l(:label_issue_status_plural), issue_statuses_path], l(:label_issue_status_new) %>
<%= labelled_form_for @issue_status do |f| %> <%= labelled_form_for @issue_status do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>

View File

@ -1,4 +1,4 @@
<h2><%=l(:label_issue_new)%></h2> <%= title l(:label_issue_new) %>
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %> <%= call_hook(:view_issues_new_top, {:issue => @issue}) %>

View File

@ -1,4 +1,5 @@
<h2><%=l(:label_confirmation)%></h2> <%= title l(:label_confirmation) %>
<div class="warning"> <div class="warning">
<p><strong><%=h @project_to_destroy %></strong><br /> <p><strong><%=h @project_to_destroy %></strong><br />
<%=l(:text_project_destroy_confirmation)%> <%=l(:text_project_destroy_confirmation)%>

View File

@ -1,4 +1,4 @@
<h2><%=l(:label_project_new)%></h2> <%= title l(:label_project_new) %>
<%= labelled_form_for @project do |f| %> <%= labelled_form_for @project do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_role_plural), roles_path %> &#187; <%=h @role.name %></h2> <%= title [l(:label_role_plural), roles_path], @role.name %>
<%= labelled_form_for @role do |f| %> <%= labelled_form_for @role do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_role_plural), roles_path %> &#187; <%=l(:label_role_new)%></h2> <%= title [l(:label_role_plural), roles_path], l(:label_role_new) %>
<%= labelled_form_for @role do |f| %> <%= labelled_form_for @role do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_role_plural), roles_path %> &#187; <%=l(:label_permissions_report)%></h2> <%= title [l(:label_role_plural), roles_path], l(:label_permissions_report) %>
<%= form_tag(permissions_roles_path, :id => 'permissions_form') do %> <%= form_tag(permissions_roles_path, :id => 'permissions_form') do %>
<%= hidden_field_tag 'permissions[0]', '', :id => nil %> <%= hidden_field_tag 'permissions[0]', '', :id => nil %>

View File

@ -1,4 +1,4 @@
<h2><%= l(:label_settings) %>: <%=h @plugin.name %></h2> <%= title [l(:label_plugins), {:controller => 'admin', :action => 'plugins'}], @plugin.name %>
<div id="settings"> <div id="settings">
<%= form_tag({:action => 'plugin'}) do %> <%= form_tag({:action => 'plugin'}) do %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_tracker_plural), trackers_path %> &#187; <%=h @tracker %></h2> <%= title [l(:label_tracker_plural), trackers_path], @tracker.name %>
<%= labelled_form_for @tracker do |f| %> <%= labelled_form_for @tracker do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_tracker_plural), trackers_path %> &#187; <%= l(:field_summary) %></h2> <%= title [l(:label_tracker_plural), trackers_path], l(:field_summary) %>
<% if @trackers.any? %> <% if @trackers.any? %>
<%= form_tag fields_trackers_path do %> <%= form_tag fields_trackers_path do %>
@ -73,5 +73,3 @@
<% else %> <% else %>
<p class="nodata"><%= l(:label_no_data) %></p> <p class="nodata"><%= l(:label_no_data) %></p>
<% end %> <% end %>
<% html_title l(:field_summary) %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_tracker_plural), trackers_path %> &#187; <%=l(:label_tracker_new)%></h2> <%= title [l(:label_tracker_plural), trackers_path], l(:label_tracker_new) %>
<%= labelled_form_for @tracker do |f| %> <%= labelled_form_for @tracker do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -4,8 +4,6 @@
<%= delete_link user_path(@user) if User.current != @user %> <%= delete_link user_path(@user) if User.current != @user %>
</div> </div>
<h2><%= link_to l(:label_user_plural), users_path %> &#187; <%=h @user.login %></h2> <%= title [l(:label_user_plural), users_path], @user.login %>
<%= render_tabs user_settings_tabs %> <%= render_tabs user_settings_tabs %>
<% html_title(l(:label_user), @user.login, l(:label_administration)) -%>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_user_plural), users_path %> &#187; <%=l(:label_user_new)%></h2> <%= title [l(:label_user_plural), users_path], l(:label_user_new) %>
<%= labelled_form_for @user do |f| %> <%= labelled_form_for @user do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_workflow), workflows_edit_path %> &#187; <%=l(:button_copy)%></h2> <%= title [l(:label_workflow), workflows_edit_path], l(:button_copy) %>
<%= form_tag({}, :id => 'workflow_copy_form') do %> <%= form_tag({}, :id => 'workflow_copy_form') do %>
<fieldset class="tabular box"> <fieldset class="tabular box">

View File

@ -1,6 +1,6 @@
<%= render :partial => 'action_menu' %> <%= render :partial => 'action_menu' %>
<h2><%=l(:label_workflow)%></h2> <%= title l(:label_workflow) %>
<div class="tabs"> <div class="tabs">
<ul> <ul>
@ -54,5 +54,3 @@
<%= submit_tag l(:button_save) %> <%= submit_tag l(:button_save) %>
<% end %> <% end %>
<% end %> <% end %>
<% html_title(l(:label_workflow)) -%>

View File

@ -1,4 +1,4 @@
<h2><%= link_to l(:label_workflow), workflows_edit_path %> &#187; <%=l(:field_summary)%></h2> <%= title [l(:label_workflow), workflows_edit_path], l(:field_summary) %>
<% if @workflow_counts.empty? %> <% if @workflow_counts.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p> <p class="nodata"><%= l(:label_no_data) %></p>

View File

@ -1,6 +1,6 @@
<%= render :partial => 'action_menu' %> <%= render :partial => 'action_menu' %>
<h2><%=l(:label_workflow)%></h2> <%= title l(:label_workflow) %>
<div class="tabs"> <div class="tabs">
<ul> <ul>