snipt/snipts/templates/snipts/list.html

72 lines
2.7 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% load pagination_tags %}
2012-05-14 21:41:05 -07:00
{% block body-class %}{{ block.super }}{% if user.username == 'blog' %} blog{% endif %}{% endblock %}
2012-04-13 13:26:58 -07:00
{% block page-title %}/ {% if public and not public_user %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - {{ block.super }}{% endblock %}
2012-02-18 11:42:30 -08:00
{% block js %}
{{ block.super }}
window.detail = false;
{% endblock %}
{% block content %}
<section class="snipts" id="snipts" ng-controller="SniptListController"
{% if request.user.profile.list_view == 'C' %}
ng-cloak ng-show="$root.account.id"
{% endif %}>
2013-11-18 08:43:14 -08:00
{% if not request.user.profile.is_pro %}
2013-11-18 11:40:46 -08:00
{% include 'ad-leaderboard.html' %}
2013-11-18 08:43:14 -08:00
{% endif %}
2013-11-11 06:56:26 -08:00
{% autopaginate snipts 10 %}
{% for snipt in snipts %}
{% include "snipts/snipt-list.html" %}
2012-04-13 10:05:49 -07:00
{% empty %}
<div class="empty-snipts">
2013-02-08 18:01:23 -08:00
No snipts to show here. Sorry!
2012-04-13 10:05:49 -07:00
</div>
{% endfor %}
{% paginate %}
2013-11-27 12:54:14 -08:00
{% if not request.user.profile.is_pro %}
<div class="google-ads" style="margin-top: 30px;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- New Snipt Leaderboard Bottom -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-6776929316186576"
data-ad-slot="5960460864"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
{% endif %}
</section>
2012-02-18 11:42:30 -08:00
<script type="text/javascript" id="disqus">
var disqus_shortname = 'snipt-net';
{% if debug %}
var disqus_developer = 1;
{% endif %}
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
2012-04-23 18:51:16 -07:00
s.src = 'https://' + disqus_shortname + '.disqus.com/count.js';
2012-02-18 11:42:30 -08:00
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<script type="text/html" id="disqus-template">
var disqus_shortname = 'snipt-net';
{% if debug %}
var disqus_developer = 1;
{% endif %}
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
2012-04-23 18:51:16 -07:00
s.src = 'https://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% endblock %}