Skip to content

Commit

Permalink
Merge pull request sonata-project#584 from mweimerskirch/patch-6
Browse files Browse the repository at this point in the history
Dashboard tweak
  • Loading branch information
rande committed Feb 28, 2012
2 parents 4774df3 + 8334060 commit cc69753
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions Resources/views/Core/dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,27 @@ file that was distributed with this source code.

<tbody>
{% for admin in group.items %}
<tr>
<td class="sonata-ba-list-label">{{ admin.label|trans({}, admin.translationdomain) }}</td>
<td>
{% if admin.hasroute('create') and admin.isGranted('CREATE') %}
<a href="{{ admin.generateUrl('create')}}">
<img src="{{ asset('bundles/sonataadmin/famfamfam/add.png') }}" alt="{%- trans from 'SonataAdminBundle' %}link_add{% endtrans -%}" />
{%- trans from 'SonataAdminBundle' %}link_add{% endtrans -%}
</a>
{% endif %}
</td>
<td>
{% if admin.hasroute('list') and admin.isGranted('LIST') %}
<a href="{{ admin.generateUrl('list')}}">
<img src="{{ asset('bundles/sonataadmin/famfamfam/application_view_list.png') }}" alt="{%- trans from 'SonataAdminBundle' %}link_list{% endtrans -%}" />
{%- trans from 'SonataAdminBundle' %}link_list{% endtrans -%}
</a>
{% endif %}
</td>
</tr>
{% if admin.hasroute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %}
<tr>
<td class="sonata-ba-list-label">{{ admin.label|trans({}, admin.translationdomain) }}</td>
<td>
{% if admin.hasroute('create') and admin.isGranted('CREATE') %}
<a href="{{ admin.generateUrl('create')}}">
<img src="{{ asset('bundles/sonataadmin/famfamfam/add.png') }}" alt="{%- trans from 'SonataAdminBundle' %}link_add{% endtrans -%}" />
{%- trans from 'SonataAdminBundle' %}link_add{% endtrans -%}
</a>
{% endif %}
</td>
<td>
{% if admin.hasroute('list') and admin.isGranted('LIST') %}
<a href="{{ admin.generateUrl('list')}}">
<img src="{{ asset('bundles/sonataadmin/famfamfam/application_view_list.png') }}" alt="{%- trans from 'SonataAdminBundle' %}link_list{% endtrans -%}" />
{%- trans from 'SonataAdminBundle' %}link_list{% endtrans -%}
</a>
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
Expand Down

0 comments on commit cc69753

Please sign in to comment.