2016-06-02 11:05:42 +05:30
|
|
|
- participants_row = 7
|
|
|
|
- participants_size = participants.size
|
|
|
|
- participants_extra = participants_size - participants_row
|
2015-12-23 02:04:40 +05:30
|
|
|
.block.participants
|
2016-04-02 18:10:28 +05:30
|
|
|
.sidebar-collapsed-icon
|
|
|
|
= icon('users')
|
|
|
|
%span
|
|
|
|
= participants.count
|
|
|
|
.title.hide-collapsed
|
2015-12-23 02:04:40 +05:30
|
|
|
= pluralize participants.count, "participant"
|
2016-06-02 11:05:42 +05:30
|
|
|
.hide-collapsed.participants-list
|
|
|
|
- participants.each do |participant|
|
|
|
|
.participants-author.js-participants-author
|
|
|
|
= link_to_member(@project, participant, name: false, size: 24)
|
2017-08-17 22:00:37 +05:30
|
|
|
- if participants_extra > 0
|
|
|
|
.hide-collapsed.participants-more
|
|
|
|
%a.js-participants-more{ href: "#", data: { original_text: "+ #{participants_size - 7} more", less_text: "- show less" } }
|
|
|
|
+ #{participants_extra} more
|