Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
b6d0f285
Commit
b6d0f285
authored
Feb 19, 2013
by
Andrew8xx8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issues link from project page follows on remote bug tracker if it selected now
parent
ab98db73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+12
-0
app/views/layouts/project_resource.html.haml
app/views/layouts/project_resource.html.haml
+4
-3
config/gitlab.yml.example
config/gitlab.yml.example
+6
-0
No files found.
app/helpers/issues_helper.rb
View file @
b6d0f285
...
...
@@ -41,6 +41,18 @@ module IssuesHelper
@project
.
milestones
.
active
.
order
(
"id desc"
).
all
end
def
url_for_project_issues
return
""
if
@project
.
nil?
if
@project
.
used_default_issues_tracker?
project_issues_filter_path
(
@project
)
else
url
=
Settings
[
:issues_tracker
][
@project
.
issues_tracker
][
"project_url"
]
url
.
gsub
(
':project_id'
,
@project
.
id
.
to_s
)
.
gsub
(
':issues_tracker_id'
,
@project
.
issues_tracker_id
.
to_s
)
end
end
def
url_for_issue
(
issue_id
)
return
""
if
@project
.
nil?
...
...
app/views/layouts/project_resource.html.haml
View file @
b6d0f285
...
...
@@ -22,11 +22,12 @@
=
nav_link
(
controller:
%w(graph)
)
do
=
link_to
"Network"
,
project_graph_path
(
@project
,
@ref
||
@repository
.
root_ref
)
-
if
@project
.
issues_enabled
-
if
@project
.
issues_enabled
=
nav_link
(
controller:
%w(issues milestones labels)
)
do
=
link_to
project_issues_filter_path
(
@project
)
do
=
link_to
url_for_project_issues
do
Issues
%span
.count.issue_counter
=
@project
.
issues
.
opened
.
count
-
if
@project
.
used_default_issues_tracker?
%span
.count.issue_counter
=
@project
.
issues
.
opened
.
count
-
if
@project
.
repo_exists?
&&
@project
.
merge_requests_enabled
=
nav_link
(
controller: :merge_requests
)
do
...
...
config/gitlab.yml.example
View file @
b6d0f285
...
...
@@ -41,6 +41,11 @@ production: &base
## External issues trackers
issues_tracker:
redmine:
## If not nil, link 'Issues' on project page will be replaced tp this
## Use placeholders:
## :project_id - Gitlab project identifier
## :issues_tracker_id - Project Name or Id in external issue tracker
project_url: "http://redmine.sample/projects/:issues_tracker_id"
## If not nil, links from /#\d/ entities from commit messages will replaced to this
## Use placeholders:
## :project_id - Gitlab project identifier
...
...
@@ -146,6 +151,7 @@ test:
<<: *base
issues_tracker:
redmine:
project_url: "http://redmine/projects/:issues_tracker_id"
issues_url: "http://redmine/:project_id/:issues_tracker_id/:id"
staging:
...
...
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