This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user