Description:
small changes, layouts git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@46 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r22:b40095435f1f - - 3 files changed: 4 inserted, 4 deleted

@@ -1,7 +1,7
1 # Methods added to this helper will be available to all templates in the application.
1 # Methods added to this helper will be available to all templates in the application.
2 module ApplicationHelper
2 module ApplicationHelper
3
3
4 - def user_options
4 + def user_header
5 options = ''
5 options = ''
6 user = User.find(session[:user_id])
6 user = User.find(session[:user_id])
7 if user.admin?
7 if user.admin?
@@ -10,8 +10,8
10 </head>
10 </head>
11 <body>
11 <body>
12
12
13 - <div class="usermenu">
13 + <div class="userbar">
14 - <%= user_options %>
14 + <%= user_header %>
15 </div>
15 </div>
16
16
17 <p style="color: green"><%= flash[:notice] %></p>
17 <p style="color: green"><%= flash[:notice] %></p>
@@ -14,7 +14,7
14 margin-bottom: 2px
14 margin-bottom: 2px
15 }
15 }
16
16
17 - div.usermenu {
17 + div.userbar {
18 border-top: thin solid grey;
18 border-top: thin solid grey;
19 border-bottom: thin solid grey;
19 border-bottom: thin solid grey;
20 text-align: right;
20 text-align: right;
You need to be logged in to leave comments. Login now