Modify video edit page style (#304)
* Improve and finalize video upload * Modify video edit page style
This commit is contained in:
parent
cd4d5e9fcb
commit
0dc24677ad
1 changed files with 12 additions and 8 deletions
|
|
@ -1,7 +1,8 @@
|
|||
<% title "Edit Article - DEV" %>
|
||||
|
||||
<% if @article.video.present? %>
|
||||
<div style="text-align:center;padding-top:100px;margin:auto;max-width:880px">
|
||||
<div style="text-align:center;padding-top:60px;margin:auto;max-width:880px;margin-bottom:-50px;">
|
||||
|
||||
<% if @article.video_state == "PROGRESSING" %>
|
||||
<h1 style="color:#062144">⏳ Video Transcoding In Progress ⏳</h1>
|
||||
<img src="https://media.giphy.com/media/xf20D8HzvTQzu/giphy.gif" style="border-radius:12px" />
|
||||
|
|
@ -14,14 +15,17 @@
|
|||
</p>
|
||||
</div>
|
||||
<% elsif @article.video_state == "COMPLETED" %>
|
||||
<h2>Video uploaded - <%= @article.video_code %></h2>
|
||||
<br/></br/>
|
||||
<%= render "articles/video_player", meta_tags: false, article: @article %>
|
||||
<h2>Change preview image:</h2>
|
||||
<%= form_for(@article) do |f| %>
|
||||
<%= f.text_field :video_thumbnail_url, placeholder: "New Thumbnail URL" %>
|
||||
<%= f.submit %>
|
||||
<% end %>
|
||||
<br/>Video is in beta ❤️<br/><br/><br/>
|
||||
<div style="padding-top:15px;">
|
||||
|
||||
<%= 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 %>
|
||||
<h5>Video is in beta ❤️</h5>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue