1 <ul class="nav nav-pills">
2 <% [['Table', collections_path],
3 ['Graph', collections_graph_path],
4 ['Inspect', @object ? collection_path(@object.uuid) : '#']].
5 each do |name, path| %>
6 <li class="<%= 'active' if request.fullpath == path %> <%= 'disabled' if path == '#' %>"><%= link_to name, path %></li>