Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces tables with list group cards. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
bade581
commit d82d598
Showing
7 changed files
with
163 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,39 @@ | ||
<div class="container-fluid"> | ||
<h2> | ||
{% trans 'Analyzing tables' %} | ||
{% trans 'Analyze table' %} | ||
{{ show_mysql_docu('ANALYZE_TABLE') }} | ||
</h2> | ||
|
||
{{ message|raw }} | ||
|
||
<table class="mt-3"> | ||
<thead> | ||
<tr> | ||
<th>{% trans 'Table' %}</th> | ||
<th>{% trans 'Operation' %}</th> | ||
<th>{% trans 'Message type' %}</th> | ||
<th>{% trans 'Message' %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for row in rows %} | ||
<tr> | ||
<td>{{ row.Table }}</td> | ||
<td>{{ row.Op|title }}</td> | ||
<td>{{ row.Msg_type|title }}</td> | ||
<td>{{ row.Msg_text }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% for name, table in rows %} | ||
<div class="card mb-3"> | ||
<div class="card-header">{{ name }}</div> | ||
|
||
<ul class="list-group list-group-flush"> | ||
{% for row in table %} | ||
<li class="list-group-item"> | ||
{% if row.Op|lower != 'analyze' %} | ||
<span class="badge badge-secondary">{{ row.Op|title }}</span> | ||
{% endif %} | ||
|
||
{% set badge_variation %} | ||
{%- if row.Msg_type|lower == 'error' -%} | ||
badge-danger | ||
{%- elseif row.Msg_type|lower == 'warning' -%} | ||
badge-warning | ||
{%- elseif row.Msg_type|lower == 'info' or row.Msg_type|lower == 'note' -%} | ||
badge-info | ||
{%- else -%} | ||
badge-secondary | ||
{%- endif -%} | ||
{% endset %} | ||
<span class="badge {{ badge_variation }}">{{ row.Msg_type|title }}</span> | ||
|
||
{{ row.Msg_text }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endfor %} | ||
</div> |
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 |
---|---|---|
@@ -1,29 +1,41 @@ | ||
<div class="container-fluid"> | ||
<h2> | ||
{% trans 'Checking tables' %} | ||
{% trans 'Check table' %} | ||
{{ show_mysql_docu('CHECK_TABLE') }} | ||
</h2> | ||
|
||
{{ message|raw }} | ||
|
||
<table class="mt-3"> | ||
<thead> | ||
<tr> | ||
<th>{% trans 'Table' %}</th> | ||
<th>{% trans 'Message type' %}</th> | ||
<th>{% trans 'Message' %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for row in rows %} | ||
<tr> | ||
<td>{{ row.Table }}</td> | ||
<td>{{ row.Msg_type|title }}</td> | ||
<td>{{ row.Msg_text }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% for name, table in rows %} | ||
<div class="card mb-3"> | ||
<div class="card-header">{{ name }}</div> | ||
|
||
<ul class="list-group list-group-flush"> | ||
{% for row in table %} | ||
<li class="list-group-item"> | ||
{% if row.Op|lower != 'check' %} | ||
<span class="badge badge-secondary">{{ row.Op|title }}</span> | ||
{% endif %} | ||
|
||
{% set badge_variation %} | ||
{%- if row.Msg_type|lower == 'error' -%} | ||
badge-danger | ||
{%- elseif row.Msg_type|lower == 'warning' -%} | ||
badge-warning | ||
{%- elseif row.Msg_type|lower == 'info' or row.Msg_type|lower == 'note' -%} | ||
badge-info | ||
{%- else -%} | ||
badge-secondary | ||
{%- endif -%} | ||
{% endset %} | ||
<span class="badge {{ badge_variation }}">{{ row.Msg_type|title }}</span> | ||
|
||
{{ row.Msg_text }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endfor %} | ||
|
||
{{ indexes_problems|raw }} | ||
</div> |
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 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