- add_breadcrumb @video.title
= page_header @video.title do
  - if can?(:manage, @video)
    div.pull-right
      = render partial: 'video_management_buttons', locals: { video: @video }

= div_for(@video) do
  - unless @video.description.blank?
    h3 = t('.description')
    div.well
      = format_html(@video.description)

  table.table.table-bordered.details-table
    tbody
      tr.start_at
        th = t('.start_at')
        td = format_datetime(@video.start_at)

- add_breadcrumb @video.title
= page_header @video.title do
  div.pull-right
    - if can?(:attempt, @video)
      = render partial: 'course/video/videos/video_attempt_button',
        locals: { video: @video }
    - if can?(:manage, @video)
      = render partial: 'video_management_buttons', locals: { video: @video }

= div_for(@video) do
  - unless @video.description.blank?
    h3 = t('.description')
    div.well
      = format_html(@video.description)

  table.table.table-bordered.details-table
    tbody
      tr.start_at
        th = t('.start_at')
        td = format_datetime(@video.start_at)

Add a Watch button for the Video show page
Add a Watch button for the Video show page

Signed-off-by: Shen Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>

Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2