regluit/frontend/templates/explore.html

80 lines
5.0 KiB
HTML
Raw Normal View History

2016-05-11 14:41:50 +00:00
{% load truncatechars %}
{% load lang_utils %}
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 %}
2017-09-28 17:36:20 +00:00
<li><a href="{% url 'supporter' request.user %}"><span>My Faves</span></a></li>
{% for library in request.user.profile.libraries %}
2015-04-28 03:24:02 +00:00
<li><a href="{% url 'library' library.user %}"><span>{{ library }}</span></a></li>
{% endfor %}
2012-05-07 17:10:42 +00:00
<li>
{% endif %}
2015-04-28 03:24:02 +00:00
<li><a href="{% url 'free' %}"><span>Free eBooks!</span></a>
2015-01-09 22:05:34 +00:00
{% if work %}
<ul class="menu level3">
{% if work.doab %}
<li><a href="{% url 'faceted_list' 'id/doab' %}?order_by=popular">Books in DOAB</a></li>
{% endif %}
{% if work.gtbg %}
<li><a href="{% url 'faceted_list' 'id/gtbg' %}?order_by=popular">Books in Project Gutenberg</a></li>
{% endif %}
{% for subject in work.subjects.all %}
{% if subject.is_visible and subject.free_works.1 %}
<li><a href="{% url 'faceted_list' subject.kw %}"><span>{{ subject }}</span></a></li>
{% endif %}
{% endfor %}
</ul>
2015-01-09 22:05:34 +00:00
{% endif %}
</li>
2015-04-28 03:24:02 +00:00
<li><a href="{% url 'campaign_list' 'ending' %}"><span>Active Campaigns</span></a></li>
<li><a href="{% url 'comment' %}"><span>Latest Comments</span></a></li>
<li><a href="{% url 'work_list' 'popular' %}"><span>Site Favorites</span></a></li>
<li><a href="{% url 'work_list' 'new' %}"><span>Latest Favorites</span></a></li>
<!--<li><a href="{% url 'work_list' 'recommended' %}"><span>Noteworthy</span></a></li>-->
{% if pubname %}
<li>{{ pubname }}...
<ul class="menu level3">
2015-04-28 03:24:02 +00:00
<li class="first"><a href="{% url 'bypub_list' 'popular' pubname %}"><span>Most popular</span></a></li>
<li><a href="{% url 'bypub_list' pubname %}"><span>By Title</span></a></li>
</ul>
</li>
{% endif %}
</ul>
</li>
{% if show_langs %}
<li class="parent">
<span class="show_langs">Languages...</span>
<ul class="menu level3" id="lang_list">
<li class="first{% ifequal pub_lang '' %} active_lang{% endifequal %}"><a href="?">ALL</a></li>
{% for wished_lang in WISHED_LANGS %}
<li{% ifequal pub_lang wished_lang %} class="active_lang"{% endifequal %}><a href="?pub_lang={{wished_lang}}">{{wished_lang|ez_lang_name_local}}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
2013-02-06 20:05:05 +00:00
{% if ungluers %}
<li class="parent">
<span>Ungluers</span>
2011-09-27 09:45:03 +00:00
<ul class="menu level2">
{% for ungluer in ungluers %}
2015-04-28 03:24:02 +00:00
<li class="first"><a href="{% url 'supporter' ungluer %}">
<img src="{{ungluer.profile.avatar_url}}" height="30" width="30" alt="Avatar for {{ungluer}}" title="{{ungluer}}" /></a>
2015-04-28 03:24:02 +00:00
<a href="{% url 'supporter' ungluer %}"><span class="ungluer-name">{{ungluer|truncatechars:20}}</span>
</a></li>
{% endfor %}
{% if library %}
2015-04-28 03:24:02 +00:00
<li class="first"><a href="{% url 'library_users' library.id %}"><span>More from {{ library }}</span></a></li>
{% endif %}
</ul>
</li>
2013-02-06 20:05:05 +00:00
{% endif %}
</ul>
</div>
</div>