Sha256: 61ba8b3b2f7bf34e316fe6167d897e947b55bbd698d8156e64cc5c5a3d5b8ca5

Contents?: true

Size: 681 Bytes

Versions: 5

Compression:

Stored size: 681 Bytes

Contents

<li class="nav-header"><%= _('Location') %></li>
<li class="dropdown-submenu">
  <% location_count = Location.my_locations.count %>
  <%= location_dropdown location_count %>
  <ul class="dropdown-menu">
    <% if User.current.admin? %>
      <li><%= link_to(_('Any Location'), clear_locations_path) %></li>
      <%= content_tag(:li, "", :class=>"divider") %>
    <% end %>
    <% Location.my_locations.each do |location| %>
      <li><%= link_to(location.name, select_location_path(location)) %></li>
    <% end %>
  </ul>
</li>
<% if User.current.allowed_to?(:create_locations) %>
  <li><%= link_to _("Manage Locations"), locations_path, :class=> "manage-menu" %></li>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/home/_location_dropdown.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/home/_location_dropdown.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/home/_location_dropdown.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/home/_location_dropdown.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/home/_location_dropdown.html.erb