Skip to content

Commit

Permalink
Added Disqus.
Browse files Browse the repository at this point in the history
  • Loading branch information
MPV committed Oct 12, 2010
1 parent 87f7ea5 commit 92ca3d3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,14 @@
</footer>

<%= yield :javascript %>
<script type="text/javascript">
var disqus_shortname = 'bignetworkinternetplayer';
(function () {
var s = document.createElement('script'); s.async = true;
s.src = 'http://disqus.com/forums/bignetworkinternetplayer/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

</body>
</html>
15 changes: 15 additions & 0 deletions app/views/tracks/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
<%= link_to image_tag("icon_spotify.png") + " Lyssna", @track.href, { :class => 'button listen' } %>
</p>

<div id="disqus_thread"></div>
<script type="text/javascript">
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://bignetworkinternetplayer.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=bignetworkinternetplayer">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>


<!--
<h3>Finns i dessa spellistor:</h3>
Expand Down

0 comments on commit 92ca3d3

Please sign in to comment.