Merge pull request #651 from Gluejar/tweak-doab-links

change target of links to PG/DOAB and add facet links to explore panel
pull/1/head
Raymond Yee 2016-12-16 10:55:09 -08:00 committed by GitHub
commit ea03f59ad2
2 changed files with 15 additions and 9 deletions

View File

@ -18,6 +18,12 @@
<li><a href="{% url 'free' %}"><span>Free eBooks!</span></a> <li><a href="{% url 'free' %}"><span>Free eBooks!</span></a>
{% if work %} {% if work %}
<ul class="menu level3"> <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 %} {% for subject in work.subjects.all %}
{% if subject.is_visible and subject.free_works.1 %} {% if subject.is_visible and subject.free_works.1 %}
<li><a href="{% url 'faceted_list' subject.kw %}"><span>{{ subject }}</span></a></li> <li><a href="{% url 'faceted_list' subject.kw %}"><span>{{ subject }}</span></a></li>

View File

@ -291,12 +291,12 @@
{% endfor %} {% endfor %}
{% if work.doab %} {% if work.doab %}
<p> <p>
This book is included in <a href="{% url 'faceted_list' 'id/doab' %}?order_by=popular">DOAB</a>. This book is included in <a href="http://www.doabooks.org/doab?func=search&query=rid%3A{{ work.doab }}">DOAB</a>.
</p> </p>
{% endif %} {% endif %}
{% if work.gtbg %} {% if work.gtbg %}
<p> <p>
This book is included in <a href="{% url 'faceted_list' 'id/gtbg' %}?order_by=popular">Project Gutenberg</a>. This book is included in <a href="https://www.gutenberg.org/ebooks/{{ work.gtbg }}">Project Gutenberg</a>.
</p> </p>
{% endif %} {% endif %}
</div> </div>