Commit 5da22175 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Create URLs for catalog Bradcrumbs

parent 75f37c53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
<table>
{%  for a in authors %}
	<tr><td>
		<b>{{ a.last_name }} {{ a.first_name }}</b> <a href="{% url "web:searchbooks" %}?searchtype=a&searchterms={{a.id}}"><span style="font-size:80%;">{% blocktrans with a_book_count=a.book_count %}Total: {{ a_book_count }} books.{% endblocktrans %}</span></a>
		<a href="{% url "web:searchbooks" %}?searchtype=a&searchterms={{a.id}}"><b>{{ a.last_name }} {{ a.first_name }}</b></a> <span style="font-size:80%;">{% blocktrans with a_book_count=a.book_count %}Total: {{ a_book_count }} books.{% endblocktrans %}</span>
	</td></tr>		
{% endfor %}
</table>
+9 −0
Original line number Diff line number Diff line
@@ -5,5 +5,14 @@
    {% for b in breadcrumbs %}
    <li>{{ b }}</li>
    {% endfor %}
    
    {% for b in breadcrumbs_cat %}
    <li>
    {% if b.1 > 0 %}<a href="{% url "web:catalog" %}?cat={{b.1}}">{% endif %}
    {% if b.1 == 0 %}<a href="{% url "web:catalog" %}">{% endif %}    
    {{ b.0 }}
    {% if b.1 >= 0 %}</a>{% endif %}    
    </li>
    {% endfor %}    
  </ul>
</nav>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
<table>
{%  for s in series %}
	<tr><td>
			<b>{{ s.ser }}</b> <a href="{% url "web:searchbooks" %}?searchtype=s&searchterms={{s.id}}"><span style="font-size:80%;">{% blocktrans with s_book_count=s.book_count %}Total: {{ s_book_count }} books.{% endblocktrans %}</span></a>
			<a href="{% url "web:searchbooks" %}?searchtype=s&searchterms={{s.id}}"><b>{{ s.ser }}</b></a> <span style="font-size:80%;">{% blocktrans with s_book_count=s.book_count %}Total: {{ s_book_count }} books.{% endblocktrans %}</span>
	</td></tr>		
{% endfor %}
</table>
Loading