Add premiere date to watch page

This commit is contained in:
Omar Roth
2019-06-08 10:18:45 -05:00
parent 801dffd571
commit ef8c9f093c
17 changed files with 53 additions and 26 deletions

View File

@@ -30,7 +30,8 @@ var video_data = {
length_seconds: '<%= video.info["length_seconds"].to_f %>',
video_series: <%= video_series.to_json %>,
params: <%= params.to_json %>,
preferences: <%= preferences.to_json %>
preferences: <%= preferences.to_json %>,
premiere_timestamp: <%= video.premiere_timestamp.try &.to_unix || "null" %>
}
</script>