From eb72c2d549dabe9c82d7e74cd2aa384dd6d2a5ba Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 28 Jul 2016 20:25:02 +0200 Subject: [PATCH] Display plugins in two columns --- .../pretixcontrol/event/plugins.html | 92 ++++++++++--------- 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/event/plugins.html b/src/pretix/control/templates/pretixcontrol/event/plugins.html index cb82f6843..cad96e433 100644 --- a/src/pretix/control/templates/pretixcontrol/event/plugins.html +++ b/src/pretix/control/templates/pretixcontrol/event/plugins.html @@ -11,52 +11,56 @@ {% trans "Your changes have been saved." %} {% endif %} - {% for plugin in plugins %} -
-
-
-
-

{{ plugin.name }}

-
-
+
+ {% for plugin in plugins %} +
+
+
+
+
+

{{ plugin.name }}

+
+
+ {% if plugin.app.compatibility_errors %} + + {% elif plugin.module in plugins_active %} + + {% else %} + + {% endif %} +
+
+
+
+

{% blocktrans trimmed with v=plugin.version a=plugin.author %} + Version {{ v }} by {{ a }} + {% endblocktrans %}

+

{{ plugin.description }}

{% if plugin.app.compatibility_errors %} - - {% elif plugin.module in plugins_active %} - - {% else %} - - {% endif %} -
-
-
-
-

{% blocktrans trimmed with v=plugin.version a=plugin.author %} - Version {{ v }} by {{ a }} - {% endblocktrans %}

-

{{ plugin.description }}

- {% if plugin.app.compatibility_errors %} -
- {% trans "This plugin cannot be enabled for the following reasons:" %} -
    - {% for e in plugin.app.compatibility_errors %} -
  • {{ e }}
  • - {% endfor %} -
+
+ {% trans "This plugin cannot be enabled for the following reasons:" %} +
    + {% for e in plugin.app.compatibility_errors %} +
  • {{ e }}
  • + {% endfor %} +
+
+ {% endif %} + {% if plugin.app.compatibility_warnings %} +
+ {% trans "This plugin reports the following problems:" %} +
    + {% for e in plugin.app.compatibility_warnings %} +
  • {{ e }}
  • + {% endfor %} +
+
+ {% endif %}
- {% endif %} - {% if plugin.app.compatibility_warnings %} -
- {% trans "This plugin reports the following problems:" %} -
    - {% for e in plugin.app.compatibility_warnings %} -
  • {{ e }}
  • - {% endfor %} -
-
- {% endif %} -
-
- {% endfor %} +
+
+ {% endfor %} +
{% endblock %}