Skip to content

Commit

Permalink
Disqus comments?
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Aug 22, 2016
1 parent 61ad10c commit 307df36
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ksp.moon
Expand Up @@ -228,6 +228,20 @@ class extends lapis.Application
input type: "checkbox", name: "delete"
br!
input type: "submit"

div id: "disqus_thread"
script -> raw "
var disqus_config = function () {
this.page.url = '#{@build_url @url_for "ksp_craft", id: craft.id}';
this.page.identifier = '#{@url_for "ksp_craft", id: craft.id}';
};
(function() {
var d = document, s = d.createElement('script');
s.src = '//guard13007.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();"

else
return redirect_to: @url_for "ksp_craft_list"

Expand Down

0 comments on commit 307df36

Please sign in to comment.