bijoe: display total count of facts in each warehouses
This commit is contained in:
parent
62089e7951
commit
ad831cb427
|
@ -1,6 +1,17 @@
|
|||
{% extends "bijoe/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block extrascripts %}
|
||||
<style>
|
||||
span.cube-count {
|
||||
border-radius: 0.5ex;
|
||||
background: lightblue;
|
||||
color: white;
|
||||
padding: 2px;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
{% url 'homepage' as homepage_url %}
|
||||
<a href="{{ homepage_url }}">{% trans "Homepage" %}</a>
|
||||
|
@ -11,7 +22,7 @@
|
|||
<ul class="bijoe-cubes">
|
||||
{% for cube in warehouse.cubes %}
|
||||
{% url 'cube' warehouse=warehouse.name cube=cube.name as cube_url %}
|
||||
<li><a href="{{ cube_url }}">{{ cube.label }}</a></li>
|
||||
<li><a href="{{ cube_url }}">{{ cube.label }} <span class="cube-count">{{ cube.count }}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
Reference in New Issue