_participants.html.haml 811 字节
Newer Older
P
Phil Hughes 已提交
1
- participants_row = 7
P
Phil Hughes 已提交
2
- participants_size = participants.size
P
Phil Hughes 已提交
3
- participants_extra = participants_size - participants_row
4
.block.participants
5 6
  .sidebar-collapsed-icon
    = icon('users')
J
Jacob Schatz 已提交
7 8
    %span
      = participants.count
9
  .title.hide-collapsed
10
    = pluralize participants.count, "participant"
P
Phil Hughes 已提交
11 12 13 14 15 16 17
  .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
      %div.participants-more
        %a.js-participants-more{href: "#", data: {original_text: "+ #{participants_size - 7} more", less_text: "- show less"}}
P
Phil Hughes 已提交
18
          + #{participants_extra} more
P
Phil Hughes 已提交
19
:javascript
20
  IssuableContext.prototype.PARTICIPANTS_ROW_COUNT = #{participants_row};