diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-15 15:22:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-15 15:22:55 +0000 |
commit | ba7cf9c3ce6c970a2ecb49d1f4ab276a071ada40 (patch) | |
tree | 8ec30a96db6089c7e140e7cb2a4ea5c864fe1ac8 /app/views | |
parent | 7d57833740bb546753d6d908ee082e8268044fa3 (diff) | |
download | redmine-ba7cf9c3ce6c970a2ecb49d1f4ab276a071ada40.tar.gz redmine-ba7cf9c3ce6c970a2ecb49d1f4ab276a071ada40.zip |
Adds custom fields for versions (#4219).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3064 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/versions/_form.rhtml | 4 | ||||
-rw-r--r-- | app/views/versions/_overview.rhtml | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/app/views/versions/_form.rhtml b/app/views/versions/_form.rhtml index dfdbc18fe..13579b8b6 100644 --- a/app/views/versions/_form.rhtml +++ b/app/views/versions/_form.rhtml @@ -6,4 +6,8 @@ <p><%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %></p> <p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p> <p><%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p> + +<% @version.custom_field_values.each do |value| %> + <p><%= custom_field_tag_with_label :version, value %></p> +<% end %> </div> diff --git a/app/views/versions/_overview.rhtml b/app/views/versions/_overview.rhtml index 724f9f923..550cf3e78 100644 --- a/app/views/versions/_overview.rhtml +++ b/app/views/versions/_overview.rhtml @@ -5,6 +5,13 @@ <% end %> <p><%=h version.description %></p> +<ul> + <% version.custom_values.each do |custom_value| %> + <% if !custom_value.value.blank? %> + <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li> + <% end %> + <% end %> +</ul> <% if version.fixed_issues.count > 0 %> <%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %> |