summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-25 10:54:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-25 10:54:09 +0000
commit57a22c346467ca6666d3a6dc9f0a9134447bd58c (patch)
tree83c31cf8097372c4cca2b188a09dbc66fe72b242 /app/views
parent25b96457c119d0fa8e7183c092756f614bf5b17e (diff)
downloadredmine-57a22c346467ca6666d3a6dc9f0a9134447bd58c.tar.gz
redmine-57a22c346467ca6666d3a6dc9f0a9134447bd58c.zip
Helper method for custom field title.
git-svn-id: http://svn.redmine.org/redmine/trunk@14751 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/custom_field_enumerations/index.html.erb4
-rw-r--r--app/views/custom_fields/edit.html.erb4
-rw-r--r--app/views/custom_fields/new.html.erb4
-rw-r--r--app/views/custom_fields/select_type.html.erb3
4 files changed, 4 insertions, 11 deletions
diff --git a/app/views/custom_field_enumerations/index.html.erb b/app/views/custom_field_enumerations/index.html.erb
index 9ca9314eb..9e9b67d3f 100644
--- a/app/views/custom_field_enumerations/index.html.erb
+++ b/app/views/custom_field_enumerations/index.html.erb
@@ -1,6 +1,4 @@
-<%= title [l(:label_custom_field_plural), custom_fields_path],
- [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
- @custom_field.name %>
+<%= custom_field_title @custom_field %>
<% if @custom_field.enumerations.any? %>
<%= form_tag custom_field_enumerations_path(@custom_field), :method => 'put' do %>
diff --git a/app/views/custom_fields/edit.html.erb b/app/views/custom_fields/edit.html.erb
index cd52e0075..0cbef1f7d 100644
--- a/app/views/custom_fields/edit.html.erb
+++ b/app/views/custom_fields/edit.html.erb
@@ -1,6 +1,4 @@
-<%= title [l(:label_custom_field_plural), custom_fields_path],
- [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
- @custom_field.name %>
+<%= custom_field_title @custom_field %>
<%= 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 } %>
diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erb
index 6c5809e73..db422296b 100644
--- a/app/views/custom_fields/new.html.erb
+++ b/app/views/custom_fields/new.html.erb
@@ -1,6 +1,4 @@
-<%= title [l(:label_custom_field_plural), custom_fields_path],
- [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
- l(:label_custom_field_new) %>
+<%= custom_field_title @custom_field %>
<%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
diff --git a/app/views/custom_fields/select_type.html.erb b/app/views/custom_fields/select_type.html.erb
index fd9c5a210..084c9f3a7 100644
--- a/app/views/custom_fields/select_type.html.erb
+++ b/app/views/custom_fields/select_type.html.erb
@@ -1,5 +1,4 @@
-<%= title [l(:label_custom_field_plural), custom_fields_path],
- l(:label_custom_field_new) %>
+<%= custom_field_title @custom_field %>
<% selected = 0 %>
<%= form_tag new_custom_field_path, :method => 'get' do %>