Add option to view comments with JS disabled

This commit is contained in:
Omar Roth
2018-10-31 16:47:53 -05:00
parent 294c168193
commit 19516eaa25
3 changed files with 281 additions and 209 deletions

View File

@@ -121,6 +121,14 @@
</div>
<hr>
<div id="comments">
<% if nojs %>
<%= comment_html %>
<% else %>
<noscript>
Hi! Looks like you have JavaScript disabled. Click <a href="/watch?<%= env.params.query %>&nojs=1">here</a> to view
comments, keep in mind it may take a bit longer to load.
</noscript>
<% end %>
</div>
</div>
</div>