]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_navigation.html.erb
b7cc19ecfeaee5ae5c6bb9416c408c73c98d1b2a
[rails.git] / app / views / user_blocks / _navigation.html.erb
1 <ul class="nav nav-tabs">
2   <li class="nav-item">
3     <%= link_to t(".all_blocks"),
4                 user_blocks_path,
5                 :class => ["nav-link", { :active => action_name == "index" }] %>
6   </li>
7   <% if current_user&.blocks&.exists? %>
8     <li class="nav-item">
9       <%= link_to t(".blocks_on_me"),
10                   user_blocks_on_path(current_user),
11                   :class => ["nav-link", { :active => action_name == "blocks_on" && current_user == @user }] %>
12     </li>
13   <% end %>
14   <% if current_user&.blocks_created&.exists? %>
15     <li class="nav-item">
16       <%= link_to t(".blocks_by_me"),
17                   user_blocks_by_path(current_user),
18                   :class => ["nav-link", { :active => action_name == "blocks_by" && current_user == @user }] %>
19     </li>
20   <% end %>
21 </ul>