Skip to content

Commit

Permalink
Backend: added 2 column layout to plugin detail view. added mlstring
Browse files Browse the repository at this point in the history
  • Loading branch information
psilo909 committed Sep 15, 2017
1 parent c5796cd commit db34201
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions backend/templates/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,25 @@
<div class="panel panel-default">
<div class="panel-heading">{{ _('Plugin spezifische Attribute') }}:</div>
<div class="panel-body">
{% if p.attributes|length > 2 %}
<table>
{% set first = True %}
{% for key, value in p.attributes.items() %}
{% if key not in ['class_path', 'class_name'] %}
<strong>{{ key }}:</strong> {{ value }}<br/>
{%endif%}
{% if loop.index % 2 > 0 %}
<tr>
{% endif %}
<td style="width: 300px;"><strong>{{ key }}:</strong> {{ value }}</td>
{% if loop.index % 2 > 0 and not first %}
</tr>
{% else %}
{% set first = False %}
{% endif %}
{% endfor %}
{% endif %}
</table>
</div>
<div class="panel-heading">{{ _('Plugin Metadaten') }}:</div>
<div class="panel-body">
{% if p.metadata.get_string('description')[lang] %}
<strong>{{ _('Beschreibung') }}:</strong> {{ p.metadata.get_string('description')[lang] }}<br/>
{% if p.metadata.get_mlstring('description')[lang] %}
<strong>{{ _('Beschreibung') }}:</strong> {{ p.metadata.get_mlstring('description')[lang] }}<br/>
{% endif %}

{% if p.metadata.get_string('documentation') %}
Expand Down

0 comments on commit db34201

Please sign in to comment.