forked from symfony/demo
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathhomepage.html.twig
44 lines (39 loc) · 1.34 KB
/
homepage.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends 'base.html.twig' %}
{% block body_id 'homepage' %}
{#
the homepage is a special page which displays neither a header nor a footer.
this is done with the 'trick' of defining empty Twig blocks without any content
#}
{% block header %}{% endblock %}
{% block footer %}{% endblock %}
{% block body %}
<div class="page-header">
<h1>{{ 'title.homepage'|trans|raw }}</h1>
</div>
<div class="row">
<div class="col-sm-6">
<div class="jumbotron">
<p>
{{ 'help.browse_app'|trans|raw }}
</p>
<p>
<a class="btn btn-primary btn-lg" href="{{ path('blog_index') }}">
<i class="fa fa-users" aria-hidden="true"></i> {{ 'action.browse_app'|trans }}
</a>
</p>
</div>
</div>
<div class="col-sm-6">
<div class="jumbotron">
<p>
{{ 'help.browse_admin'|trans|raw }}
</p>
<p>
<a class="btn btn-primary btn-lg" href="{{ path('admin_index') }}">
<i class="fa fa-lock" aria-hidden="true"></i> {{ 'action.browse_admin'|trans }}
</a>
</p>
</div>
</div>
</div>
{% endblock %}