1 <% content_for :heading_class, "pb-0" %>
2 <% content_for :heading do %>
4 <nav class="secondary-actions mb-3">
7 <%= t(".description") %>
11 <%= link_to t(".remove_tag_filter", :tag => params[:tag]), { :controller => "traces", :action => "index", :tag => nil } %>
16 <ul class="nav nav-tabs flex-column flex-sm-row">
17 <% if @target_user.blank? %>
18 <!-- public traces -->
20 <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link active" } %>
24 <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link" } %>
27 <% elsif current_user && current_user == @target_user %>
29 <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link" } %>
33 <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link active" } %>
36 <!-- public_traces_from @target_user -->
38 <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link" } %>
40 <% if current_user && current_user != @target_user %>
42 <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link" } %>
46 <%= link_to t(".public_traces_from", :user => @target_user&.display_name), { :action => "mine" }, { :class => "nav-link active" } %>
50 <li class="nav-item ms-auto">
51 <div class="nav-link pe-0">
52 <%= link_to({ :action => :georss, :display_name => @target_user&.display_name, :tag => params[:tag] }, { :class => "btn btn-secondary btn-sm my-n2 align-baseline border-0" }) do %>
53 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class="align-text-bottom">
54 <circle cx="2" cy="14" r="2" fill="white" />
55 <path d="M 8 14 a 6 6 0 0 0 -6 -6 M 14 14 a 12 12 0 0 0 -12 -12" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" />
57 <%= link_to t(".upload_trace"), new_trace_path, :class => "btn btn-secondary btn-sm my-n2 align-baseline border-0" %>
63 <% content_for :auto_discovery_link_tag do %>
64 <%= auto_discovery_link_tag :rss, :action => "georss", :display_name => @target_user&.display_name, :tag => params[:tag] %>
67 <% if @traces.size > 0 %>
68 <%= render "shared/pagination",
69 :newer_key => "traces.trace_paging_nav.newer",
70 :older_key => "traces.trace_paging_nav.older",
71 :newer_id => @newer_traces && @traces.first.id,
72 :older_id => @older_traces && @traces.last.id %>
74 <table id="trace_list" class="table table-borderless table-striped">
80 <%= render "shared/pagination",
81 :newer_key => "traces.trace_paging_nav.newer",
82 :older_key => "traces.trace_paging_nav.older",
83 :newer_id => @newer_traces && @traces.first.id,
84 :older_id => @older_traces && @traces.last.id %>
86 <h2><%= t ".empty_title" %></h2>
87 <p><%= t ".empty_upload_html", :upload_link => link_to(t(".upload_new"), new_trace_path),
88 :wiki_link => link_to(t(".wiki_page"), t(".wiki_page_url")) %></p>