48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
{% extends "snipts/list.html" %}
|
|
|
|
{% load snipt_tags %}
|
|
|
|
{% block breadcrumb %}
|
|
<li><a href="/{{ user.username }}/">{{ user.username }}</a></li>
|
|
{% if tag %}
|
|
<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 %}
|
|
<li class="rss">
|
|
<a href="{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}">RSS</a>
|
|
</li>
|
|
{% endblock %}
|
|
|
|
{% block aside-top %}
|
|
<div class="profile group">
|
|
<img src="https://secure.gravatar.com/avatar/{{ user.email|md5 }}?s=175" alt="{{ user.username }}" title={{ user.username }}" />
|
|
<div class="meta">
|
|
<div class="username" title="{{ user.username }}">
|
|
{% if user.username == 'blog' %}
|
|
Blog
|
|
{% else %}
|
|
{{ user.username }}
|
|
{% endif %}
|
|
</div>
|
|
{% if user.username == 'nick' %}
|
|
<div class="member-since">Snipt Founder in {{ user.date_joined|date:"Y" }}</div>
|
|
{% else %}
|
|
{% if user.username == 'blog' %}
|
|
<div class="member-since">Official Snipt blog</div>
|
|
{% else %}
|
|
<div class="member-since">Member since {{ user.date_joined|date:"Y" }}</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
{% 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 %}
|
|
{% endif %}
|
|
</div>
|
|
{% include "snipts/tags-user.html" %}
|
|
{% endblock %}
|