show how long ago stream started

This commit is contained in:
Andrew Zhao
2021-02-24 23:06:50 -05:00
parent cbc7603248
commit 295e5c9731
2 changed files with 6 additions and 1 deletions

View File

@@ -81,6 +81,10 @@
<h3>
<%= video.premiere_timestamp.try { |t| translate(locale, "Premieres in `x`", recode_date((t - Time.utc).ago, locale)) } %>
</h3>
<% elsif video.live_now %>
<h3>
<%= video.premiere_timestamp.try { |t| translate(locale, "Started streaming `x` ago", recode_date((Time.utc - t).ago, locale)) } %>
</h3>
<% end %>
</div>