"xmlns" => "http://www.topografix.com/GPX/1/1",
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
"xsi:schemaLocation" => "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd") do
- xml << (render(:partial => "note", :collection => @notes) || "")
+ xml << (render(@notes) || "")
end
json.type "FeatureCollection"
json.features(@notes) do |note|
- json.ingest! render(:partial => "note", :object => note)
+ json.ingest! render(note)
end
xml.description t("api.notes.rss.description_area", :min_lat => @min_lat, :min_lon => @min_lon, :max_lat => @max_lat, :max_lon => @max_lon)
xml.link url_for(:controller => "/site", :action => "index", :only_path => false)
- xml << (render(:partial => "note", :collection => @notes) || "")
+ xml << (render(@notes) || "")
end
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << (render(:partial => "note", :collection => @notes) || "")
+ osm << (render(@notes) || "")
end
"xmlns" => "http://www.topografix.com/GPX/1/1",
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
"xsi:schemaLocation" => "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd") do
- xml << render(:partial => "note", :object => @note)
+ xml << render(@note)
end
-json.ingest! render(:partial => "note", :object => @note)
+json.ingest! render(@note)
xml.description t("api.notes.rss.description_item", :id => @note.id)
xml.link url_for(:controller => "/site", :action => "index", :only_path => false)
- xml << render(:partial => "note", :object => @note)
+ xml << render(@note)
end
end
xml.instruct!
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << render(:partial => "note", :object => @note)
+ osm << render(@note)
end
xml.instruct! :xml, :version => "1.0"
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << render(:partial => "user", :collection => @users)
+ osm << render(@users)
end
xml.instruct! :xml, :version => "1.0"
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
- osm << render(:partial => "user", :object => @user)
+ osm << render(@user)
end
+++ /dev/null
-<%= render :partial => "diary_entry", :object => diary_index_entry %>
<% else %>
<h4><%= t ".recent_entries" %></h4>
- <% if @user %>
- <%= render :partial => "diary_entry", :collection => @entries %>
- <% else %>
- <%= render :partial => "diary_index_entry", :collection => @entries %>
- <% end %>
+ <%= render @entries %>
<div class="pagination">
<% if @entries.size < @page_size -%>
</div>
<% end %>
-<%= render :partial => "diary_entry", :object => @entry %>
+<%= render @entry %>
<a id="comments"></a>
<div class='comments'>
+++ /dev/null
-<ul id="redaction_list">
- <%= render :partial => "redaction", :collection => @redactions %>
-</ul>
<% end %>
<% unless @redactions.empty? %>
- <%= render :partial => "redactions" %>
+ <ul id="redaction_list">
+ <%= render @redactions %>
+ </ul>
<% else %>
<p><%= t ".empty" %></p>
<% end %>
</tr>
</thead>
<tbody>
- <%= render :partial => "trace", :collection => @traces unless @traces.nil? %>
+ <%= render @traces unless @traces.nil? %>
</tbody>
</table>
<%= check_box_tag "user_all", "1", false %>
</td>
</tr>
- <%= render :partial => "user", :collection => @users %>
+ <%= render @users %>
</table>
<div id="user_list_actions buttons">