expose reports
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
class ReportsController < ApplicationController
|
||||
before_filter :janitor_only
|
||||
|
||||
def user_promotions
|
||||
@report = Reports::UserPromotions.new
|
||||
end
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user