Sha256: 65e8e3b626925108461e52e34de18d5d677b9c96ced35280ff7f54dc36501a77

Contents?: true

Size: 908 Bytes

Versions: 4

Compression:

Stored size: 908 Bytes

Contents

<% if Blogo.config.disqus_shortname %>
  <section id='disqus-comments'>
    <h1><%= t('blogo.user.comments') %></h1>
    <div id="disqus_thread" aria-live="polite"></div>
    <noscript><%= t('blogo.user.please_enable_javascript') %></noscript>
  </section>


  <script type="text/javascript">
    var disqus_shortname  = '<%= Blogo.config.disqus_shortname %>';
    var disqus_identifier = 'blog-post-<%= @post.id %>';
    var disqus_url        = '<%= blogo_post_url(@post) %>';
    var disqus_title      = '<%= @post.title %>';
    var disqus_script     = 'embed.js';

    (function () {
      var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
      dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
      (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    }());
  </script>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogo-0.1.1 app/views/blogo/posts/_disqus_comments.html.erb
blogo-0.1.0 app/views/blogo/posts/_disqus_comments.html.erb
blogo-0.0.10 app/views/blogo/posts/_disqus_comments.html.erb
blogo-0.0.9 app/views/blogo/posts/_disqus_comments.html.erb