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
08b1f6ef
Commit
08b1f6ef
authored
Mar 09, 2020
by
Gilang Gumilar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add anchor to related issues and related merge requests
parent
62945ef8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
app/assets/javascripts/related_merge_requests/components/related_merge_requests.vue
...ated_merge_requests/components/related_merge_requests.vue
+2
-1
app/assets/stylesheets/pages/issues.scss
app/assets/stylesheets/pages/issues.scss
+23
-0
ee/app/assets/javascripts/related_issues/components/related_issues_block.vue
...cripts/related_issues/components/related_issues_block.vue
+2
-1
No files found.
app/assets/javascripts/related_merge_requests/components/related_merge_requests.vue
View file @
08b1f6ef
...
...
@@ -64,10 +64,11 @@ export default {
</
script
>
<
template
>
<div
v-if=
"isFetchingMergeRequests || (!isFetchingMergeRequests && totalCount)"
>
<div
id=
"related-merge-requests"
v-if=
"isFetchingMergeRequests || (!isFetchingMergeRequests && totalCount)"
>
<div
id=
"merge-requests"
class=
"card card-slim mt-3"
>
<div
class=
"card-header"
>
<div
class=
"card-title mt-0 mb-0 h5 merge-requests-title"
>
<a
id=
"user-content-related-merge-requests"
class=
"anchor"
href=
"#related-merge-requests"
aria-hidden=
"true"
></a>
<span
class=
"mr-1"
>
{{
__
(
'
Related merge requests
'
)
}}
</span>
...
...
app/assets/stylesheets/pages/issues.scss
View file @
08b1f6ef
...
...
@@ -284,3 +284,26 @@ ul.related-merge-requests > li {
text-align
:
right
;
}
}
.issue-details
{
.card-title
,
{
position
:
relative
;
a
.anchor
{
left
:
-16px
;
top
:
4px
;
position
:
absolute
;
text-decoration
:
none
;
outline
:
none
;
&
:
:
after
{
content
:
image-url
(
'icon_anchor.svg'
);
visibility
:
hidden
;
}
}
&
:hover
>
a
.anchor
::after
{
visibility
:
visible
;
}
}
}
ee/app/assets/javascripts/related_issues/components/related_issues_block.vue
View file @
08b1f6ef
...
...
@@ -114,10 +114,11 @@ export default {
</
script
>
<
template
>
<div
class=
"related-issues-block"
>
<div
id=
"related-issues"
class=
"related-issues-block"
>
<div
class=
"card card-slim"
>
<div
:class=
"
{ 'panel-empty-heading border-bottom-0': !hasBody }" class="card-header">
<h3
class=
"card-title mt-0 mb-0 h5"
>
<a
id=
"user-content-related-issues"
class=
"anchor"
href=
"#related-issues"
aria-hidden=
"true"
></a>
{{
__
(
'
Linked issues
'
)
}}
<a
v-if=
"hasHelpPath"
:href=
"helpPath"
>
<i
...
...
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