<%=feature.name%>
<%#=$rollout.get(feature).inspect%>
- Users
-
<% if feature.users.count > 0 %>
<% feature.users.each {|user| %>
-
<%if Object.const_defined?('User') %>
<%=User.find(user.to_i).Name%>
<% else %>
no User model defined
<% 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"%>