trace bits and a georss class
This commit is contained in:
parent
6559db51df
commit
dd1f94e341
3 changed files with 89 additions and 1 deletions
|
@ -38,6 +38,12 @@ class TraceController < ApplicationController
|
|||
redirect_to :action => 'mine'
|
||||
end
|
||||
|
||||
def georss
|
||||
traces = Trace.find(:all, :conditions => ['public = true'], :order => 'timestamp DESC', :limit => 20)
|
||||
|
||||
|
||||
end
|
||||
|
||||
def picture
|
||||
trace = Trace.find(params[:id])
|
||||
send_data(trace.large_picture, :filename => "#{trace.id}.gif", :type => 'image/png', :disposition => 'inline') if trace.public
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</a>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="<%= cl %>"><%= link_to trace.name, {:controller => 'trace', :action => 'onetrace', :id => trace.id} %>
|
||||
<td class="<%= cl %>"><%= link_to trace.name, {:controller => 'trace', :action => 'view', :id => trace.id} %>
|
||||
<span class="gpxsummary" title="<%= trace.timestamp %>"> ...
|
||||
<% if trace.inserted %>
|
||||
(<%= trace.size %> points)
|
||||
|
@ -18,5 +18,11 @@
|
|||
<%= trace.description %>
|
||||
<br />
|
||||
by <%= link_to trace.user.display_name, {:controller => 'trace', :action => 'list', :user => trace.user.display_name} %>
|
||||
in
|
||||
<% if trace.tags %>
|
||||
<% trace.tags.each do |tag| %>
|
||||
<%= link_to tag.tag, :controller => 'trace', :action => 'bytag', :tag => tag.tag %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue