2016-03-10 12:09:57 -05:00
|
|
|
- participants_row = 7
|
2016-03-04 12:37:07 -05:00
|
|
|
- participants_size = participants.size
|
2016-03-10 12:09:57 -05:00
|
|
|
- participants_extra = participants_size - participants_row
|
2015-12-10 13:03:48 -05:00
|
|
|
.block.participants
|
2016-01-28 18:26:47 -05:00
|
|
|
.sidebar-collapsed-icon
|
|
|
|
= icon('users')
|
2016-01-28 20:36:48 -05:00
|
|
|
%span
|
|
|
|
= participants.count
|
2016-02-25 05:35:52 -05:00
|
|
|
.title.hide-collapsed
|
2015-12-10 13:03:48 -05:00
|
|
|
= pluralize participants.count, "participant"
|
2016-03-04 12:37:07 -05:00
|
|
|
.hide-collapsed.participants-list
|
|
|
|
- participants.each do |participant|
|
|
|
|
.participants-author.js-participants-author
|
|
|
|
= link_to_member(@project, participant, name: false, size: 24)
|
|
|
|
- if participants_extra > 0
|
2016-12-23 04:37:12 -05:00
|
|
|
.participants-more
|
2016-12-26 05:47:16 -05:00
|
|
|
%a.js-participants-more{ href: "#", data: { original_text: "+ #{participants_size - 7} more", less_text: "- show less" } }
|
2016-03-10 12:09:57 -05:00
|
|
|
+ #{participants_extra} more
|
2016-03-15 07:10:42 -04:00
|
|
|
:javascript
|
2016-03-21 07:31:50 -04:00
|
|
|
IssuableContext.prototype.PARTICIPANTS_ROW_COUNT = #{participants_row};
|