Apipie/apipie-rails

View on GitHub
app/views/apipie/apipies/_disqus.html.erb

Summary

Maintainability
Test Coverage
<div id="disqus_thread"></div>
<script type="text/javascript">
    var disqus_shortname = "<%= Apipie.configuration.disqus_shortname %>";
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js?https';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
<noscript><%= t('apipie.enable_javascript_html', :comments_href => link_to(
        t('apipie.comments_powered_by_disqus', :disqus => 'Disqus'),
        "https://disqus.com/?ref_noscript")) %></noscript>
<a href="https://disqus.com" class="dsq-brlink"><%= t('apipie.comments_powered_by_disqus', :disqus => "<span class='logo-disqus'>Disqus</span>") %></a>