X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d07277efba0c0069705bbefa68f2624a9c6c9ff0..c1f1b99cdcc9924877e1b35272b58e5d8cc5c9fc:/app/views/trace/mine.rhtml?ds=sidebyside diff --git a/app/views/trace/mine.rhtml b/app/views/trace/mine.rhtml index c18615f47..661f73c52 100644 --- a/app/views/trace/mine.rhtml +++ b/app/views/trace/mine.rhtml @@ -1,11 +1,20 @@

Your GPS Traces

-
+<% if @tag %> + Traces filtered by tag <%= @tag %> +

+<% end %> +<%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %> +<% if @tag %> + | <%= link_to 'See all your traces', {:controller => 'trace', :action => 'mine'} %> +<% end %> -<%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %>

+
+
<% if @user %> -<%= start_form_tag({:action => 'create'}, :multipart => true) %> + +<% form_tag({:action => 'create'}, :multipart => true) do %>
@@ -17,20 +26,18 @@
upload GPX file:<%= file_field('trace', 'gpx_file', {:size => 50, :maxlength => 255}) %>
-
- -<%= end_form_tag %> +<% end %> -<%= render (:partial => 'trace_paging_nav') %> +<%= render :partial => 'trace_paging_nav' %> - <%= render (:partial => 'trace', :collection => @traces) unless @traces.nil? %> + <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
-<%= render (:partial => 'trace_paging_nav') %> +<%= render :partial => 'trace_paging_nav' %> <% end %> -<%= render (:partial => 'trace_optionals') %> +<%= render :partial => 'trace_optionals' %>