|
@@ -28,12 +28,12 @@ file that was distributed with this source code.
|
|
|
<!-- jQuery code -->
|
|
|
<link rel="stylesheet" href="{{ asset('bundles/sonatajquery/themes/flick/jquery-ui-1.8.16.custom.css') }}" type="text/css" media="all" />
|
|
|
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap.min.css') }}" type="text/css" media="all" >
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap-responsive.min.css') }}" type="text/css" media="all" >
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap.min.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/bootstrap/css/bootstrap-responsive.min.css') }}" type="text/css" media="all" />
|
|
|
|
|
|
<!-- base application asset -->
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/layout.css') }}" type="text/css" media="all">
|
|
|
- <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/colors.css') }}" type="text/css" media="all">
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/layout.css') }}" type="text/css" media="all" />
|
|
|
+ <link rel="stylesheet" href="{{ asset('bundles/sonataadmin/css/colors.css') }}" type="text/css" media="all" />
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block javascripts %}
|
|
@@ -87,9 +87,10 @@ file that was distributed with this source code.
|
|
|
{{ admin_pool.title }}
|
|
|
</a>
|
|
|
{% endblock %}
|
|
|
-
|
|
|
+
|
|
|
<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 %}
|
|
@@ -106,6 +107,26 @@ file that was distributed with this source code.
|
|
|
{% 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>
|
|
|
+ <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 %}
|
|
|
+ {% endblock %}
|
|
|
+>>>>>>> origin/2.0
|
|
|
</ul>
|
|
|
</div>
|
|
|
{% endif %}
|