Sha256: ccb6aab954a9d8ae64c1720a49f1eb206001a32920e4ca47cf0f993ac05f4201
Contents?: true
Size: 983 Bytes
Versions: 2
Compression:
Stored size: 983 Bytes
Contents
<% Puppetclass.classes2hash(puppetclasses).sort.in_groups(2,nil) do |group| %> <div class="col-md-6 classes"> <% group.each do |list| %> <% next if list.nil? %> <ul class="puppetclass_group"> <li><%= puppetclass_group_with_icon(list, selected_puppet_classes) %> <ul id="pc_<%= list.first %>" style="display: none;"> <% for klass in list.last.sort %> <% unless authorized_for(controller: :host_editing, action: :edit_classes) %> <li data-original-title="<%= _('Not authorized to edit classes') %>" rel="twipsy"><%= h klass.name %></li> <% else %> <li id="puppetclass_<%= klass.id %>" class="puppetclass<%= ' hide' if selected_puppet_classes.include?(klass) %>"> <%= link_to_add_puppetclass(klass, resource_type) %> </li> <% end %> <% end %> </ul> </li> </ul> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_puppet-0.0.2 | app/views/foreman_puppet/puppetclasses/_classes.html.erb |
foreman_puppet-0.0.1 | app/views/foreman_puppet/puppetclasses/_classes.html.erb |