Commit 3ef15cb8 authored by Jiri Strojil's avatar Jiri Strojil
Browse files

Added fields to the semester process volunteers#index

parent d3e393a9
Pipeline #29308 passed with stage
in 52 minutes and 17 seconds
......@@ -27,4 +27,12 @@ module SemesterProcessVolunteerHelper
@semester_process_volunteer.commited_at = nil
end
def render_missions(spv)
html = ""
spv.missions.each do |m|
html += link_to m.to_label, "/#{m.class.name.underscore.pluralize}/#{m.id}/edit", target: '_blank'
html += "<br>"
end
html.html_safe
end
end
......@@ -10,9 +10,11 @@ h1= t_title(:index)
tr
th.hidden-print Aktionen
th= t_attr(:full_name, Volunteer)
th= t_attr(:creator)
th= t_attr(:semester)
th Missions
th= t_attr(:commited_by)
th= t_attr(:commited_at)
th= t_attr(:creator)
th= t_attr(:created_at)
tbody
......@@ -22,11 +24,11 @@ h1= t_title(:index)
= link_to t_action(:show), spv
= link_to t_action(:edit), edit_semester_process_volunteer_path(spv)
td= link_to_if policy(Volunteer).edit?, spv.volunteer.contact.full_name, edit_volunteer_path(spv.volunteer)
td= spv.creator
td= spv.semester_t
td= spv.missions.each do |m|
= link_to m.to_label, m.id.to_s, target: '_blank'
td= render_missions(spv)
td= spv.commited_by
td= spv.commited_at && l(spv.commited_at)
td= spv.creator
td= l(spv.created_at)
= bootstrap_paginate(@spvs)
......
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