BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
35cd92a6
Commit
35cd92a6
authored
Aug 31, 2017
by
Filipa Lacerda
Committed by
Phil Hughes
Aug 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds a tooltip to the branch name
parent
aacc6110
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
commit.vue
app/assets/javascripts/vue_shared/components/commit.vue
+15
-5
36917-branch-tooltip.yml
changelogs/unreleased/36917-branch-tooltip.yml
+5
-0
No files found.
app/assets/javascripts/vue_shared/components/commit.vue
View file @
35cd92a6
<
script
>
<
script
>
import
commitIconSvg
from
'icons/_icon_commit.svg'
;
import
commitIconSvg
from
'icons/_icon_commit.svg'
;
import
userAvatarLink
from
'./user_avatar/user_avatar_link.vue'
;
import
userAvatarLink
from
'./user_avatar/user_avatar_link.vue'
;
import
tooltip
from
'../directives/tooltip'
;
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -100,17 +101,22 @@
...
@@ -100,17 +101,22 @@
this
.
author
.
username
?
`
${
this
.
author
.
username
}
's avatar`
:
null
;
this
.
author
.
username
?
`
${
this
.
author
.
username
}
's avatar`
:
null
;
},
},
},
},
d
ata
()
{
d
irectives
:
{
return
{
commitIconSvg
};
tooltip
,
},
},
components
:
{
components
:
{
userAvatarLink
,
userAvatarLink
,
},
},
created
()
{
this
.
commitIconSvg
=
commitIconSvg
;
},
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"branch-commit"
>
<div
class=
"branch-commit"
>
<div
v-if=
"hasCommitRef"
class=
"icon-container hidden-xs"
>
<div
v-if=
"hasCommitRef"
class=
"icon-container hidden-xs"
>
<i
<i
v-if=
"tag"
v-if=
"tag"
class=
"fa fa-tag"
class=
"fa fa-tag"
...
@@ -126,7 +132,10 @@
...
@@ -126,7 +132,10 @@
<a
<a
v-if=
"hasCommitRef"
v-if=
"hasCommitRef"
class=
"ref-name hidden-xs"
class=
"ref-name hidden-xs"
:href=
"commitRef.ref_url"
>
:href=
"commitRef.ref_url"
v-tooltip
data-container=
"body"
:title=
"commitRef.name"
>
{{
commitRef
.
name
}}
{{
commitRef
.
name
}}
</a>
</a>
...
@@ -153,7 +162,8 @@
...
@@ -153,7 +162,8 @@
:img-alt=
"userImageAltDescription"
:img-alt=
"userImageAltDescription"
:tooltip-text=
"author.username"
:tooltip-text=
"author.username"
/>
/>
<a
class=
"commit-row-message"
<a
class=
"commit-row-message"
:href=
"commitUrl"
>
:href=
"commitUrl"
>
{{
title
}}
{{
title
}}
</a>
</a>
...
...
changelogs/unreleased/36917-branch-tooltip.yml
0 → 100644
View file @
35cd92a6
---
title
:
Adds tooltip to the branch name and improves performance
merge_request
:
author
:
type
:
fixed
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