first effort on fixing the journal link bug

parent 7e4e8704
Pipeline #35423 failed with stage
in 39 minutes
......@@ -58,9 +58,11 @@ class JournalsController < ApplicationController
end
def handle_semester_feedback_quote
return unless params[:semester_feedback_id]
return unless params[:semester_feedback]
@semester_feedback = SemesterFeedback.find_by(id: params[:semester_feedback_id])
return unless @semester_feedback
@journal.category = :feedback
@journal.title = "Semester Prozess Feedback vom #{I18n.l(@semester_feedback.created_at.to_date)}: "
@journal.body = @semester_feedback.slice(:goals, :achievements, :future, :comments).map do |key, sfb_quote|
......
......@@ -27,8 +27,9 @@ h1 Semester Prozess
td.index-action-cell.hidden-print
= button_link icon_span(:edit), review_semester_review_semester_url(spv), title: 'Bearbeiten'
= button_link icon_span(:journal), volunteer_journals_path(spv.volunteer), title: 'Journal'
= button_link icon_span(:journal_new), new_volunteer_journal_path(spv.volunteer,
semester_feedback_id: spv.semester_feedbacks.ids), title: 'Neuen Journal eintrag mit Zitat erstellen'
= button_link icon_span(:journal_new),
new_volunteer_journal_path(spv.volunteer, semester_feedback_id: spv.semester_feedbacks.ids, semester_feedback: 1),
title: 'Neuen Journal eintrag mit Zitat erstellen'
= button_link icon_span(:hours), volunteer_hours_path(spv.volunteer), title: 'Stunden'
td
- if spv.commited_at.present?
......
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