BigW Consortium Gitlab

_participants.html.haml 818 Bytes
Newer Older
Phil Hughes committed
1
- participants_row = 7
Phil Hughes committed
2
- participants_size = participants.size
Phil Hughes committed
3
- participants_extra = participants_size - participants_row
4
.block.participants
5 6
  .sidebar-collapsed-icon
    = icon('users')
7 8
    %span
      = participants.count
9
  .title.hide-collapsed
10
    = pluralize participants.count, "participant"
Phil Hughes committed
11 12 13 14
  .hide-collapsed.participants-list
    - participants.each do |participant|
      .participants-author.js-participants-author
        = link_to_member(@project, participant, name: false, size: 24)
15 16 17 18
  - 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
Phil Hughes committed
19
:javascript
20
  IssuableContext.prototype.PARTICIPANTS_ROW_COUNT = #{participants_row};