]> git.openstreetmap.org Git - rails.git/blob - app/views/trace/list.rhtml
User form_tag/end instead of start_form_tag/end_form_tag to avoid
[rails.git] / app / views / trace / list.rhtml
1 <h1>Public GPS Traces</h1>
2
3 <% if @tag %>
4  Traces filtered by tag <b><%= @tag %></b>
5  <br/><br/>
6 <% end %>
7 <span class="rsssmall"><a href="<%= url_for :controller => 'trace', :action => 'georss' %>"><img src="/images/RSS.gif" border="0"></a></span> | 
8 <% if @user %>
9   <%= link_to 'See just your traces, or upload a trace', {:controller => 'trace', :action => 'mine'} %>
10 <% else %>
11   <%= link_to 'login', {:controller => 'user', :action => 'login', :next_controller => 'traces', :next_action => 'mine'} %> to upload a trace or see yours alone
12 <% end %>
13 <% if @tag %>
14  | <%= link_to 'See all traces', {:controller => 'trace', :action => 'list'} %>
15 <% end %>
16
17
18 <br />
19 <br />
20
21 <%= render (:partial => 'trace_paging_nav') %>
22
23 <table id="keyvalue" cellpadding="3">
24   <tr>
25     <th></th>
26     <th></th>
27   </tr>
28   <%= render :partial => 'trace', :collection => @traces %>
29 </table>
30 <%= render (:partial => 'trace_paging_nav') %>
31
32 <%= render (:partial => 'trace_optionals') %>