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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
73cae9df
Commit
73cae9df
authored
Jan 29, 2021
by
Tom Quirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init jira issue breadcrumb
parent
ebe29877
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
app/helpers/services_helper.rb
app/helpers/services_helper.rb
+7
-0
ee/app/controllers/projects/integrations/jira/issues_controller.rb
...ntrollers/projects/integrations/jira/issues_controller.rb
+2
-0
ee/app/views/projects/integrations/jira/issues/show.html.haml
...pp/views/projects/integrations/jira/issues/show.html.haml
+2
-1
No files found.
app/helpers/services_helper.rb
View file @
73cae9df
...
...
@@ -128,6 +128,13 @@ module ServicesHelper
!
Gitlab
.
com?
end
def
jira_issue_breadcrumb_link
(
issue_json
)
link_to
''
,
{
class:
'gl-display-flex gl-align-items-center gl-white-space-nowrap'
}
do
icon
=
image_tag
image_path
(
'illustrations/logos/jira.svg'
),
width:
15
,
height:
15
,
class:
'gl-mr-2'
[
icon
,
issue_json
[
:references
][
:relative
]].
join
.
html_safe
end
end
extend
self
private
...
...
ee/app/controllers/projects/integrations/jira/issues_controller.rb
View file @
73cae9df
...
...
@@ -37,6 +37,8 @@ module Projects
end
def
show
@issue
=
issue_json
respond_to
do
|
format
|
format
.
html
format
.
json
do
...
...
ee/app/views/projects/integrations/jira/issues/show.html.haml
View file @
73cae9df
-
add_to_breadcrumbs
_
(
'Jira Issues'
),
project_integrations_jira_issues_path
(
@project
)
-
page_title
'Jira issue'
-
breadcrumb_title
jira_issue_breadcrumb_link
(
@issue
)
-
page_title
@issue
[
:title
]
.js-jira-issues-show-app
{
data:
jira_issues_show_data
}
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