From: Ira W. Snyder Date: Mon, 26 Nov 2007 05:17:31 +0000 (-0800) Subject: Add System Maintence pages X-Git-Tag: turned-in~31 X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=4c53d252acdb264a54a220d29bfb7962f968e891;hp=32e35e775c982b99b462c43430fa6701654792a8;p=cs356-p2-videostore.git Add System Maintence pages Signed-off-by: Ira W. Snyder --- diff --git a/app/controllers/login_controller.rb b/app/controllers/login_controller.rb index f557c3e..7ca9b85 100644 --- a/app/controllers/login_controller.rb +++ b/app/controllers/login_controller.rb @@ -5,7 +5,11 @@ class LoginController < ApplicationController before_filter :authorize, :only => :index # Only managers can do the following actions - before_filter :manager, :only => [:add_user, :delete_user, :list_users] + before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenence] + + def maintenence + render :action => 'maintenence' + end def add_user @user = User.new(params[:user]) diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml index cb8f1e2..13cf017 100644 --- a/app/views/layouts/admin.rhtml +++ b/app/views/layouts/admin.rhtml @@ -21,6 +21,7 @@

<%= link_to "Checked Out Items", :controller => 'coitem', :action => 'index' %>

<%= link_to "Customer Maintenence", :controller => 'customer', :action => 'index' %>

<%= link_to "Financial Information", :controller => 'purchase', :action => 'index' %>

+

<%= link_to "System Maintenence", :controller => 'login', :action => 'maintenence' %>


<%= link_to "Logout", :controller => 'login', :action => 'logout' %>

diff --git a/app/views/login/maintenence.rhtml b/app/views/login/maintenence.rhtml new file mode 100644 index 0000000..043bb71 --- /dev/null +++ b/app/views/login/maintenence.rhtml @@ -0,0 +1,7 @@ +

System Maintenence

+ +

Actions

+