Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Jul 19, 2012
1 parent ff1c009 commit a92f762
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions Resources/views/standard_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,12 @@ file that was distributed with this source code.

<div class="nav-collapse">
<ul class="nav">
<<<<<<< HEAD
{% block top_bar_before_nav %} {% endblock %}
{% if app.security.token and is_granted('ROLE_SONATA_ADMIN') %}
{% for group in admin_pool.dashboardgroups %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ group.label|trans({}, group.label_catalogue) }} <span class="caret"></span></a>
<ul class="dropdown-menu">
{% for admin in group.items %}
{% if admin.hasroute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %}
<li><a href="{{ admin.generateUrl('list')}}">{{ admin.label|trans({}, admin.translationdomain) }}</a></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endfor %}
{% endif %}
{% block top_bar_after_nav %} {% endblock %}
=======

{% block sonata_top_bar_nav %}
{# There is no hasRole in a TokenInterface ... #}
{% if app.security.token and is_granted('ROLE_SONATA_ADMIN') %}
{% for group in admin_pool.dashboardgroups %}
<li class="dropdown">
<a href="#" class="dropdown-toggle">{{ group.label|trans({}, group.label_catalogue) }}</a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ group.label|trans({}, group.label_catalogue) }} <span class="caret"></span></a>
<ul class="dropdown-menu">
{% for admin in group.items %}
{% if admin.hasroute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %}
Expand All @@ -126,7 +107,7 @@ file that was distributed with this source code.
{% endfor %}
{% endif %}
{% endblock %}
>>>>>>> origin/2.0
{% block top_bar_after_nav %} {% endblock %}
</ul>
</div>
{% endif %}
Expand Down

0 comments on commit a92f762

Please sign in to comment.