<commit_before>- set_title "#{Tenant.default_title}-tube"

.row
  .columns.large-10
    %h2 Videos
  .columns.large-2

.row
  .columns.large-10
    %ul.large-block-grid-2.small-block-grid-1
      - @published_videos.each do |vid|
        %li
          .video_panel{id: dom_id(vid)}
            /%iframe{style: 'width: 400px; height: 200px', frameborder: '0'}
            = link_to video_path(vid) do
              %image{src: vid.asset.expiring_url(60.minutes, :thumb), style: "border:1px solid green;"}
              / %image{src: "http://placehold.it/400x200", style: "border:1px solid green;"}
            %b.name= vid.name.presence || "Name me!"
            - if current_user == vid.creator
              = link_to "&#215;".html_safe, video_path(vid, dom_id: dom_id(vid) ), remote: true, method: :delete, data: { confirm: "Are you sure?" }
            .desc= vid.description
            .date= time_tag((vid.date || vid.created_at).to_date)
            tags, vote, views
            .edit_wrapper{style: 'position: relative'}
              .edit_link{style: 'position:absolute; bottom: 0; right: 0;'}
                = link_to f_icon('pencil'), edit_video_path(vid.id)
  .columns.large-2
    .row
      = link_to "Upload new video", new_video_path, class: 'button'
    .row
      - @draft_videos.each do |video|
        .panel{id: dom_id(video)}
          %div
            = link_to "#{video.name.presence || 'No name'}", edit_video_path(video.id), title: 'Edit'
            - if current_user == video.creator
              = link_to "&#215;".html_safe, video_path(video, dom_id: dom_id(video)), remote: true, method: :delete#, data: { confirm: "Are you sure?" }
          %div
            = video.description
          %div.small
            Uploaded by #{video.updater.try(:name)} on #{l(video.created_at, format: :onlydate)}
          %div
            Status: #{video.friendly_state}
            = link_to f_icon('info'), info_video_path(video), title: 'More Info', remote: true
            = link_to f_icon('refresh'), trigger_video_path(video), title: 'Trigger transcode job again', remote: true, method: :post<commit_msg>remove wip text.  implement later<commit_after>- set_title "#{Tenant.default_title}-tube"

.row
  .columns.large-10
    %h2 Videos
  .columns.large-2

.row
  .columns.large-10
    %ul.large-block-grid-2.small-block-grid-1
      - @published_videos.each do |vid|
        %li
          .video_panel{id: dom_id(vid)}
            /%iframe{style: 'width: 400px; height: 200px', frameborder: '0'}
            = link_to video_path(vid) do
              %image{src: vid.asset.expiring_url(60.minutes, :thumb), style: "border:1px solid green;"}
              / %image{src: "http://placehold.it/400x200", style: "border:1px solid green;"}
            %b.name= vid.name.presence || "Name me!"
            - if current_user == vid.creator
              = link_to "&#215;".html_safe, video_path(vid, dom_id: dom_id(vid) ), remote: true, method: :delete, data: { confirm: "Are you sure?" }
            .desc= vid.description
            .date= time_tag((vid.date || vid.created_at).to_date)
            / tags, vote, views
            .edit_wrapper{style: 'position: relative'}
              .edit_link{style: 'position:absolute; bottom: 0; right: 0;'}
                = link_to f_icon('pencil'), edit_video_path(vid.id)
  .columns.large-2
    .row
      = link_to "Upload new video", new_video_path, class: 'button'
    .row
      - @draft_videos.each do |video|
        .panel{id: dom_id(video)}
          %div
            = link_to "#{video.name.presence || 'No name'}", edit_video_path(video.id), title: 'Edit'
            - if current_user == video.creator
              = link_to "&#215;".html_safe, video_path(video, dom_id: dom_id(video)), remote: true, method: :delete#, data: { confirm: "Are you sure?" }
          %div
            = video.description
          %div.small
            Uploaded by #{video.updater.try(:name)} on #{l(video.created_at, format: :onlydate)}
          %div
            Status: #{video.friendly_state}
            = link_to f_icon('info'), info_video_path(video), title: 'More Info', remote: true
            = link_to f_icon('refresh'), trigger_video_path(video), title: 'Trigger transcode job again', remote: true, method: :post
{'fraction_non_alphanumeric': 0.1484593837535014, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 2.4197924980047887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4100351', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1390, 'n_words': 311}