a start on improving reporting

This commit is contained in:
Kyle Drake 2015-07-13 16:28:15 -07:00
parent bb44965c8e
commit a7ee94b0c7
5 changed files with 61 additions and 14 deletions

View file

@ -5,6 +5,12 @@ get '/admin' do
erb :'admin'
end
get '/admin/reports' do
require_admin
@reports = Report.order(:created_at.desc).all
erb :'admin/reports'
end
get '/admin/email' do
require_admin
erb :'admin/email'