Sprankelprachtig aan/afmeldsysteem

index.html.haml 846B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. %h1
  2. = t 'activerecord.models.activity.other'
  3. = link_to new_group_activity_path(@group), class: 'btn btn-default pull-right' do
  4. %i.fa.fa-plus
  5. = t 'activities.new'
  6. - isleader = @group.leaders.include?(current_person) || current_person.is_admin?
  7. %table.table
  8. %thead
  9. %tr
  10. %th
  11. = t 'activerecord.attributes.activities.name'
  12. %th
  13. = t 'activerecord.attributes.activities.start'
  14. %th
  15. P/A/?
  16. - if isleader
  17. %th
  18. %tbody
  19. - @activities.each do |a|
  20. %tr
  21. %td
  22. = link_to a.name, group_activity_path(@group, a)
  23. %td
  24. = l a.start, format: :short
  25. %td
  26. = a.human_state_counts
  27. - if isleader
  28. %td
  29. = link_to edit_group_activity_path(@group, a) do
  30. %i.fa.fa-pencil
  31. = will_paginate @activities