2013-02-10 16:24:55 -08:00
|
|
|
{% load snipt_tags %}
|
|
|
|
|
2015-09-30 14:05:54 -07:00
|
|
|
{% if user.profile.is_a_team %}
|
2015-09-30 13:33:05 -07:00
|
|
|
<div class="profile group">
|
|
|
|
<a href="/{{ user.username }}/">
|
|
|
|
<img src="https://secure.gravatar.com/avatar/{{ user.email|md5 }}?s=300" alt="{{ user.username }}" title="{{ user.username }}" />
|
|
|
|
</a>
|
|
|
|
<div class="meta">
|
|
|
|
<div class="username" title="{{ user.username }}">
|
|
|
|
<a href="">
|
|
|
|
{{ user.username }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="member-since">Team since {{ user.date_joined|date:"Y" }}</div>
|
|
|
|
{% if user.profile.get_blog_posts %}
|
|
|
|
<div class="urls">
|
|
|
|
Snipt Blog:
|
|
|
|
<a href="{{ user.profile.get_user_profile_url }}">
|
|
|
|
{{ user.profile.get_user_profile_url }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-10-17 06:13:02 -07:00
|
|
|
<div class="member-since">
|
2015-10-18 20:07:56 -07:00
|
|
|
<a href="/{{ user.username }}/members/">
|
2015-10-17 06:13:02 -07:00
|
|
|
{{ user.team.member_count }} member{{ user.team.member_count|pluralize }}
|
2015-10-18 20:07:56 -07:00
|
|
|
</a>
|
2015-10-17 06:13:02 -07:00
|
|
|
</div>
|
2015-09-30 13:33:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-17 06:13:02 -07:00
|
|
|
{% if user.team.owner == request.user %}
|
|
|
|
<div class="profile team-settings group">
|
|
|
|
<div class="meta">
|
|
|
|
<span class="title">Team settings</span>
|
|
|
|
<a href="/{{ user.username }}/billing/">Billing »</a>
|
|
|
|
<a href="/{{ user.username }}/members/">Members »</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-09-30 13:33:05 -07:00
|
|
|
{% else %}
|
|
|
|
<div class="profile group">
|
|
|
|
<a href="/{{ user.username }}/">
|
|
|
|
<img src="https://secure.gravatar.com/avatar/{{ user.email|md5 }}?s=300" alt="{{ user.username }}" title="{{ user.username }}" />
|
|
|
|
</a>
|
|
|
|
<div class="meta">
|
|
|
|
<div class="username" title="{{ user.username }}">
|
|
|
|
<a href="">
|
|
|
|
{{ user.username }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% if user.username == 'nick' %}
|
|
|
|
<div class="member-since">Snipt Founder in {{ user.date_joined|date:"Y" }}</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="member-since">Member since {{ user.date_joined|date:"Y" }}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if user.profile.get_blog_posts %}
|
|
|
|
<div class="urls">
|
|
|
|
Snipt Blog:
|
|
|
|
<a href="{{ user.profile.get_user_profile_url }}">
|
|
|
|
{{ user.profile.get_user_profile_url }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2015-10-18 18:07:01 -07:00
|
|
|
{% if user.profile.has_pro %}
|
2015-09-30 13:33:05 -07:00
|
|
|
<a class="pro" href="/pro/">Pro</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if user.profile.gittip_username %}
|
|
|
|
<a class="gittip" href="https://www.gittip.com/{{ user.profile.gittip_username }}/">Tip</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|