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
Léo-Paul Géneau
gitlab-ce
Commits
9b797137
Commit
9b797137
authored
Feb 02, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of mr_widget_author.vue EE changes
parent
54a575f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_author.vue
.../vue_merge_request_widget/components/mr_widget_author.vue
+21
-1
No files found.
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_author.vue
View file @
9b797137
<
script
>
<
script
>
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
export
default
{
export
default
{
name
:
'
MRWidgetAuthor
'
,
name
:
'
MRWidgetAuthor
'
,
directives
:
{
tooltip
,
},
props
:
{
props
:
{
author
:
{
author
:
{
type
:
Object
,
type
:
Object
,
required
:
true
,
required
:
true
,
},
},
showAuthorName
:
{
type
:
Boolean
,
required
:
false
,
default
:
true
,
},
showAuthorTooltip
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
},
},
computed
:
{
computed
:
{
authorUrl
()
{
authorUrl
()
{
...
@@ -21,12 +36,17 @@
...
@@ -21,12 +36,17 @@
<a
<a
:href=
"authorUrl"
:href=
"authorUrl"
class=
"author-link inline"
class=
"author-link inline"
:v-tooltip=
"showAuthorTooltip"
:title=
"author.name"
>
>
<img
<img
:src=
"avatarUrl"
:src=
"avatarUrl"
class=
"avatar avatar-inline s16"
class=
"avatar avatar-inline s16"
/>
/>
<span
class=
"author"
>
<span
class=
"author"
v-if=
"showAuthorName"
>
{{
author
.
name
}}
{{
author
.
name
}}
</span>
</span>
</a>
</a>
...
...
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