Last active
May 17, 2017 05:21
-
-
Save kopylovvlad/3e8798e54b8fed45afb23331c7e5eea3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/views/statistics/weekly.html.slim | |
table.table | |
thead | |
tr | |
td Day | |
td Pizza count | |
td Orders sum | |
td Users | |
td Pizza | |
tbody | |
- @weekly.each do |daily_statistic| | |
tr | |
td= daily_statistic.day | |
td= daily_statistic.pizza_count | |
td= "$#{daily_statistic.orders_sum}" | |
td | |
- daily_statistic.user_item.each do |user_item| | |
= link_to "#{user_item[:user].email} (#{user_item[:sum]})", admin_user_path(user_item[:user]) | |
br | |
td | |
- daily_statistic.pizza_item.each do |pizza_item| | |
= link_to "#{pizza_item[:pizza].title} (#{pizza_item[:count]})", admin_tem_path(pizza_item[:pizza]) | |
br |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment