app/views/admin/reports/index.html.erb in spree-0.5.1 vs app/views/admin/reports/index.html.erb in spree-0.6.0

- old
+ new

@@ -1,24 +1,24 @@ <% content_for :head do %> <%= calendar_date_select_includes %> <% end %> -<h1><%= t("Listing reports") %></h1> +<h1><%= t("listing_reports") %></h1> <table> <tr> <td valign="top"> <div id="order-summary"> <table class="admin-report" width="515"> <thead> <tr> - <th><%= t("Name") %></th> - <th><%= t("Description") %></th> + <th><%= t("name") %></th> + <th><%= t("description") %></th> </tr> </thead> <tbody> <% @reports.each do |key, value| %> <tr class="<%= cycle('even', 'odd') %>"> - <td><%= link_to t(value[:name]), :action => key %></td> - <td><%= t(value[:description]) %></td> + <td><%= link_to t(value[:name].downcase.gsub(" ","_")), send("#{key}_admin_reports_url".to_sym) %></td> + <td><%= t(value[:description].downcase.gsub(" ","_")) %></td> </tr> <% end %> </tbody> </table> </div>