diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2018-04-26 01:30:24 +0100 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2019-02-25 11:25:44 -0500 |
commit | 5eb67f34fea7ea686541381b40cf563232d735d4 (patch) | |
tree | 7a2b622b509befeecbe923472caf0869e8486bca | |
parent | 0a70282185e0ad0c2121f17a190932e1064a479b (diff) |
add recent issues link to top navbar
-rw-r--r-- | config/routes.rb | 2 | ||||
-rw-r--r-- | lib/redmine.rb | 1 | ||||
-rw-r--r-- | public/themes/parabola/stylesheets/application.css | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 034498208..05b758c2f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -71,7 +71,7 @@ Rails.application.routes.draw do match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post] match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post] - match 'my/page', :controller => 'my', :action => 'page', :via => :get + match 'my/page', :controller => 'my', :action => 'page', :via => :get, :as => 'my_page' post 'my/page', :to => 'my#update_page' match 'my', :controller => 'my', :action => 'index', :via => :get # Redirects to my/page get 'my/api_key', :to => 'my#show_api_key', :as => 'my_api_key' diff --git a/lib/redmine.rb b/lib/redmine.rb index b9c1b936b..df5dcfa27 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -188,6 +188,7 @@ end Redmine::MenuManager.map :top_menu do |menu| menu.push :home, :home_path menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? } + menu.push :recent_issues, { :controller => 'issues', :action => 'index' } menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural, :if => Proc.new { User.current.is_vip? } menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true menu.push :help, Redmine::Info.help_url, :if => Proc.new { User.current.is_vip? }, :last => true diff --git a/public/themes/parabola/stylesheets/application.css b/public/themes/parabola/stylesheets/application.css index 41c7d02f0..006ad81d8 100644 --- a/public/themes/parabola/stylesheets/application.css +++ b/public/themes/parabola/stylesheets/application.css @@ -37,7 +37,8 @@ h2, h3, h4, .wiki h1, .wiki h2, .wiki h3 { border-bottom: 0px; color:#606060; fo h2, .wiki h1 { letter-spacing:-1px; } h4 { border-bottom: dotted 1px #c0c0c0; } -#top-menu a.home, #top-menu a.my-page, #top-menu a.projects, #top-menu a.administration, #top-menu a.help { +#top-menu a.home, #top-menu a.my-page, #top-menu a.recent-issues, +#top-menu a.projects, #top-menu a.administration, #top-menu a.help { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; @@ -47,6 +48,7 @@ h4 { border-bottom: dotted 1px #c0c0c0; } #top-menu a.home { background-image: url(../images/home.png); } #top-menu a.my-page { background-image: url(../../../images/user.png); } +#top-menu a.recent-issues { background-image: url(../../../images/feed.png); } #top-menu a.projects { background-image: url(../../../images/projects.png); } #top-menu a.administration { background-image: url(../images/wrench.png); } #top-menu a.help { background-image: url(../../../images/help.png); } |