Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port server/databases/table_footer to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
- Loading branch information
1 parent
c7ca02f
commit 0e86725
Showing
4 changed files
with
53 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<tfoot> | ||
<tr> | ||
{% if is_superuser or allow_user_drop_database %} | ||
<th></th> | ||
{% endif %} | ||
<th> | ||
{% trans 'Total' %}: <span id="databases_count"> | ||
{{- database_count -}} | ||
</span> | ||
</th> | ||
{% for stat_name, stat in column_order if stat_name in first_database|keys %} | ||
{% if stat['format'] is same as('byte') %} | ||
{% set byte_format = Util_formatByteDown(stat['footer'], 3, 1) %} | ||
{% set value = byte_format[0] %} | ||
{% set unit = byte_format[1] %} | ||
{% elseif stat['format'] is same as('number') %} | ||
{% set value = Util_formatNumber(stat['footer'], 0) %} | ||
{% else %} | ||
{% set value = htmlentities(stat['footer'], 0) %} | ||
{% endif %} | ||
|
||
<th class="value"> | ||
{% if stat['description_function'] is defined %} | ||
<dfn title="{{ Charsets_getCollationDescr(stat['footer']) }}"> | ||
{{ value }} | ||
</dfn> | ||
{% else %} | ||
{{ value }} | ||
{% endif %} | ||
</th> | ||
{% if stat['format'] is same as('byte') %} | ||
<th class="unit">{{ unit }}</th> | ||
{% endif %} | ||
{% endfor %} | ||
{% if master_replication %} | ||
<th></th> | ||
{% endif %} | ||
{% if slave_replication %} | ||
<th></th> | ||
{% endif %} | ||
<th></th> | ||
</tr> | ||
</tfoot> |