2012-01-16 15:47:09 -08:00
{% extends "base.html" %}
2012-04-13 10:01:28 -07:00
{% block page-title %}/ {% if snipt.title %}{{ snipt.title }}{% else %}Untitled{% endif %} / {{ user.username }} - {{ block.super }}{% endblock %}
2012-02-23 12:01:06 -08:00
{% block html-class %}detail{% endblock %}
2013-01-16 20:38:13 -08:00
{% block body-class %}{% if request.path == '/api/' or request.path == '/blogging/' %}snipt-page{% else %}detail{% endif %}{% endblock %}
2012-01-16 15:47:09 -08:00
2012-02-18 11:42:30 -08:00
{% block js %}
{{ block.super }}
window.detail = true;
{% endblock %}
2012-01-16 15:47:09 -08:00
{% block breadcrumb %}
< li > < a href = "/{{ user.username }}/" > {{ user.username }}< / a > < / li >
2012-04-22 18:47:49 -07:00
< li > < span class = "prompt" > /< / span > < a href = "{{ snipt.get_absolute_url }}" > {{ snipt.title }}< / a > < / li >
2012-01-16 15:47:09 -08:00
{% endblock %}
2012-05-08 10:32:53 -07:00
{% block aside %}
2013-01-16 20:40:16 -08:00
{% if request.path == '/api/' or request.path == '/blogging/' %}
2012-05-15 18:19:49 -07:00
{{ block.super }}
2012-06-05 12:46:37 -07:00
{% endif %}
{% endblock %}
{% block aside-inner %}
{% if request.path == '/api/' %}
{% if request.user.is_authenticated %}
< aside class = "api-info api-creds" >
< div class = "api-inner" >
< h5 > Your API credentials:< / h5 >
< ul >
< li > Username: < strong > {{ request.user.username }}< / strong > < / li >
< li > User ID: < strong > {{ request.user.id }}< / strong > < / li >
< li > API Key: < br / > < input type = "text" value = "{{ request.user.api_key.key }}" / > < / li >
< / ul >
< / div >
< / aside >
{% endif %}
2012-05-15 07:53:12 -07:00
< aside class = "api-info immediate-help" >
< div class = "api-inner" >
< h5 > Need immediate help?< / h5 >
2012-07-03 15:22:48 -07:00
< p > Ping “ nicksergeant” in < strong > #snipt< / strong > on irc.freenode.net.< / p >
2012-05-15 07:53:12 -07:00
< / div >
< / aside >
2012-05-08 10:32:53 -07:00
{% endif %}
{% endblock %}
2012-01-16 15:47:09 -08:00
{% block content %}
2012-12-16 20:41:50 -08:00
{% if not request.user.profile.is_pro %}
< div class = "sifter group" >
2012-12-20 08:06:32 -08:00
< a class = "sifter-logo" href = "https://sifterapp.com/from/snipt" title = "Sifter: Simple issue tracking for big projects and small teams." >
2013-02-21 18:30:03 -08:00
< img src = "{{ STATIC_URL }}img/sifter-black-white.png" alt = "Sifter: Simple issue tracking for big projects and small teams." / >
2012-12-16 20:41:50 -08:00
< / a >
< div class = "right" >
< h3 > Building things is hard.< / h3 >
< p >
2012-12-20 08:06:32 -08:00
Issue tracking shouldn't be. < a href = "https://sifterapp.com/from/snipt" title = "Sifter: Simple issue tracking for big projects and small teams." > Sifter< / a > makes it simple.
2012-12-16 20:41:50 -08:00
< / p >
< / div >
< / div >
{% endif %}
2012-01-16 15:47:09 -08:00
< section class = "snipts" id = "snipts" >
2013-01-21 21:04:42 -08:00
{% if not request.user.profile.is_pro %}
2013-01-21 21:00:23 -08:00
{% include 'go-pro.html' %}
2012-07-19 08:35:08 -07:00
{% endif %}
2012-01-16 18:17:58 -08:00
{% with 'true' as detail %}
{% include "snipts/snipt-list.html" %}
{% endwith %}
2013-02-03 08:31:19 -08:00
< div id = "disqus_thread" >
{% if snipt.public %}
< script type = "text/javascript" >
var disqus_shortname = 'snipt-net';
{% if debug %}
var disqus_developer = 1;
{% endif %}
var disqus_url = '{{ snipt.get_full_absolute_url }}';
var disqus_title = '{{ snipt.title }}';
var disqus_identifier = {{ snipt.id }};
2012-01-16 18:17:58 -08:00
2013-02-03 08:31:19 -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 >
{% else %}
< p class = "alert alert-info" >
< strong > Disqus comments have been disabled on private snipts.< / strong > < br / > < br / >
See < a href = "https://github.com/nicksergeant/snipt/issues/53" > https://github.com/nicksergeant/snipt/issues/53< / a > if you would like more information on this decision.
< / p >
{% endif %}
< / div >
2012-01-16 15:47:09 -08:00
< / section >
{% endblock %}