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:05:24 -0400
commite8b2cb9df196024fdfb71607282836613909190d (patch)
tree1b45c53f18a38687a6b1447026ba1fa7647bc49a
parent6d4a8e4c2bc427eed5d0b4e503d75454ee607168 (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 06b500120..11ee804e7 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'
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'
post 'my/api_key', :to => 'my#reset_api_key'
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 9c895e1e1..612c34c01 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -190,6 +190,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); }