Project

General

Profile

Patch #29189 » 0001-Show-group-custom-fields-on-group-view-page.patch

Gregor Schmidt, 2018-07-04 14:19

View differences:

app/views/groups/show.html.erb
<%= title [l(:label_group_plural), groups_path], @group.name %>
<% if @group.custom_field_values.any? %>
<h3><%= l(:label_attribute_plural) %></h3>
<ul>
<% render_custom_field_values(@group) do |custom_field, formatted| %>
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
<% end %>
</ul>
<h3><%= l(:label_member_plural) %></h3>
<% end %>
<ul>
<% @group.users.each do |user| %>
<li><%= user %></li>
(1-1/4)