app/views/detour/flags/index.html.erb in detour-0.0.3 vs app/views/detour/flags/index.html.erb in detour-0.0.5
- old
+ new
@@ -20,16 +20,21 @@
<%= table do %>
<thead>
<tr>
<th></th>
<th>Feature</th>
+ <th>In Code?</th>
<%= render partial: "detour/shared/spacer_cells", locals: { tag: "th" } %>
- <% @flag_form.group_names.each do |group_name| %>
+ <% @flag_form.groups.each do |group| %>
<th>
<span class="group-header">
- <%= group_name %>
+ <% if group.is_a? Detour::Group %>
+ <%= link_to group, group %>
+ <% else %>
+ <%= group %>
+ <% end %>
</span>
</th>
<% end %>
<th class="percentage-header">Percentage</th>