]> source.dussan.org Git - redmine.git/commitdiff
Display custom fields on group pages (#29189).
authorGo MAEDA <maeda@farend.jp>
Tue, 10 Jul 2018 07:02:41 +0000 (07:02 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 10 Jul 2018 07:02:41 +0000 (07:02 +0000)
Contributed by Gregor Schmidt.

git-svn-id: http://svn.redmine.org/redmine/trunk@17441 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/groups/show.html.erb

index b10427bf9e81aa640c686f873c810b5cb4a93456..4f413afe8fbf346c0e9a47588917215113f3af08 100644 (file)
@@ -1,5 +1,14 @@
 <%= title [l(:label_group_plural), groups_path], @group.name %>
 
+<% if @group.custom_field_values.any? %>
+  <ul>
+    <% render_custom_field_values(@group) do |custom_field, formatted| %>
+      <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
+    <% end %>
+  </ul>
+<% end %>
+
+<h3><%= l(:label_member_plural) %></h3>
 <ul>
 <% @group.users.each do |user| %>
     <li><%= user %></li>