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 } %>
17 <div class="d-flex align-items-end">
18 <div class="flex-grow-1">
19 <ul class="nav nav-tabs">
20 <% if @target_user.blank? %>
21 <!-- public traces -->
23 <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link active" } %>
27 <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link" } %>
30 <% elsif current_user && current_user == @target_user %>
32 <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link" } %>
36 <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link active" } %>
39 <!-- traces_from @target_user -->
41 <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil }, { :class => "nav-link" } %>
43 <% if current_user && current_user != @target_user %>
45 <%= link_to t(".my_traces"), { :action => "mine" }, { :class => "nav-link" } %>
49 <%= link_to t(".traces_from", :user => @target_user&.display_name), { :controller => "traces", :action => "index", :display_name => @target_user&.display_name }, { :class => "nav-link active" } %>
55 <div class="pb-1 ps-1 d-flex flex-wrap flex-shrink-0 gap-1 justify-content-end">
56 <%= link_to({ :action => :georss, :display_name => @target_user&.display_name, :tag => params[:tag] },
57 { :class => "btn btn-secondary btn-sm" }) do %>
58 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class="align-text-bottom">
59 <circle cx="2" cy="14" r="2" fill="white" />
60 <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" />
62 <%= link_to t(".upload_trace"), new_trace_path, :class => "btn btn-secondary btn-sm" %>
67 <% content_for :auto_discovery_link_tag do %>
68 <%= auto_discovery_link_tag :rss, :action => "georss", :display_name => @target_user&.display_name, :tag => params[:tag] %>
71 <% if @traces.size > 0 %>
72 <%= render "shared/pagination",
73 :newer_key => "traces.trace_paging_nav.newer",
74 :older_key => "traces.trace_paging_nav.older",
75 :newer_id => @newer_traces_id,
76 :older_id => @older_traces_id %>
78 <table id="trace_list" class="table table-borderless table-striped">
84 <%= render "shared/pagination",
85 :newer_key => "traces.trace_paging_nav.newer",
86 :older_key => "traces.trace_paging_nav.older",
87 :newer_id => @newer_traces_id,
88 :older_id => @older_traces_id %>
90 <h2><%= t ".empty_title" %></h2>
91 <p><%= t ".empty_upload_html", :upload_link => link_to(t(".upload_new"), new_trace_path),
92 :wiki_link => link_to(t(".wiki_page"), t(".wiki_page_url")) %></p>