regluit/frontend/templates/explore.html

45 lines
2.5 KiB
HTML
Raw Normal View History

{% load truncatechars %}
2011-09-27 09:45:03 +00:00
<div class="jsmodule">
<h3 class="jsmod-title"><span>Explore</span></h3>
<div class="jsmod-content">
2011-09-27 09:45:03 +00:00
<ul class="menu level1">
2011-09-27 09:45:03 +00:00
<li class="first parent">
<span>Show me...</span>
2011-09-27 09:45:03 +00:00
<ul class="menu level2">
{% if not request.user.is_anonymous %}
<li class="first"><a href="/"><span>My Wishlist</span></a></li>
2012-05-07 17:10:42 +00:00
<li>
{% else %}
<li class="first">
{% endif %}
2012-05-07 17:10:42 +00:00
{% if not is_preview %}
<a href="{% url campaign_list 'ending' %}"><span>Active Campaigns</span></a></li>
<li><a href="{% url work_list 'popular' %}"><span>Most Wished</span></a></li>
2012-01-15 19:55:56 +00:00
{% else %}
2012-05-07 17:10:42 +00:00
<a href="{% url work_list 'popular' %}"><span>Most Wishes</span></a></li>
2012-01-15 19:55:56 +00:00
{% endif %}
2012-05-07 17:10:42 +00:00
<li><a href="{% url work_list 'new' %}"><span>Newly Wished</span></a></li>
2012-05-08 17:47:58 +00:00
<li><a href="{% url work_list 'recommended' %}"><span>Staff Picks</span></a></li>
2012-05-07 17:10:42 +00:00
<li class="last"><a href="{% url unglued_list 'recent' %}"><span>Recently unglued</span></a></li>
</ul>
</li>
<li class="parent">
<span>Ungluers</span>
2011-09-27 09:45:03 +00:00
<ul class="menu level2">
{% for ungluer in ungluers %}
<li class="first"><a href="{% url supporter supporter_username=ungluer %}">
{% if ungluer.profile.pic_url %}
<img src="{{ungluer.profile.pic_url}}" height="30" width="30" alt="{{ungluer}}" title="{{ungluer}}" /></a>
{% else %}
<img src="/static/images/header/avatar.png" height="30" width="30" alt="Generic Ungluer Avatar" /></a>
{% endif %}
<a href="{% url supporter supporter_username=ungluer %}"><span class="ungluer-name">{{ungluer|truncatechars:20}}</span>
</a></li>
{% endfor %}
</ul>
</li>
</ul>
</div>
</div>