3 <% if Settings.status != "gpx_offline" %>
4 <% if trace.inserted %>
5 <%= link_to image_tag(trace_icon_path(trace.user, trace), :alt => ""), show_trace_path(trace.user, trace) %>
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, show_trace_path(trace.user, trace) %>
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 bg-<%= badge_class %> text-white"><%= t(".#{trace.visibility}") %></span>
31 <p class="text-muted mb-0">
32 <%= friendly_date_ago(trace.timestamp) %>
33 <%= t ".by" %> <%= link_to trace.user.display_name, trace.user %>
34 <% if !trace.tags.empty? %>
36 <%= safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %>
39 <p class="fst-italic mb-0">
40 <%= trace.description %>
44 <% if trace.inserted? %>
45 <nav class="secondary-actions">
48 <%= link_to t(".view_map"), root_path(:mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}") %>
51 <%= link_to t(".edit_map"), edit_path(:gpx => trace.id) %>