src/Company/BaseBundle/Resources/views/Default/index.html.twig
author cavaliet
Mon, 07 Jul 2014 17:23:47 +0200
changeset 122 d672f7dd74dc
parent 13 ed54c98a7fc8
permissions -rwxr-xr-x
Added tag V00.17 for changeset ada5f3d8b5b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     1
{% extends 'CompanyBaseBundle::layout.html.twig' %}
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     2
9
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     3
{% block toolbar %}
13
ed54c98a7fc8 Add first files for tag list management.
cavaliet
parents: 9
diff changeset
     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
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     5
{% endblock %}
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     6
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     7
4
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     8
{% block content %}
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
     9
<div>
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    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
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    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
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    14
{% endif %}
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    15
</div>
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    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
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    18
</div>
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    19
02eab39cf8c6 add user in headers
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    20
{% endblock %}