2012-02-16 09:01:31 -08:00
{% 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-16 09:01:31 -08:00
2012-02-18 11:42:30 -08:00
{% block js %}
{{ block.super }}
window.detail = false;
{% endblock %}
2012-02-16 09:01:31 -08:00
{% block content %}
2015-10-25 19:36:19 -07:00
{% if 'team-cancelled' in request.GET %}
< div class = "alert alert-success" style = "margin: 30px;" >
Your team plan has been succesfully cancelled.
< / div >
{% endif %}
2013-10-18 21:41:00 -07:00
< section class = "snipts" id = "snipts" ng-controller = "SniptListController"
{% if request.user.profile.list_view == 'C' %}
ng-cloak ng-show="$root.account.id"
{% endif %}>
2016-11-01 07:03:12 -07:00
{% if request.user.username == user.username and user.username in users_for_full_page %}
{% for snipt in snipts %}
{% include "snipts/snipt-list.html" %}
{% empty %}
< div class = "empty-snipts" >
{% if request.user == user and not request.user.is_active %}
Welcome! Please < a target = "_self" href = "/account/activate/" > activate your account< / a > to create your first snipt.
2016-05-10 09:35:15 -07:00
{% else %}
2016-11-01 07:03:12 -07:00
{% if request.user == user %}
Welcome! Create your first snipt by clicking "Add Snipt" above.
{% else %}
No snipts to show here. Sorry!
{% endif %}
2016-05-10 09:35:15 -07:00
{% endif %}
2016-11-01 07:03:12 -07:00
< / div >
{% endfor %}
{% else %}
{% autopaginate snipts 10 %}
{% for snipt in snipts %}
{% include "snipts/snipt-list.html" %}
{% empty %}
< div class = "empty-snipts" >
{% if request.user == user and not request.user.is_active %}
Welcome! Please < a target = "_self" href = "/account/activate/" > activate your account< / a > to create your first snipt.
{% else %}
{% if request.user == user %}
Welcome! Create your first snipt by clicking "Add Snipt" above.
{% else %}
No snipts to show here. Sorry!
{% endif %}
{% endif %}
< / div >
{% endfor %}
{% paginate %}
{% endif %}
2012-02-16 09:01:31 -08:00
< / 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" >
2012-02-16 09:01:31 -08:00
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-16 09:01:31 -08:00
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
< / script >
{% endblock %}