| author | cavaliet |
| Mon, 07 Jul 2014 17:23:47 +0200 | |
| changeset 122 | d672f7dd74dc |
| parent 13 | ed54c98a7fc8 |
| permissions | -rwxr-xr-x |
| 4 | 1 |
{% extends 'CompanyBaseBundle::layout.html.twig' %} |
2 |
||
| 9 | 3 |
{% block toolbar %} |
| 13 | 4 |
<div>COMPANY TOOL BAR - <a href="{{ url('company_other') }}">other url</a> - <a href="{{ url('all_documents') }}">All Documents</a> - <a href="{{ url('all_tags') }}">All Tags</a></div> |
| 9 | 5 |
{% endblock %} |
6 |
||
7 |
||
| 4 | 8 |
{% block content %} |
9 |
<div> |
|
10 |
{% if is_granted("IS_AUTHENTICATED_FULLY") %} |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
11 |
<h1>{{ 'hello'| trans({'%name%':user.getUsername},'CompanyBaseBundle') }} !</h1> |
| 4 | 12 |
{% else %} |
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
13 |
<h1>{{ 'hello'| trans({'%name%':'Anonymous'},'CompanyBaseBundle') }} !</h1> |
| 4 | 14 |
{% endif %} |
15 |
</div> |
|
16 |
<div> |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
4
diff
changeset
|
17 |
<a href="{{ url('document') }}">{{ 'document.list' | trans({},'CompanyBaseBundle')}}</a> |
| 4 | 18 |
</div> |
19 |
||
20 |
{% endblock %} |