From 5b209702bdb0ec898de95ca243e63a186fd23dbe Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.silence@gmail.com> Date: Sun, 31 Jul 2016 23:07:20 +0300 Subject: [PATCH] base.twig refactoring --- ~dev_rating/application/views/base.twig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig index bb31e9a06..3b97b9547 100644 --- a/~dev_rating/application/views/base.twig +++ b/~dev_rating/application/views/base.twig @@ -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 %} -- GitLab