lecture-attendance-manager/app/views/admin/course/_actions.html.erb
Joshua Coles f81005408e
All checks were successful
Build and Publish Docker Container / build (push) Successful in 6m21s
Add functionality to set default live video URL
A new method has been added to the `CoursesController` which allows admins to fill default live video URLs for online lectures that don't have one. This feature is accessible via a button on the courses admin page. The routing for this new action has also been set up.
2024-02-04 15:14:38 +00:00

12 lines
455 B
Plaintext

<%= link_to(
"Renumber lectures",
[namespace, page.resource, :renumber_lectures],
class: "button",
) if accessible_action?(page.resource, :renumber_lectures) %>
<%= link_to(
"Fill in default live video URL",
[namespace, page.resource, :fill_in_default_live_video_url],
class: "button",
) if accessible_action?(page.resource, :fill_in_default_live_video_url) && page.resource.default_live_video_url.present? %>