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:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r22:b40095435f1f - - 3 files changed: 4 inserted, 4 deleted
@@ -1,10 +1,10 | |||
|
1 | 1 | # Methods added to this helper will be available to all templates in the application. |
|
2 | 2 | module ApplicationHelper |
|
3 | 3 | |
|
4 |
- def user_ |
|
|
4 | + def user_header | |
|
5 | 5 | options = '' |
|
6 | 6 | user = User.find(session[:user_id]) |
|
7 | 7 | if user.admin? |
|
8 | 8 | options = options + ' ' + |
|
9 | 9 | (link_to_unless_current '[Problem admin]', |
|
10 | 10 | :controller => 'problems', :action => 'index') |
@@ -7,14 +7,14 | |||
|
7 | 7 | <title>Grader!</title> |
|
8 | 8 | <%= stylesheet_link_tag 'application' %> |
|
9 | 9 | <%= javascript_include_tag :defaults %> |
|
10 | 10 | </head> |
|
11 | 11 | <body> |
|
12 | 12 | |
|
13 |
- <div class="user |
|
|
14 |
- <%= user_ |
|
|
13 | + <div class="userbar"> | |
|
14 | + <%= user_header %> | |
|
15 | 15 | </div> |
|
16 | 16 | |
|
17 | 17 | <p style="color: green"><%= flash[:notice] %></p> |
|
18 | 18 | |
|
19 | 19 | <%= yield %> |
|
20 | 20 |
You need to be logged in to leave comments.
Login now