2011-12-29 17:50:09 +00:00
|
|
|
{% load truncatechars %}
|
2012-07-21 20:26:16 +00:00
|
|
|
{% load lang_utils %}
|
2011-09-27 09:45:03 +00:00
|
|
|
<div class="jsmodule">
|
|
|
|
<h3 class="jsmod-title"><span>Explore</span></h3>
|
2011-09-21 15:11:36 +00:00
|
|
|
<div class="jsmod-content">
|
2011-09-27 09:45:03 +00:00
|
|
|
<ul class="menu level1">
|
2011-09-29 01:36:47 +00:00
|
|
|
|
2011-09-27 09:45:03 +00:00
|
|
|
<li class="first parent">
|
2012-01-15 18:31:39 +00:00
|
|
|
<span>Show me...</span>
|
2011-09-27 09:45:03 +00:00
|
|
|
<ul class="menu level2">
|
2012-02-07 17:01:00 +00:00
|
|
|
{% if not request.user.is_anonymous %}
|
2014-02-20 04:16:28 +00:00
|
|
|
<li class="first"><a href="/"><span>My Faves</span></a></li>
|
2013-10-10 06:41:50 +00:00
|
|
|
{% for library in request.user.profile.libraries %}
|
2013-11-28 03:14:52 +00:00
|
|
|
<li><a href="{% url library library.user %}"><span>{{ library }}</span></a></li>
|
2013-10-10 06:41:50 +00:00
|
|
|
{% endfor %}
|
2012-05-07 17:10:42 +00:00
|
|
|
<li>
|
|
|
|
{% else %}
|
|
|
|
<li class="first">
|
2012-01-30 15:09:45 +00:00
|
|
|
{% endif %}
|
2012-05-07 17:10:42 +00:00
|
|
|
<a href="{% url campaign_list 'ending' %}"><span>Active Campaigns</span></a></li>
|
2012-05-22 15:48:53 +00:00
|
|
|
<li><a href="{% url comment %}"><span>Latest Comments</span></a></li>
|
2014-02-20 04:16:28 +00:00
|
|
|
<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>-->
|
2014-01-21 16:11:59 +00:00
|
|
|
<li><a href="{% url unglued_list '' %}"><span>Ready to Read</span></a></li>
|
|
|
|
<li class="last"><a href="{% url cc_list%}">Latest Creative Commons</a></li>
|
2014-05-08 14:22:35 +00:00
|
|
|
{% ifequal aspect 'cc' %}
|
|
|
|
<ul class="menu level3">
|
2014-05-08 17:17:00 +00:00
|
|
|
<li class="first"><a href="{% url cc_list_detail 'by' %}"><span{% ifequal facet 'by' %} style="font-weight: bold;"{% endifequal %}>CC BY</span></a></li>
|
|
|
|
<li><a href="{% url cc_list_detail 'by-nc-nd' %}"><span{% ifequal facet 'by-nc-nd' %} style="font-weight: bold;"{% endifequal %}>CC BY-NC-ND</span></a></li>
|
|
|
|
<li><a href="{% url cc_list_detail 'by-nc-sa' %}"><span{% ifequal facet 'by-nc-sa' %} style="font-weight: bold;"{% endifequal %}>CC BY-NC-SA</span></a></li>
|
|
|
|
<li><a href="{% url cc_list_detail 'by-nc' %}"><span{% ifequal facet 'by-nc' %} style="font-weight: bold;"{% endifequal %}>CC BY-NC</span></a></li>
|
|
|
|
<li><a href="{% url cc_list_detail 'by-sa' %}"><span{% ifequal facet 'by-sa' %} style="font-weight: bold;"{% endifequal %}>CC BY-SA</span></a></li>
|
|
|
|
<li><a href="{% url cc_list_detail 'by-nd' %}"><span{% ifequal facet 'by-nd' %} style="font-weight: bold;"{% endifequal %}>CC BY-ND</span></a></li>
|
|
|
|
<li><a href="{% url cc_list_detail 'cc0' %}"><span{% ifequal facet 'cc0' %} style="font-weight: bold;"{% endifequal %}>CC0</span></a></li>
|
2014-05-08 14:22:35 +00:00
|
|
|
</ul>
|
|
|
|
{% endifequal %}
|
2013-03-05 21:18:54 +00:00
|
|
|
{% if pubname %}
|
|
|
|
<li>{{ pubname }}...
|
|
|
|
<ul class="menu level3">
|
2013-03-06 17:45:27 +00:00
|
|
|
<li class="first"><a href="{% url bypub_list 'popular' pubname %}"><span>Most popular</span></a></li>
|
2013-03-05 21:18:54 +00:00
|
|
|
<li><a href="{% url bypub_list pubname %}"><span>By Title</span></a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2011-09-21 15:11:36 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2012-07-21 20:26:16 +00:00
|
|
|
{% if show_langs %}
|
|
|
|
<li class="parent">
|
|
|
|
<span class="show_langs">Languages...</span>
|
2014-05-08 14:22:35 +00:00
|
|
|
<ul class="menu level3" id="lang_list">
|
2012-07-21 20:26:16 +00:00
|
|
|
<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 %}
|
2011-09-21 15:11:36 +00:00
|
|
|
<li class="parent">
|
2012-01-15 18:31:39 +00:00
|
|
|
<span>Ungluers</span>
|
2011-09-27 09:45:03 +00:00
|
|
|
<ul class="menu level2">
|
2011-11-14 20:16:12 +00:00
|
|
|
{% for ungluer in ungluers %}
|
2013-03-14 19:33:00 +00:00
|
|
|
<li class="first"><a href="{% url supporter ungluer %}">
|
2013-03-14 19:43:24 +00:00
|
|
|
<img src="{{ungluer.profile.avatar_url}}" height="30" width="30" alt="Avatar for {{ungluer}}" title="{{ungluer}}" /></a>
|
2013-03-14 19:33:00 +00:00
|
|
|
<a href="{% url supporter ungluer %}"><span class="ungluer-name">{{ungluer|truncatechars:20}}</span>
|
2011-11-14 20:16:12 +00:00
|
|
|
</a></li>
|
|
|
|
{% endfor %}
|
2013-10-27 17:15:18 +00:00
|
|
|
{% if library %}
|
2013-11-28 03:14:52 +00:00
|
|
|
<li class="first"><a href="{% url library_users library.id %}"><span>More from {{ library }}</span></a></li>
|
2013-10-27 17:15:18 +00:00
|
|
|
{% endif %}
|
2011-09-21 15:11:36 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-02-06 20:05:05 +00:00
|
|
|
{% endif %}
|
2011-09-21 15:11:36 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|