Skip to content

Instantly share code, notes, and snippets.

@unixcharles
Created March 12, 2010 15:19
Show Gist options
  • Save unixcharles/330410 to your computer and use it in GitHub Desktop.
Save unixcharles/330410 to your computer and use it in GitHub Desktop.
<% content_for :body_content_page_title, "#{@news_item.title}" -%>
<% content_for :body_content_left do %>
<%= @news_item.body %>
<span class="right date"><small>Published <%= @news_item.publish_date.strftime("%A %d of %B, %Y") %></small></span>
<p>
<%= link_to "Back to all news", news_items_url %>
</p>
<% end %>
<% content_for :body_content_right do %>
<br/>
<div id="disqus_thread"></div>
<br/>
<script type="text/javascript" src="http://disqus.com/forums/xserv/embed.js"></script><noscript><a href="http://disqus.com/forums/xserv/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
<script type="text/javascript">
//<![CDATA[
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/xserv/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
<% end %>
<%= render :partial => "/shared/content_page" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment