index.html.slim 963 Bytes
Newer Older
1
h1= t_title(:index)
2
3
4
5
6
7
8
9
10
11

= render 'index_nav'

= bootstrap_paginate(@spvs)

.table-responsive
  table.table.table-striped
    thead
      tr
        th.hidden-print Aktionen
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
12
        th= t_attr(:full_name, Volunteer)
13
        th= t_attr(:semester)
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
14
        th Missions
15
16
17
        th= t_attr(:commited_by)
        th= t_attr(:commited_at)
        th= t_attr(:creator)
18
19
20
21
22
23
        th= t_attr(:created_at)

    tbody
      - @spvs.each do |spv|
        tr
          td.index-action-cell.hidden-print
cla's avatar
cla committed
24
            = button_link icon_span(:edit), edit_semester_process_volunteer_path(spv), title: 'Bearbeiten'
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
25
          td= link_to_if policy(Volunteer).edit?, spv.volunteer.contact.full_name, edit_volunteer_path(spv.volunteer)
26
          td= spv.semester_t
27
28
29
30
          td= render_missions(spv)
          td= spv.commited_by
          td= spv.commited_at && l(spv.commited_at)
          td= spv.creator
31
32
33
34
35
          td= l(spv.created_at)

= bootstrap_paginate(@spvs)

= render 'index_nav'