Display table comment as preformatted text
This way line breaks are not lost when displaying the comment. Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
This commit is contained in:
parent
47599015fd
commit
7ec6499fc3
@ -13,7 +13,8 @@
|
||||
<div>
|
||||
<h2>{{ table.name }}</h2>
|
||||
{% if table.comment is not empty %}
|
||||
<p>{% trans 'Table comments:' %} <em>{{ table.comment }}</em></p>
|
||||
{% trans 'Table comments:' %}
|
||||
<em><pre>{{ table.comment }}</pre></em>
|
||||
{% endif %}
|
||||
|
||||
<table class="table table-striped align-middle">
|
||||
|
||||
@ -2,10 +2,8 @@
|
||||
<fieldset class="pma-fieldset">
|
||||
<legend>{% trans 'Information' %}</legend>
|
||||
{% if showtable['TABLE_COMMENT'] %}
|
||||
<p>
|
||||
<strong>{% trans 'Table comments:' %}</strong>
|
||||
{{ showtable['TABLE_COMMENT'] }}
|
||||
</p>
|
||||
<strong>{% trans 'Table comments:' %}</strong>
|
||||
<em><pre>{{ showtable['TABLE_COMMENT'] }}</pre></em>
|
||||
{% endif %}
|
||||
<a id="showusage"></a>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user