snipt/snipts/templates/snipts/list-user.html

59 lines
2.5 KiB
HTML
Raw Normal View History

{% extends "snipts/list.html" %}
2012-04-13 10:01:28 -07:00
{% load snipt_tags %}
{% block breadcrumb %}
<li><a href="/{{ user.username }}/">{{ user.username }}</a></li>
{% if tag %}
2012-04-22 18:47:49 -07:00
<li><span class="prompt">/</span> <a href="/{{ user.username }}/tag/{{ tag.slug }}/">{{ tag.name }}</a></li>
{% endif %}
{% if favorites %}
<li><span class="prompt">/</span> <a href="/{{ user.username }}/favorites/">Favorited snipts</a></li>
{% endif %}
2012-04-13 20:30:23 -07:00
<li class="rss">
2012-05-14 21:19:35 -07:00
<a href="{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}">RSS</a>
2012-04-13 20:30:23 -07:00
</li>
{% endblock %}
2012-07-08 09:25:15 -07:00
{% block aside-top %}
2012-04-13 13:26:58 -07:00
<div class="profile group">
2013-02-03 11:25:00 -08:00
<img src="https://secure.gravatar.com/avatar/{{ user.email|md5 }}?s=175" alt="{{ user.username }}" title={{ user.username }}" />
2012-04-13 10:01:28 -07:00
<div class="meta">
2012-04-13 13:26:58 -07:00
<div class="username" title="{{ user.username }}">
2012-05-14 21:02:53 -07:00
{% if user.username == 'blog' %}
Blog
{% else %}
{{ user.username }}
{% endif %}
2012-04-13 10:01:28 -07:00
</div>
{% if user.username == 'nick' %}
2013-02-03 11:25:00 -08:00
<div class="member-since">Snipt Founder in {{ user.date_joined|date:"Y" }}</div>
2012-04-13 10:01:28 -07:00
{% else %}
2012-05-14 21:02:53 -07:00
{% if user.username == 'blog' %}
2013-02-03 11:25:00 -08:00
<div class="member-since">Official Snipt blog</div>
2012-05-14 21:02:53 -07:00
{% else %}
2013-02-03 11:25:00 -08:00
<div class="member-since">Member since {{ user.date_joined|date:"Y" }}</div>
2012-05-14 21:02:53 -07:00
{% endif %}
2012-04-13 10:01:28 -07:00
{% endif %}
</div>
2012-07-18 21:39:43 -07:00
{% if user.profile.is_pro %}
<a class="pro" href="/pro/">Pro</a>
{% if user.profile.gittip_username %}
<a class="gittip" href="https://www.gittip.com/{{ user.profile.gittip_username }}/">Tip</a>
{% endif %}
2012-07-18 21:39:43 -07:00
{% endif %}
2012-04-13 10:01:28 -07:00
</div>
2013-02-03 11:30:27 -08:00
{% if not request.user.profile.is_pro %}
<div class="sifter">
<h3>Building things is hard.</h3>
<p>
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.
</p>
<a class="sifter-logo" href="https://sifterapp.com/from/snipt" title="Sifter: Simple issue tracking for big projects and small teams.">
<img src="{{ STATIC_URL }}images/sifter-black-white.png" alt="Sifter: Simple issue tracking for big projects and small teams." />
</a>
</div>
{% endif %}
2011-10-12 13:34:01 -07:00
{% include "snipts/tags-user.html" %}
{% endblock %}