|
3
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="UTF-8" /> |
|
|
5 |
</head> |
|
|
6 |
<body> |
|
|
7 |
<div> |
|
|
8 |
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %} |
|
|
9 |
{{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} | |
|
|
10 |
<a href="{{ path('fos_user_security_logout') }}"> |
|
|
11 |
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }} |
|
|
12 |
</a> |
|
|
13 |
{% else %} |
|
|
14 |
<a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a> |
|
|
15 |
{% endif %} |
|
|
16 |
</div> |
|
|
17 |
|
|
|
18 |
{% for key, message in app.session.getFlashes() %} |
|
|
19 |
<div class="{{ key }}"> |
|
|
20 |
{{ message|trans({}, 'FOSUserBundle') }} |
|
|
21 |
</div> |
|
|
22 |
{% endfor %} |
|
|
23 |
|
|
|
24 |
<div> |
|
|
25 |
{% block fos_user_content %} |
|
|
26 |
{% endblock fos_user_content %} |
|
|
27 |
</div> |
|
|
28 |
</body> |
|
|
29 |
</html> |