Collections changed to figures

This commit is contained in:
Felipe Martín 2015-08-27 20:01:51 +02:00
parent 05440e9b27
commit 43e366af27
2 changed files with 17 additions and 4 deletions

View File

@ -6,7 +6,8 @@ from .models import Collection, AmiiboPrice
def collections(request):
return {
'COLLECTIONS': Collection.objects.all().order_by('name_eu')
'COLLECTIONS_FIGURES': Collection.objects.all().order_by('name_eu'),
'COLLECTIONS_CARDS': Collection.objects.filter(have_cards=True).order_by('name_eu'),
}

View File

@ -27,21 +27,33 @@
<div class="ui page grid">
<br />
<div class="sixteen wide column">
<div class="ui large menu">
<div class="ui fluid large menu">
<a class="item" href="/">
<i class="home icon"></i> AmiiboFindr
</a>
<div class="ui dropdown item">
{% trans "Collections" %}
{% trans "Figures" %}
<i class="dropdown icon"></i>
<div class="menu">
<a class="item" href="#">{% trans "All" %}</a>
{% for col in COLLECTIONS %}
{% for col in COLLECTIONS_FIGURES %}
<a class="item" href="{{ col.get_absolute_url }}">{{ col.name }}</a>
{% endfor %}
</div>
</div>
{% comment %}
<div class="ui dropdown item">
{% trans "Cards" %}
<i class="dropdown icon"></i>
<div class="menu">
<a class="item" href="#">{% trans "All" %}</a>
{% for col in COLLECTIONS_CARDS %}
<a class="item" href="{{ col.get_absolute_url }}">{{ col.name }}</a>
{% endfor %}
</div>
</div>
<div class="right menu"></div>
{% endcomment %}
</div>
<div class="ui breadcrumb">
{% block breadcrumb %}