<% title "Edit Post" %> <% if @article.video.present? %>
<% if @article.video_state == "PROGRESSING" %>

⏳ Video Transcoding In Progress ⏳

You'll get an email when this process finishes.

This is an ordinary unpublished post. Add title/tags/body/etc, and then mark as published after the video is done processing.

<% elsif @article.video_state == "COMPLETED" %>

<%= render "articles/video_player", meta_tags: false, article: @article %>
<%= form_for(@article) do |f| %> Change preview image (via URL): <%= f.text_field :video_thumbnail_url, placeholder: "New Thumbnail URL" %> <%= f.submit "Submit Change" %> <% end %>
Video is in beta ❤️
<% end %>
<% end %> <% unless @article.has_frontmatter? %> <%= javascript_pack_tag 'articleForm', defer: true %> <%= render 'articles/v2_form' %> <% else %> <%= render 'articles/markdown_form' %> <% end %>