gl-website-deployer/admin/phpMyAdmin/templates/menu/breadcrumbs.twig
2024-11-19 08:02:04 +01:00

45 lines
1.7 KiB
Twig

<div id="floating_menubar" class="d-print-none"></div>
<nav id="server-breadcrumb" aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-navbar">
<li class="breadcrumb-item">
{{ show_icons('TabsMode') ? get_image('s_host') }}
<a href="{{ url(server.url) }}" data-raw-text="{{ server.name }}" draggable="false">
{% if show_text('TabsMode') %}{% trans 'Server:' %}{% endif %}
{{ server.name }}
</a>
</li>
{% if database is not empty %}
<li class="breadcrumb-item">
{{ show_icons('TabsMode') ? get_image('s_db') }}
<a href="{{ url(database.url, {'db': database.name}) }}" data-raw-text="{{ database.name }}" draggable="false">
{% if show_text('TabsMode') %}{% trans 'Database:' %}{% endif %}
{{ database.name }}
</a>
</li>
{% if table is not empty %}
<li class="breadcrumb-item">
{{ show_icons('TabsMode') ? get_image(table.is_view ? 'b_views' : 's_tbl') }}
<a href="{{ url(table.url, {'db': database.name, 'table': table.name}) }}" data-raw-text="{{ table.name }}" draggable="false">
{% if show_text('TabsMode') %}
{% if table.is_view %}
{% trans 'View:' %}
{% else %}
{% trans 'Table:' %}
{% endif %}
{% endif %}
{{ table.name }}
</a>
</li>
{% if table.comment is not empty %}
<span class="breadcrumb-comment" draggable="false">“{{ table.comment }}”</span>
{% endif %}
{% elseif database.comment is not empty %}
<span class="breadcrumb-comment" draggable="false">“{{ database.comment }}”</span>
{% endif %}
{% endif %}
</ol>
</nav>