Add review and prep actions
Build and Publish Docker Container / build (push) Has been cancelled

This commit is contained in:
2023-10-04 15:14:19 +01:00
parent 9621f6fa24
commit 6c8d2544e0
4 changed files with 34 additions and 0 deletions
+18
View File
@@ -11,4 +11,22 @@ class LectureController < ApplicationController
redirect_to lecture.recording.recording_url, allow_other_host: true
end
end
def start_preparation
lecture = Lecture.find(params[:id])
Toggl::start_time_entry(
description: "#{lecture.title}: Prep",
project_id: lecture.course.toggl_project,
)
end
def start_review
lecture = Lecture.find(params[:id])
Toggl::start_time_entry(
description: "#{lecture.title}: Review",
project_id: lecture.course.toggl_project,
)
end
end