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
iv
gitlab-ce
Commits
3131d060
Commit
3131d060
authored
Sep 08, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7147 from zzet/patch-12
Update markdown reference to external issues
parents
494d15cf
11b707a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
lib/gitlab/markdown.rb
lib/gitlab/markdown.rb
+10
-6
No files found.
lib/gitlab/markdown.rb
View file @
3131d060
...
@@ -192,8 +192,12 @@ module Gitlab
...
@@ -192,8 +192,12 @@ module Gitlab
link_to
(
"#
#{
identifier
}
"
,
url
,
options
)
link_to
(
"#
#{
identifier
}
"
,
url
,
options
)
end
end
elsif
project
.
issues_tracker
==
'jira'
else
reference_jira_issue
(
identifier
,
project
)
config
=
Gitlab
.
config
external_issue_tracker
=
config
.
issues_tracker
[
project
.
issues_tracker
]
if
external_issue_tracker
.
present?
reference_external_issue
(
identifier
,
external_issue_tracker
,
project
)
end
end
end
end
end
...
@@ -229,15 +233,15 @@ module Gitlab
...
@@ -229,15 +233,15 @@ module Gitlab
end
end
end
end
def
reference_
jira_issue
(
identifi
er
,
project
=
@project
)
def
reference_
external_issue
(
identifier
,
issue_track
er
,
project
=
@project
)
url
=
url_for_issue
(
identifier
)
url
=
url_for_issue
(
identifier
,
project
)
title
=
Gitlab
.
config
.
issues_tracker
[
project
.
issues_tracker
][
"title"
]
title
=
issue_tracker
[
'title'
]
options
=
html_options
.
merge
(
options
=
html_options
.
merge
(
title:
"Issue in
#{
title
}
"
,
title:
"Issue in
#{
title
}
"
,
class:
"gfm gfm-issue
#{
html_options
[
:class
]
}
"
class:
"gfm gfm-issue
#{
html_options
[
:class
]
}
"
)
)
link_to
(
"
#{
identifier
}
"
,
url
,
options
)
link_to
(
"#
#
{
identifier
}
"
,
url
,
options
)
end
end
end
end
end
end
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