expose reports

This commit is contained in:
r888888888
2013-07-10 17:00:09 -07:00
parent 61c287532c
commit bf43214580
2 changed files with 4 additions and 8 deletions

View File

@@ -1,6 +1,4 @@
class ReportsController < ApplicationController
before_filter :janitor_only
def user_promotions
@report = Reports::UserPromotions.new
end

View File

@@ -55,12 +55,10 @@
<li><%= link_to("Listing", pools_path) %></li>
<li><%= link_to("Changes", pool_versions_path) %></li>
</ul>
<% if CurrentUser.user.is_janitor? %>
<ul>
<li><h1>Reports</h1></li>
<li><%= link_to("User Promotions", reports_user_promotions_path) %></li>
</ul>
<% end %>
<ul>
<li><h1>Reports</h1></li>
<li><%= link_to("User Promotions", reports_user_promotions_path) %></li>
</ul>
</section>
<section>
<ul>