OSDN Git Service

Administration panel breadcrumbs (#3314).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Jul 2009 12:22:02 +0000 (12:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Jul 2009 12:22:02 +0000 (12:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2810 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 files changed:
app/views/custom_fields/edit.rhtml
app/views/custom_fields/new.rhtml
app/views/enumerations/edit.rhtml
app/views/enumerations/new.rhtml
app/views/issue_statuses/edit.rhtml
app/views/issue_statuses/new.rhtml
app/views/roles/edit.rhtml
app/views/roles/new.rhtml
app/views/roles/report.rhtml
app/views/trackers/edit.rhtml
app/views/trackers/new.rhtml
app/views/users/add.rhtml
app/views/users/edit.rhtml

index ef056fa..8ca7e33 100644 (file)
@@ -1,4 +1,5 @@
-<h2><%=l(:label_custom_field)%> (<%=l(@custom_field.type_name)%>)</h2>
+<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> 
+  &#187; <%=h @custom_field.name %> (<%=l(@custom_field.type_name)%>)</h2>
 
 <% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index 2e8aa27..14a35b1 100644 (file)
@@ -1,4 +1,5 @@
-<h2><%=l(:label_custom_field_new)%> (<%=l(@custom_field.type_name)%>)</h2>
+<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %>
+  &#187; <%=l(:label_custom_field_new)%> (<%=l(@custom_field.type_name)%>)</h2>
 
 <% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "new" } do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index 7baea02..5a29255 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_enumerations)%></h2>
+<h2><%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> &#187; <%=h @enumeration %></h2>
 
 <% form_tag({:action => 'update', :id => @enumeration}, :class => "tabular") do %>
   <%= render :partial => 'form' %>
index 5c2ccd1..3488283 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%= l(@enumeration.option_name) %>: <%=l(:label_enumeration_new)%></h2>
+<h2><%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> &#187; <%=l(:label_enumeration_new)%></h2>
 
 <% form_tag({:action => 'create'}, :class => "tabular") do %>
   <%= render :partial => 'form' %>
index b81426a..4120ad3 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_issue_status)%></h2>
+<h2><%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> &#187; <%=h @issue_status %></h2>
 
 <% form_tag({:action => 'update', :id => @issue_status}, :class => "tabular") do %>
   <%= render :partial => 'form' %>
index ede1699..bc74c8d 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_issue_status_new)%></h2>
+<h2><%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> &#187; <%=l(:label_issue_status_new)%></h2>
 
 <% form_tag({:action => 'create'}, :class => "tabular") do %>
   <%= render :partial => 'form' %>
index e53a0f5..df3a4f3 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_role)%>: <%= @role.name %></h2> 
+<h2><%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> &#187; <%= @role.name %></h2> 
 
 <% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index 8f03aef..fb3e96f 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_role_new)%></h2> 
+<h2><%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> &#187; <%=l(:label_role_new)%></h2> 
 
 <% labelled_tabular_form_for :role, @role, :url => { :action => 'new' }, :html => {:id => 'role_form'} do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index b30730a..e2b0199 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_permissions_report)%></h2>
+<h2><%= link_to l(:label_role_plural), :controller => 'roles', :action => 'index' %> &#187; <%=l(:label_permissions_report)%></h2>
 
 <% form_tag({:action => 'report'}, :id => 'permissions_form') do %>
 <%= hidden_field_tag 'permissions[0]', '', :id => nil %>
index 038acc8..b5d6f9d 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_tracker)%></h2>
+<h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> &#187; <%=h @tracker %></h2>
 
 <% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index 3f8384c..6dccf0d 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_tracker_new)%></h2>
+<h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> &#187; <%=l(:label_tracker_new)%></h2>
 
 <% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index 636bdcb..5629845 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%=l(:label_user_new)%></h2>
+<h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=l(:label_user_new)%></h2>
 
 <% labelled_tabular_form_for :user, @user, :url => { :action => "add" } do |f| %>
 <%= render :partial => 'form', :locals => { :f => f } %>
index 4714bce..96e089c 100644 (file)
@@ -2,7 +2,7 @@
 <%= change_status_link(@user) %>
 </div>
 
-<h2><%=l(:label_user)%>: <%=h @user.login %></h2>
+<h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=h @user.login %></h2>
 
 <% selected_tab = params[:tab] ? params[:tab].to_s : user_settings_tabs.first[:name] %>