# HG changeset patch # User jittat # Date 2008-02-08 12:26:56 # Node ID b40095435f1fc52b5c7928ba9d4598ec97ebcbfc # Parent e66aa2c506e7f5afdb5d2916376f210e55e5f1db small changes, layouts git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@46 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,7 +1,7 @@ # Methods added to this helper will be available to all templates in the application. module ApplicationHelper - def user_options + def user_header options = '' user = User.find(session[:user_id]) if user.admin? diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -10,8 +10,8 @@ -
-<%= user_options %> +
+<%= user_header %>

<%= flash[:notice] %>

diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -14,7 +14,7 @@ margin-bottom: 2px } -div.usermenu { +div.userbar { border-top: thin solid grey; border-bottom: thin solid grey; text-align: right;