2012-06-04 17:57:20 -07:00
|
|
|
{% extends "blogs/themes/default/base.html" %}
|
|
|
|
|
2012-06-05 21:53:02 -07:00
|
|
|
{% block html-class %}blog-site blog-detail{% endblock %}
|
|
|
|
{% block body-class %}blog-site blog-detail{% endblock %}
|
2012-06-04 17:57:20 -07:00
|
|
|
|
|
|
|
{% block js %}
|
|
|
|
{{ block.super }}
|
|
|
|
window.detail = true;
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-06-05 16:57:19 -07:00
|
|
|
{% block page-title %}// {{ snipt.title }} {{ block.super }}{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
|
|
<li><span class="prompt">//</span> <a href="{{ snipt.get_absolute_url }}">{{ snipt.title }}</a></li>
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-06-04 17:57:20 -07:00
|
|
|
{% block content %}
|
|
|
|
<section class="snipts" id="snipts">
|
|
|
|
{% with 'true' as detail %}
|
|
|
|
{% include "blogs/themes/default/snipt-list.html" %}
|
|
|
|
{% endwith %}
|
2013-02-01 19:59:32 -08:00
|
|
|
<div id="disqus_thread"></div>
|
|
|
|
<script type="text/javascript">
|
2016-11-02 13:22:23 -07:00
|
|
|
var disqus_shortname = '{{ blog_user.profile.disqus_shortname }}';
|
2013-02-01 19:59:32 -08:00
|
|
|
{% if debug %}
|
|
|
|
var disqus_developer = 1;
|
|
|
|
{% endif %}
|
|
|
|
var disqus_url = '{{ snipt.get_full_absolute_url }}{% if not snipt.public %}?key={{ snipt.key }}{% endif %}';
|
|
|
|
var disqus_title = '{{ snipt.title }}';
|
|
|
|
var disqus_identifier = {{ snipt.id }};
|
2012-06-04 17:57:20 -07:00
|
|
|
|
2013-02-01 19:59:32 -08:00
|
|
|
(function() {
|
|
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
|
|
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
|
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
|
|
})();
|
|
|
|
</script>
|
2012-06-04 17:57:20 -07:00
|
|
|
</section>
|
|
|
|
{% endblock %}
|
|
|
|
|