瀏覽代碼

Merge pull request #3308 from OskarStark/small

some finetuning
Oskar Stark 9 年之前
父節點
當前提交
962617588d
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Resources/views/Block/block_admin_list.html.twig
  2. 2 2
      Resources/views/CRUD/base_list.html.twig

+ 1 - 1
Resources/views/Block/block_admin_list.html.twig

@@ -27,7 +27,7 @@ file that was distributed with this source code.
                     <table class="table table-hover">
                         <tbody>
                             {% for admin in group.items %}
-                                {% if admin.hasroute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %}
+                                {% if admin.hasRoute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %}
                                             <tr>
                                                 <td class="sonata-ba-list-label" width="40%">
                                                     {{ admin.label|trans({}, admin.translationdomain) }}

+ 2 - 2
Resources/views/CRUD/base_list.html.twig

@@ -156,7 +156,7 @@ file that was distributed with this source code.
 
 
                                 <div class="pull-right">
-                                    {% if admin.hasRoute('export') and admin.isGranted("EXPORT") and admin.getExportFormats()|length %}
+                                    {% if admin.hasRoute('export') and admin.isGranted('EXPORT') and admin.getExportFormats()|length %}
                                         <div class="btn-group">
                                             <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                                 <i class="fa fa-share-square-o"></i>
@@ -171,7 +171,7 @@ file that was distributed with this source code.
                                                         {{ ("export_format_" ~ format)|trans({}, 'SonataAdminBundle') }}
                                                     </a>
                                                 <li>
-                                                    {% endfor %}
+                                                {% endfor %}
                                             </ul>
                                         </div>