Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 4e35666

Browse files
committed
Moving the DatabaseList label condition from the template part to macros.
1 parent 8d21f15 commit 4e35666

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

provisioning/templates/dashboard.html.j2

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,15 @@
279279
</div>
280280
{%- endmacro -%}
281281

282+
{%- macro SectionDatabaseListLabel() -%}
283+
{% if 'adminer' in installed_extras -%}
284+
Databases using Adminer
285+
{% else -%}
286+
Databases
287+
{%- endif %}
288+
{%- endmacro -%}
289+
290+
282291
{%- macro sectionDatabaseUserList() -%}
283292
<div class="table-responsive">
284293
<table class="table table-striped table-hover">
@@ -324,7 +333,7 @@
324333

325334
<div class="col-md-3">
326335
<section class="panel panel-default">
327-
<div class="panel-heading">Databases {% if 'adminer' in installed_extras -%} with Adminer {%- endif %} </div>
336+
<div class="panel-heading"> {{ SectionDatabaseListLabel() }}</div>
328337
<div class="panel-body">
329338
{{ sectionDatabaseList() }}
330339

0 commit comments

Comments
 (0)