mirror of
https://github.com/simonw/datasette.git
synced 2026-09-04 23:54:08 +02:00
18 lines
621 B
HTML
18 lines
621 B
HTML
{% macro nav(request, database=None, table=None) -%}
|
|
{% if crumb_items is defined %}
|
|
{% set items=crumb_items(request=request, database=database, table=table) %}
|
|
{% if items %}
|
|
<p class="crumbs">
|
|
{% if metadata and metadata.brand %}
|
|
<a style="font-size: 18px; font-weight:bold; padding-right: 8px;" href="{{metadata.brand_url or '#'}}">{{metadata.brand}}</a>
|
|
{% endif %}
|
|
{% for item in items %}
|
|
<a href="{{ item.href }}">{{ item.label }}</a>
|
|
{% if not loop.last %}
|
|
/
|
|
{% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
{%- endmacro %}
|