Skip to content

Commit

Permalink
User top menu fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
joekurta committed Aug 27, 2015
1 parent 5a1152e commit b819fff
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Resources/views/base.html.twig
Expand Up @@ -39,16 +39,16 @@
<div class="navbar-header col-xs-6 text-right">
{% if app.user %}
<div class="hidden-xs hidden-sm nav-ul">
<a href="{{ path('root') }}">Dashboard</a><!--
--><a href="{{ path('user_landing') }}">Events</a><!--
<a href="{{ path('root') }}">Dashboard</a>
<a href="{{ path('user_landing') }}">Events</a>
{% if is_granted ('ROLE_ADMIN') %}
--><a href="{{ path('admin_index') }}">Admin Interface</a><!--
<a href="{{ path('admin_index') }}">Admin Interface</a>
{% endif %}
{% if app.request.cookies.has('numOfPresentations') and app.request.cookies.get('numOfPresentations') > 0 and not is_granted ('ROLE_ADMIN')%}
--><a href="{{ path('user_presentations') }}">My lectures</a><!--
<!--{% if app.request.cookies.has('numOfPresentations') and app.request.cookies.get('numOfPresentations') > 0 and not is_granted ('ROLE_ADMIN')%}
<a href="{{ path('user_presentations') }}">My lectures</a>
{% endif %}
--><!--{% if(app.request.cookies.has('userEditEnabled')) and not is_granted ('ROLE_ADMIN')%}
<a href="{{ path('user_edit') }}">Edit my info</a>--><!--
{% if(app.request.cookies.has('userEditEnabled')) and not is_granted ('ROLE_ADMIN')%}
<a href="{{ path('user_edit') }}">Edit my info</a>
{% endif %}-->
</div>
<div class="visible-xs visible-sm dropdown">
Expand All @@ -59,12 +59,12 @@
{% if is_granted ('ROLE_ADMIN') %}
<li><a href="{{ path('admin_index') }}">Admin Interface</a></li>
{% endif %}
{% if app.request.cookies.has('numOfPresentations') and app.request.cookies.get('numOfPresentations') > 0 and not is_granted ('ROLE_ADMIN')%}
<!--{% if app.request.cookies.has('numOfPresentations') and app.request.cookies.get('numOfPresentations') > 0 and not is_granted ('ROLE_ADMIN')%}
<li><a href="{{ path('user_presentations') }}">My lectures</a></li>
{% endif %}
{% if(app.request.cookies.has('userEditEnabled')) and not is_granted ('ROLE_ADMIN')%}
<li><a href="{{ path('user_edit') }}">Edit my info</a></li>
{% endif %}
{% endif %}-->
</ul>
</div>
{% endif %}
Expand Down

0 comments on commit b819fff

Please sign in to comment.