priv (unstable)

This commit is contained in:
undefined committed 2020-06-29 13:33:44 +08:00
1 parent 554698189c
commit e092efca20
63 files changed
+706 -397

No files matched your search

+3 -3
View File
@@ -37,7 +37,7 @@
<span class="icon training-status--icon done"></span>
<span class="training-status--text done">{{ _('Completed') }} 100%</span>
{% endif %}
{% elif handler.hasPerm(perm.PERM_LOGGEDIN) %}
{% elif handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
<span class="icon training-status--icon outside"></span> <span class="training-status--text outside">{{ _('Not Enrolled') }}</span>
{% endif %}
</li>
@@ -52,7 +52,7 @@
</div>
</div>
<div class="large-3 columns">
{% if handler.hasPerm(perm.PERM_LOGGEDIN) %}
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Enrolled') }}</h1>
@@ -76,7 +76,7 @@
</div>
</div>
{% endif %}
{% if handler.hasPerm(perm.PERM_CREATE_TRAINING) %}
{% if handler.user.hasPerm(perm.PERM_CREATE_TRAINING) %}
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Create Training Plan') }}</h1>