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
iv
gitlab-ce
Commits
b2e673e5
Commit
b2e673e5
authored
Mar 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed global JS var
parent
38ea9c6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
app/assets/javascripts/issue.js.coffee
app/assets/javascripts/issue.js.coffee
+5
-4
app/views/shared/issuable/_participants.html.haml
app/views/shared/issuable/_participants.html.haml
+2
-2
No files found.
app/assets/javascripts/issue.js.coffee
View file @
b2e673e5
...
@@ -87,13 +87,14 @@ class @Issue
...
@@ -87,13 +87,14 @@ class @Issue
data
:
patchData
data
:
patchData
initParticipants
:
->
initParticipants
:
->
_this
=
@
$
(
document
).
on
"click"
,
".js-participants-more"
,
@
toggleHiddenParticipants
$
(
document
).
on
"click"
,
".js-participants-more"
,
@
toggleHiddenParticipants
# hide any participants from number 6
$
(
".js-participants-author"
).
each
(
i
)
->
$
(
".js-participants-author"
).
each
(
i
)
->
if
i
>=
PARTICIPANTS_ROW
if
i
>=
_this
.
PARTICIPANTS_ROW_COUNT
$
(
@
)
$
(
@
)
.
addClass
"js-participants-hidden hidden"
.
addClass
"js-participants-hidden"
.
hide
()
toggleHiddenParticipants
:
(
e
)
->
toggleHiddenParticipants
:
(
e
)
->
e
.
preventDefault
()
e
.
preventDefault
()
...
@@ -107,4 +108,4 @@ class @Issue
...
@@ -107,4 +108,4 @@ class @Issue
else
else
$
(
this
).
text
(
originalText
)
$
(
this
).
text
(
originalText
)
$
(
".js-participants-hidden"
).
toggle
Class
"hidden"
$
(
".js-participants-hidden"
).
toggle
()
app/views/shared/issuable/_participants.html.haml
View file @
b2e673e5
-
participants_row
=
7
-
participants_row
=
7
-
participants_size
=
participants
.
size
-
participants_size
=
participants
.
size
-
participants_extra
=
participants_size
-
participants_row
-
participants_extra
=
participants_size
-
participants_row
:javascript
var
PARTICIPANTS_ROW
=
#{
participants_row
}
;
.block.participants
.block.participants
.sidebar-collapsed-icon
.sidebar-collapsed-icon
=
icon
(
'users'
)
=
icon
(
'users'
)
...
@@ -18,3 +16,5 @@
...
@@ -18,3 +16,5 @@
%div
.participants-more
%div
.participants-more
%a
.js-participants-more
{
href:
"#"
,
data:
{
original_text:
"+ #{participants_size - 7} more"
,
less_text:
"- show less"
}}
%a
.js-participants-more
{
href:
"#"
,
data:
{
original_text:
"+ #{participants_size - 7} more"
,
less_text:
"- show less"
}}
+
#{
participants_extra
}
more
+
#{
participants_extra
}
more
:javascript
Issue
.
prototype
.
PARTICIPANTS_ROW_COUNT
=
#{
participants_row
}
;
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