0001-Show-group-custom-fields-on-group-view-page.patch

Gregor Schmidt, 2018-07-04 14:19

Download (998 Bytes)

View differences:

app/views/groups/show.html.erb
1 1
<%= title [l(:label_group_plural), groups_path], @group.name %>
2 2

  
3
<% if @group.custom_field_values.any? %>
4
  <h3><%= l(:label_attribute_plural) %></h3>
5

  
6
  <ul>
7
    <% render_custom_field_values(@group) do |custom_field, formatted| %>
8
      <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
9
    <% end %>
10
  </ul>
11

  
12
  <h3><%= l(:label_member_plural) %></h3>
13
<% end %>
14

  
3 15
<ul>
4 16
<% @group.users.each do |user| %>
5 17
    <li><%= user %></li>
6
-