expose reports
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
class ReportsController < ApplicationController
|
class ReportsController < ApplicationController
|
||||||
before_filter :janitor_only
|
|
||||||
|
|
||||||
def user_promotions
|
def user_promotions
|
||||||
@report = Reports::UserPromotions.new
|
@report = Reports::UserPromotions.new
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -55,12 +55,10 @@
|
|||||||
<li><%= link_to("Listing", pools_path) %></li>
|
<li><%= link_to("Listing", pools_path) %></li>
|
||||||
<li><%= link_to("Changes", pool_versions_path) %></li>
|
<li><%= link_to("Changes", pool_versions_path) %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<% if CurrentUser.user.is_janitor? %>
|
<ul>
|
||||||
<ul>
|
<li><h1>Reports</h1></li>
|
||||||
<li><h1>Reports</h1></li>
|
<li><%= link_to("User Promotions", reports_user_promotions_path) %></li>
|
||||||
<li><%= link_to("User Promotions", reports_user_promotions_path) %></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
<% end %>
|
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user