lecture-attendance-manager/app/views/admin/course/_actions.html.erb
Joshua Coles 19f6c65442
All checks were successful
Build and Publish Docker Container / build (push) Successful in 5m47s
Always show the redo toggl entries button
2024-02-07 11:16:58 +00:00

18 lines
642 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? %>
<%= link_to(
"Redo Toggl entries",
[namespace, page.resource, :redo_toggl_entries],
class: "button",
) if accessible_action?(page.resource, :redo_toggl_entries) %>