- <h1><%= h(@title) %></h1>
- <ul class='secondary-actions clearfix'>
- <li><%= t(".description") %></li>
- <li><%= rss_link_to :action => "georss", :display_name => @display_name, :tag => @tag %></li>
- <li><%= link_to t(".upload_trace"), new_trace_path %></li>
- <% if @tag %>
- <li><%= link_to t(".see_all_traces"), :controller => "traces", :action => "index", :display_name => nil, :tag => nil, :page => nil %></li>
- <li><%= link_to t(".see_my_traces"), :action => "mine", :tag => nil, :page => nil %></li>
- <% else %>
- <% if @display_name %>
- <li><%= link_to t(".see_all_traces"), :controller => "traces", :action => "index", :display_name => nil, :tag => nil, :page => nil %></li>
+ <h1><%= @title %></h1>
+ <nav class="secondary-actions mb-3">
+ <ul>
+ <li>
+ <%= t(".description") %>
+ </li>
+ <% if params[:tag] %>
+ <li>
+ <%= link_to t(".remove_tag_filter", :tag => params[:tag]), { :controller => "traces", :action => "index", :tag => nil } %>
+ </li>
+ <% end %>
+ </ul>
+ </nav>
+ <ul class="nav nav-tabs flex-column flex-sm-row">
+ <% if @target_user.blank? %>
+ <!-- public traces -->
+ <li class="nav-item">
+ <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link active" } %>
+ </li>
+ <% if current_user %>
+ <li class="nav-item">
+ <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link" } %>
+ </li>