Add local alternatives for video links

This commit is contained in:
Omar Roth
2018-03-06 22:00:35 -06:00
parent e9f214cdc0
commit ebe51c91d7
3 changed files with 57 additions and 3 deletions

View File

@@ -105,13 +105,13 @@ function toggle(target) {
<%= video.description %>
</div>
<hr style="margin-right:1em;">
<% if reddit_thread && !reddit_comments.as_a.empty? %>
<% if reddit_thread && !reddit_html.empty? %>
<div style="margin-right:1em; overflow-wrap:break-word; word-wrap:break-word;">
<h3><%= reddit_thread.data.title %></h3>
<b>
<a target="_blank" class="link" href="https://reddit.com<%= reddit_thread.data.permalink %>">View comments on Reddit</a>
</b>
<%= template_comments(reddit_comments) %>
<%= reddit_html %>
</div>
<% end %>
</div>