offer top_searches as xml
[opensuse:software-o-o.git] / app / views / main / top_downloads.xml.erb
1 <?xml version="1.0"?>
2 <top_searches>
3 <% top = top_downloads -%>
4 <% top.each do |item| -%>
5   <search_item count="<%= item[:count] %>"><%= item[:query] %></search_item>
6 <% end -%>
7 </top_searches>