Verified Commit 7de9cac6 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

list archived assignments in volunteer show

parent 12aba8f7
table.table.table-striped.assignments-table
thead
tr
th= t_model(Client)
th= t_attr(:period_start, Assignment)
th= t_attr(:period_end, Assignment)
th= t_attr(:created_by)
tbody
- assignment_logs.each do |assignment|
tr
td
- if policy(Client).show?
= link_to assignment.client, assignment.client
- else
= assignment.client
td= l(assignment.period_start) if assignment.period_start
td= l(assignment.period_end) if assignment.period_end
td
- if policy(User).show? && assignment.creator.profile.present?
= link_to assignment.creator.full_name, profile_path(assignment.creator)
- else
= assignment.creator.full_name
......@@ -175,6 +175,10 @@ h3= t('.availability')
h3#assignments Begleitungen
= render 'assignments/client_volunteer_index', assignments: @volunteer.assignments
- if @volunteer.assignment_logs.any?
h3 Alte Tandems
= render 'assignment_logs/assignment_logs_volunteer_index', assignment_logs: @volunteer.assignment_logs
- if @volunteer.group_assignments.any?
h3#assignments= t('.group_assignments')
= render 'group_assignments/volunteer_group_assignments', group_assignments: @volunteer.group_assignments, editable: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment