index.html.slim 899 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
14
        th= t_attr(:creator)
        th= t_attr(:semester)
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
15
        th Missions
16
17
18
19
20
21
22
23
        th= t_attr(:created_at)

    tbody
      - @spvs.each do |spv|
        tr
          td.index-action-cell.hidden-print
            = link_to t_action(:show), spv
            = link_to t_action(:edit), edit_semester_process_volunteer_path(spv)
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
24
          td= link_to_if policy(Volunteer).edit?, spv.volunteer.contact.full_name, edit_volunteer_path(spv.volunteer)
25
26
          td= spv.creator
          td= spv.semester_t
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
27
28
29

          td= spv.missions.each do |m|
            = link_to m.to_label, m.id.to_s, target: '_blank'
30
31
32
33
34
          td= l(spv.created_at)

= bootstrap_paginate(@spvs)

= render 'index_nav'