summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-04-26 01:30:24 +0100
committerbill-auger <mr.j.spam.me@gmail.com>2018-04-27 11:49:24 -0400
commitdb719f24a49fe781b8c1e02d5209d2143901daef (patch)
tree4e3418e55aebeb45a8ebbdfb995bf36e83d281f3
parent6ec67a69a815ba13bc0af93e9f54070595901d43 (diff)
add recent issues link to top navbar
-rw-r--r--config/routes.rb2
-rw-r--r--lib/redmine.rb1
-rw-r--r--public/themes/parabola/stylesheets/application.css4
3 files changed, 5 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index d28b6afa1..5389d48ed 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -73,7 +73,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 dfc4edf19..c2fcdb47a 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -189,6 +189,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); }