hide ugoira preview/video link if it hasn't finished processing

This commit is contained in:
r888888888
2014-10-28 11:30:02 -07:00
parent 94fd03f5d0
commit 3aa0ee2a75
4 changed files with 17 additions and 2 deletions

View File

@@ -28,7 +28,13 @@
<p id="ugoira-load-progress">Loaded <span id="ugoira-load-percentage">0</span>%</p>
<div id="seek-slider" style="display: none; width: <%= @post.image_width - 81 %>px;"></div>
</div>
<p id="save-video-link"><%= link_to "Save as video (right click and save)", post.large_file_url %></p>
<p id="save-video-link">
<% if post.has_ugoira_webm? %>
<%= link_to "Save as video (right click and save)", post.large_file_url %>
<% else %>
WebM conversion pending
<% end %>
</p>
</div>
<% content_for(:html_header) do %>