<%=feature.name%>
<%#=$rollout.get(feature).inspect%>
- Users
-
<% if feature.users.count > 0 %>
<% feature.users.each {|user| %>
-
<% if User.find(user.to_i).nil? %>
<%= user %>
<% else %>
<%=User.find(user.to_i).send(RolloutAdmin.user_name_attribute) %>
<% end %>
<% } %>
<% else %>
- No members
<% end %>
- Groups
-
<% if feature.groups.count > 0 %>
<% feature.groups.each {|group| %>
- <%=group%>
<% } %>
<% else %>
- No members
<% end %>
- IPs
-
<% if feature.ips.count > 0 %>
<% feature.ips.each {|ip| %>
- <%=ip%>
<% } %>
<% else %>
- No members
<% end %>
- Percentage
-
<%=feature.percentage%>%
<%= link_to "activate global", "/rollout_admin/activate?object_type=feature&object="+ feature.name.to_s, :method => :post, :class => "btn"%>
<%= link_to "deactivate global", "/rollout_admin/deactivate?object_type=feature&object="+ feature.name.to_s, :method => :post, :class => "btn"%>