mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: move create training to top (#613)
This commit is contained in:
1 parent
bb000356e0
commit
647cd4711e
1 file changed
+17
-17
@@ -52,6 +52,23 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="large-3 columns">
|
<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) %}
|
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
|
||||||
<div class="section side">
|
<div class="section side">
|
||||||
<div class="section__header">
|
<div class="section__header">
|
||||||
@@ -77,23 +94,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% 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>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in new issue
Block a user