ui: move create training to top (#613)

This commit is contained in:
panda authored and GitHub committed 2023-07-11 12:57:43 +08:00
1 parent bb000356e0
commit 647cd4711e
1 file changed
+17 -17
@@ -52,6 +52,23 @@
</div>
</div>
<div class="large-3 columns">
{% if handler.user.hasPerm(perm.PERM_CREATE_TRAINING) %}
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Create Training Plan') }}</h1>
</div>
<ol class="menu">
<li class="menu__item">
<a href="{{ url('training_create') }}" class="menu__link"><span class="icon icon-add"></span> {{ _('New Training Plan') }}</a>
</li>
</ol>
<div class="section__body">
<div class="typo supplementary">
<p>{{ _('You can create your own training plans and share them with others.') }}</p>
</div>
</div>
</div>
{% endif %}
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
<div class="section side">
<div class="section__header">
@@ -77,23 +94,6 @@
</div>
</div>
{% endif %}
{% if handler.user.hasPerm(perm.PERM_CREATE_TRAINING) %}
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Create Training Plan') }}</h1>
</div>
<ol class="menu">
<li class="menu__item">
<a href="{{ url('training_create') }}" class="menu__link"><span class="icon icon-add"></span> {{ _('New Training Plan') }}</a>
</li>
</ol>
<div class="section__body">
<div class="typo supplementary">
<p>{{ _('You can create your own training plans and share them with others.') }}</p>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}