From 647cd4711ecd38459e60f79f94761c9903a5a488 Mon Sep 17 00:00:00 2001 From: panda Date: Tue, 11 Jul 2023 12:57:43 +0800 Subject: [PATCH] ui: move create training to top (#613) --- .../ui-default/templates/training_main.html | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/ui-default/templates/training_main.html b/packages/ui-default/templates/training_main.html index d61b1fc4f..2b3762d2e 100644 --- a/packages/ui-default/templates/training_main.html +++ b/packages/ui-default/templates/training_main.html @@ -52,6 +52,23 @@
+ {% if handler.user.hasPerm(perm.PERM_CREATE_TRAINING) %} +
+
+

{{ _('Create Training Plan') }}

+
+ +
+
+

{{ _('You can create your own training plans and share them with others.') }}

+
+
+
+ {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
@@ -77,23 +94,6 @@
{% endif %} - {% if handler.user.hasPerm(perm.PERM_CREATE_TRAINING) %} -
-
-

{{ _('Create Training Plan') }}

-
- -
-
-

{{ _('You can create your own training plans and share them with others.') }}

-
-
-
- {% endif %}
{% endblock %}