Remove schulden for admins as this has been moved to a seperate application
This commit is contained in:
parent
28ec934e0a
commit
b7c292275b
3 changed files with 0 additions and 16 deletions
|
@ -1,14 +0,0 @@
|
||||||
require 'csv'
|
|
||||||
class AdminsController < ApplicationController
|
|
||||||
|
|
||||||
def schulden
|
|
||||||
authorize! :schulden, :admins
|
|
||||||
@users = User.members
|
|
||||||
respond_to do |format|
|
|
||||||
format.csv do
|
|
||||||
headers['Content-Disposition'] = "attachment; filename=\"zeus-schulden\""
|
|
||||||
headers['Content-Type'] ||= 'text/csv'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -46,7 +46,6 @@
|
||||||
<li><%= link_to "List" , users_path %></li>
|
<li><%= link_to "List" , users_path %></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><%= link_to 'Download schulden', admins_schulden_path(format: :csv) %></li>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Logged in as <%= current_user.nickname %> <b class="caret"></b></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Logged in as <%= current_user.nickname %> <b class="caret"></b></a>
|
||||||
|
|
|
@ -32,6 +32,5 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get 'admins' => 'admins#schulden', as: "admins_schulden"
|
|
||||||
get 'overview' => 'orders#overview', as: "orders"
|
get 'overview' => 'orders#overview', as: "orders"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue