3 <% if Settings.status != "gpx_offline" %>
4 <% if trace.inserted %>
5 <a href="<%= url_for :controller => "traces", :action => "show", :id => trace.id, :display_name => trace.user.display_name %>"><img src="<%= url_for :controller => "traces", :action => "icon", :id => trace.id, :display_name => trace.user.display_name %>" border="0" alt="" /></a>
7 <span class="text-danger"><%= t ".pending" %></span>
12 <ul class="list-inline mb-0">
13 <li class="list-inline-item">
14 <%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %>
17 <% if trace.inserted? %>
18 <li class="list-inline-item">
19 <%= t ".count_points", :count => trace.size %>
23 <li class="list-inline-item">
24 <% badge_class = case trace.visibility
25 when "public", "identifiable" then "success"
28 <span class="badge badge-<%= badge_class %> text-white"><%= t(".#{trace.visibility}") %></span>
31 <p class="text-muted mb-0">
32 <span title="<%= trace.timestamp %>">
33 <%= time_ago_in_words(trace.timestamp, :scope => :"datetime.distance_in_words_ago") %>
35 <%= t ".by" %> <%= link_to trace.user.display_name, user_path(trace.user) %>
36 <% if !trace.tags.empty? %>
38 <%= safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %>
41 <p class="fst-italic mb-0">
42 <%= trace.description %>
46 <% if trace.inserted? %>
47 <nav class="secondary-actions">
50 <%= link_to t(".view_map"), { :controller => "site", :action => "index", :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}" } %>
53 <%= link_to t(".edit_map"), { :controller => "site", :action => "edit", :gpx => trace.id } %>