Revision 922
Added by Jean-Philippe Lang over 17 years ago
Themes:
- Fixed: themes are not found when running Apache+fastcgi
- Added 'Classic' theme (inspired from the v0.51 design)
trunk/app/views/layouts/base.rhtml | ||
---|---|---|
22 | 22 |
<div id="account"> |
23 | 23 |
<% if User.current.logged? %> |
24 | 24 |
<%=l(:label_logged_as)%> <%= User.current.login %> - |
25 |
<%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' } %> |
|
26 |
<%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' } %> |
|
25 |
<%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %>
|
|
26 |
<%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout' %>
|
|
27 | 27 |
<% else %> |
28 |
<%= link_to l(:label_login), { :controller => 'account', :action => 'login' } %> |
|
29 |
<%= link_to(l(:label_register), :controller => 'account',:action => 'register') if Setting.self_registration? %>
|
|
28 |
<%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin' %>
|
|
29 |
<%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %>
|
|
30 | 30 |
<% end %> |
31 | 31 |
</div> |
32 |
<%= link_to l(:label_home), home_url %> |
|
33 |
<%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'} if User.current.logged? %> |
|
34 |
<%= link_to l(:label_project_plural), { :controller => 'projects' } %> |
|
35 |
<%= link_to l(:label_administration), { :controller => 'admin' } if User.current.admin? %> |
|
36 |
<%= link_to l(:label_help), Redmine::Info.help_url %> |
|
32 |
<%= link_to l(:label_home), home_url, :class => 'home' %>
|
|
33 |
<%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => 'mypage' if User.current.logged? %>
|
|
34 |
<%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => 'projects' %>
|
|
35 |
<%= link_to l(:label_administration), { :controller => 'admin' }, :class => 'admin' if User.current.admin? %>
|
|
36 |
<%= link_to l(:label_help), Redmine::Info.help_url, :class => 'help' %>
|
|
37 | 37 |
</div> |
38 | 38 |
|
39 | 39 |
<div id="header"> |
trunk/lib/redmine/themes.rb | ||
---|---|---|
54 | 54 |
private |
55 | 55 |
|
56 | 56 |
def self.scan_themes |
57 |
dirs = Dir.glob('public/themes/*').select do |f|
|
|
57 |
dirs = Dir.glob("#{RAILS_ROOT}/public/themes/*").select do |f|
|
|
58 | 58 |
# A theme should at least override application.css |
59 | 59 |
File.directory?(f) && File.exist?("#{f}/stylesheets/application.css") |
60 | 60 |
end |
trunk/public/themes/classic/stylesheets/application.css | ||
---|---|---|
1 |
@import url(../../../stylesheets/application.css); |
|
2 |
|
|
3 |
body{ color:#303030; background:#e8eaec; } |
|
4 |
|
|
5 |
#top-menu { font-size: 80%; height: 2em; padding-top: 0.5em; background-color: #578bb8; } |
|
6 |
#top-menu a { font-weight: bold; } |
|
7 |
#header { background: #467aa7; height:5.8em; padding: 10px 0 0 0; } |
|
8 |
#header h1 { margin-left: 6px; } |
|
9 |
#quick-search { margin-right: 6px; } |
|
10 |
#main-menu { background-color: #578bb8; left: 0; border-top: 1px solid #fff; width: 100%; } |
|
11 |
#main-menu li { margin: 0; padding: 0; } |
|
12 |
#main-menu li a { background-color: #578bb8; border-right: 1px solid #fff; font-size: 80%; padding: 4px 8px 4px 8px; font-weight: bold; } |
|
13 |
#main-menu li a:hover { background-color: #80b0da; color: #ffffff; } |
|
14 |
|
|
15 |
#footer { background-color: #578bb8; border: 0; color: #fff;} |
|
16 |
#footer a { color: #fff; font-weight: bold; } |
|
17 |
|
|
18 |
#main { font:90% Verdana,Tahoma,Arial,sans-serif; background: #e8eaec; } |
|
19 |
#main a { font-weight: bold; color: #467aa7;} |
|
20 |
#main a:hover { color: #2a5a8a; text-decoration: underline; } |
|
21 |
#content { background: #fff; } |
|
22 |
|
|
23 |
h2, h3, h4, .wiki h1, .wiki h2, .wiki h3 { border-bottom: 0px; color:#606060; font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } |
|
24 |
h2, .wiki h1 { letter-spacing:-1px; } |
|
25 |
h4 { border-bottom: dotted 1px #c0c0c0; } |
|
26 |
|
|
27 |
#top-menu a.home, #top-menu a.mypage, #top-menu a.projects, #top-menu a.admin, #top-menu a.help { |
|
28 |
background-position: 0% 40%; |
|
29 |
background-repeat: no-repeat; |
|
30 |
padding-left: 20px; |
|
31 |
padding-top: 2px; |
|
32 |
padding-bottom: 3px; |
|
33 |
} |
|
34 |
|
|
35 |
#top-menu a.home { background-image: url(../../../images/home.png); } |
|
36 |
#top-menu a.mypage { background-image: url(../../../images/user_page.png); } |
|
37 |
#top-menu a.projects { background-image: url(../../../images/projects.png); } |
|
38 |
#top-menu a.admin { background-image: url(../../../images/admin.png); } |
|
39 |
#top-menu a.help { background-image: url(../../../images/help.png); } |
|
0 | 40 |
Also available in: Unified diff