Commit d95ffd5c authored by Beat Seeliger's avatar Beat Seeliger
Browse files

Merge branch 'features/display-semester-data' into 'develop'

Features/display semester data

See merge request !828
parents 392a1931 3ef15cb8
Pipeline #29321 passed with stage
in 43 minutes and 56 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
......@@ -9,8 +9,12 @@ h1= t_title(:index)
thead
tr
th.hidden-print Aktionen
th= t_attr(:creator)
th= t_attr(:full_name, Volunteer)
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
......@@ -19,8 +23,12 @@ h1= t_title(:index)
td.index-action-cell.hidden-print
= link_to t_action(:show), spv
= link_to t_action(:edit), edit_semester_process_volunteer_path(spv)
td= spv.creator
td= link_to_if policy(Volunteer).edit?, spv.volunteer.contact.full_name, edit_volunteer_path(spv.volunteer)
td= spv.semester_t
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)
......
Supports Markdown
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