Skip to content
Snippets Groups Projects
Commit 5b209702 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

base.twig refactoring

parent 63b8bbc6
Branches
Tags
No related merge requests found
......@@ -110,8 +110,6 @@
{# see media/js/profile.js, views/profile/*.twig #}
<div id="username">{{ User.FirstName }} {{ User.LastName }}</div>
{% set officeTitle = '' %}
{% if User.isAdmin %}
{% set officeTitle = 'Администрирование' %}
{% elseif User.isDean %}
......@@ -120,7 +118,7 @@
{% set officeTitle = 'Сводные ведомости' %}
{% endif %}
{% if officeTitle != '' %}
{% if officeTitle %}
{{ HTML.anchor('/office', '<i class="fa fa-university fa-md fa-fw"></i>', {'title': officeTitle })|raw }}
{% endif %}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment