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
4b333fd0
Commit
4b333fd0
authored
Mar 20, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] update model
parent
48c253ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
21 deletions
+14
-21
app/assets/javascripts/vue_sidebar_assignees/components/multiple_assignees.js
...ts/vue_sidebar_assignees/components/multiple_assignees.js
+3
-3
app/assets/javascripts/vue_sidebar_assignees/components/single_assignee.js
...ripts/vue_sidebar_assignees/components/single_assignee.js
+1
-1
app/assets/javascripts/vue_sidebar_assignees/stores/sidebar_assignees_store.js
...s/vue_sidebar_assignees/stores/sidebar_assignees_store.js
+10
-17
No files found.
app/assets/javascripts/vue_sidebar_assignees/components/multiple_assignees.js
View file @
4b333fd0
...
...
@@ -21,7 +21,7 @@ export default {
return
function
()
{
this
.
showMore
=
!
this
.
showMore
;
}.
bind
(
this
);
}
}
,
},
components
:
{
'
show-more-assignees
'
:
ShowMoreAssignees
,
...
...
@@ -31,8 +31,8 @@ export default {
<div class="hide-collapsed">
<div class="user-list">
<div class="user-item" v-for="(user, index) in assignees.users" v-if="showMore || (index < 5 && !showMore)">
<a class="user-link has-tooltip" data-placement="bottom" title="" :href="
user.url
" :data-title="user.name">
<img width="32" class="avatar avatar-inline s32 " alt="" :src="user.avatar
_u
rl">
<a class="user-link has-tooltip" data-placement="bottom" title="" :href="
'/' + user.username
" :data-title="user.name">
<img width="32" class="avatar avatar-inline s32 " alt="" :src="user.avatar
U
rl">
</a>
</div>
</div>
...
...
app/assets/javascripts/vue_sidebar_assignees/components/single_assignee.js
View file @
4b333fd0
...
...
@@ -6,7 +6,7 @@ export default {
template
:
`
<div class="value hide-collapsed">
<a class="author_link bold" :href="user.url">
<img width="32" class="avatar avatar-inline s32" alt="" :src="user.avatar
_u
rl">
<img width="32" class="avatar avatar-inline s32" alt="" :src="user.avatar
U
rl">
<span class="author">{{user.name}}</span>
<span class="username">@{{user.username}}</span>
</a>
...
...
app/assets/javascripts/vue_sidebar_assignees/stores/sidebar_assignees_store.js
View file @
4b333fd0
export
default
class
SidebarAssigneesStore
{
constructor
()
{
this
.
users
=
[{
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
avatarUrl
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
name
:
'
test
'
,
username
:
'
username
'
,
},
{
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
avatarUrl
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
name
:
'
test
'
,
username
:
'
username1
'
,
},
{
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
avatarUrl
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
name
:
'
test
'
,
username
:
'
username2
'
,
},
{
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
avatarUrl
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
name
:
'
test
'
,
username
:
'
username3
'
,
},
{
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
avatarUrl
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
name
:
'
test
'
,
username
:
'
username4
'
,
},
{
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
avatarUrl
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
name
:
'
test
'
,
username
:
'
username5
'
,
}];
this
.
users
=
[];
}
addUser
()
{
addUser
(
name
,
username
,
avatarUrl
)
{
this
.
users
.
push
({
avatar_url
:
'
http://www.gravatar.com/avatar/7e65550957227bd38fe2d7fbc6fd2f7b?s=80&d=identicon
'
,
url
:
'
/user4
'
,
name
:
'
test
'
,
username
:
'
username6
'
,
avatarUrl
,
name
,
username
,
});
}
...
...
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