{% block head_title %}{{ country }} - {% trans "Geographic Navigator" %} - {{ block.super }}{% endblock %}
{% block title %}
-<img src="{{ STATIC_URL }}telemeta/images/world_red.png" alt="geo-country" style="vertical-align:middle" /> <a href="{% url "telemeta-geo-continents" %}">{% trans "World" %}</a> /
- <a href="{% url "telemeta-geo-countries" continent.flatname %}">{{ continent }}</a> / {{ country }}
+
+<div class='row'>
+ <div class="col-md-4">
+ <img src="{{ STATIC_URL }}telemeta/images/world_red.png" alt="geo-country" style="vertical-align:middle" /> <a href="{% url "telemeta-geo-continents" %}">{% trans "World" %}</a> /
+ <a href="{% url "telemeta-geo-countries" continent.flatname %}">{{ continent }}</a> / {{ country }} ({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ count }})
+ </div>
+<div class="col-md-8">
+{% bootstrap_paginate page_obj range=10 show_first_last="True" %}
+</div>
+<div class="col-md-0"> </div>
+</div>
+
{% endblock title %}
{% block content %}
{% block head_title %}{{ country }} - {% trans "Geographic Navigator" %} - {{ block.super }}{% endblock %}
{% block title %}
-<a href="{% url "telemeta-geo-continents" %}">{% trans "World" %}</a> /
- <a href="{% url "telemeta-geo-countries" continent.flatname %}">{{ continent }}</a>
- / {{ country }}
+<div class='row'>
+ <div class="col-md-4">
+ <img src="{{ STATIC_URL }}telemeta/images/world_red.png" alt="geo-country" style="vertical-align:middle" /> <a href="{% url "telemeta-geo-continents" %}">{% trans "World" %}</a> /
+ <a href="{% url "telemeta-geo-countries" continent.flatname %}">{{ continent }}</a> / {{ country }} ({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ count }})
+ </div>
+<div class="col-md-8">
+{% bootstrap_paginate page_obj range=10 show_first_last="True" %}
+</div>
+<div class="col-md-0"> </div>
+</div>
{% endblock title %}
{% block content %}
context = super(GeoCountryCollectionView, self).get_context_data(*args, **kwargs)
context['country'] = self.country
context['continent'] = self.continent
+ context['count'] = self.object_list.count()
return context
-
class GeoCountryItemView(ListView):
model = MediaItem
context = super(GeoCountryItemView, self).get_context_data(*args, **kwargs)
context['country'] = self.country
context['continent'] = self.continent
+ context['count'] = self.object_list.count()
return context