##// END OF EJS Templates
Themes:...
Jean-Philippe Lang -
r909:0634591b3db0
parent child
Show More
@@ -0,0 +1,39
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); }
@@ -22,18 +22,18
22 <div id="account">
22 <div id="account">
23 <% if User.current.logged? %>
23 <% if User.current.logged? %>
24 <%=l(:label_logged_as)%> <%= User.current.login %> -
24 <%=l(:label_logged_as)%> <%= User.current.login %> -
25 <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' } %>
25 <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %>
26 <%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' } %>
26 <%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout' %>
27 <% else %>
27 <% else %>
28 <%= link_to l(:label_login), { :controller => 'account', :action => 'login' } %>
28 <%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin' %>
29 <%= link_to(l(:label_register), :controller => 'account',:action => 'register') if Setting.self_registration? %>
29 <%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %>
30 <% end %>
30 <% end %>
31 </div>
31 </div>
32 <%= link_to l(:label_home), home_url %>
32 <%= link_to l(:label_home), home_url, :class => 'home' %>
33 <%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'} if User.current.logged? %>
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' } %>
34 <%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => 'projects' %>
35 <%= link_to l(:label_administration), { :controller => 'admin' } if User.current.admin? %>
35 <%= link_to l(:label_administration), { :controller => 'admin' }, :class => 'admin' if User.current.admin? %>
36 <%= link_to l(:label_help), Redmine::Info.help_url %>
36 <%= link_to l(:label_help), Redmine::Info.help_url, :class => 'help' %>
37 </div>
37 </div>
38
38
39 <div id="header">
39 <div id="header">
@@ -54,7 +54,7 module Redmine
54 private
54 private
55
55
56 def self.scan_themes
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 # A theme should at least override application.css
58 # A theme should at least override application.css
59 File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
59 File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
60 end
60 end
General Comments 0
You need to be logged in to leave comments. Login now