mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
* Add options for a disclaimer, fix html code and remove deprecations * Update READMEs * Minor improvement to portal admin [skip ci]
28 lines
1010 B
HTML
28 lines
1010 B
HTML
{% extends "base.html" %}
|
|
{% block header %}
|
|
<p class="lead text-body-secondary">Results found: {{ matches }}</p>
|
|
{% endblock %}
|
|
{% block cards_layout %}
|
|
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-3">
|
|
{% block cards %}
|
|
{% for d in data %}
|
|
{% if d.type == "roster" %}
|
|
{% include "cards/roster.html" %}
|
|
{% elif d.type == "company" %}
|
|
{% include "cards/company.html" %}
|
|
{% elif d.type == "rolling_stock_type" %}
|
|
{% include "cards/rolling_stock_type.html" %}
|
|
{% elif d.type == "scale" %}
|
|
{% include "cards/scale.html" %}
|
|
{% elif d.type == "consist" %}
|
|
{% include "cards/consist.html" %}
|
|
{% elif d.type == "manufacturer" %}
|
|
{% include "cards/manufacturer.html" %}
|
|
{% elif d.type == "book" or d.type == "catalog" %}
|
|
{% include "cards/book.html" %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
</div>
|
|
{% endblock %}
|