Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
31ce8e7b
Commit
31ce8e7b
authored
Nov 18, 2011
by
Enrique García
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved wiki to the begining of the project menu
parent
01580a25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
redmine.rb
lib/redmine.rb
+2
-2
No files found.
lib/redmine.rb
View file @
31ce8e7b
...
...
@@ -185,6 +185,8 @@ end
Redmine
::
MenuManager
.
map
:project_menu
do
|
menu
|
menu
.
push
:overview
,
{
:controller
=>
'projects'
,
:action
=>
'show'
}
menu
.
push
:wiki
,
{
:controller
=>
'wiki'
,
:action
=>
'show'
,
:id
=>
nil
},
:param
=>
:project_id
,
:if
=>
Proc
.
new
{
|
p
|
p
.
wiki
&&
!
p
.
wiki
.
new_record?
}
menu
.
push
:activity
,
{
:controller
=>
'activities'
,
:action
=>
'index'
}
menu
.
push
:roadmap
,
{
:controller
=>
'versions'
,
:action
=>
'index'
},
:param
=>
:project_id
,
:if
=>
Proc
.
new
{
|
p
|
p
.
shared_versions
.
any?
}
...
...
@@ -195,8 +197,6 @@ Redmine::MenuManager.map :project_menu do |menu|
menu
.
push
:calendar
,
{
:controller
=>
'calendars'
,
:action
=>
'show'
},
:param
=>
:project_id
,
:caption
=>
:label_calendar
menu
.
push
:news
,
{
:controller
=>
'news'
,
:action
=>
'index'
},
:param
=>
:project_id
,
:caption
=>
:label_news_plural
menu
.
push
:documents
,
{
:controller
=>
'documents'
,
:action
=>
'index'
},
:param
=>
:project_id
,
:caption
=>
:label_document_plural
menu
.
push
:wiki
,
{
:controller
=>
'wiki'
,
:action
=>
'show'
,
:id
=>
nil
},
:param
=>
:project_id
,
:if
=>
Proc
.
new
{
|
p
|
p
.
wiki
&&
!
p
.
wiki
.
new_record?
}
menu
.
push
:boards
,
{
:controller
=>
'boards'
,
:action
=>
'index'
,
:id
=>
nil
},
:param
=>
:project_id
,
:if
=>
Proc
.
new
{
|
p
|
p
.
boards
.
any?
},
:caption
=>
:label_board_plural
menu
.
push
:files
,
{
:controller
=>
'files'
,
:action
=>
'index'
},
:caption
=>
:label_file_plural
,
:param
=>
:project_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment