templates/default/homepage.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body_id 'homepage' %}
  3. {#
  4.     the homepage is a special page which displays neither a header nor a footer.
  5.     this is done with the 'trick' of defining empty Twig blocks without any content
  6. #}
  7. {% block header %}{% endblock %}
  8. {% block footer %}{% endblock %}
  9. {% block body %}
  10.     <div class="page-header">
  11.         <h1>{{ 'title.homepage'|trans|raw }}</h1>
  12.     </div>
  13.     <div class="row">
  14.         <div class="col-sm-6">
  15.             <div class="jumbotron">
  16.                 <p>
  17.                     {{ 'help.browse_app'|trans|raw }}
  18.                 </p>
  19.                 <p>
  20.                     <a class="btn btn-primary btn-lg" href="{{ path('blog_index') }}">
  21.                         <i class="fa fa-users" aria-hidden="true"></i> {{ 'action.browse_app'|trans }}
  22.                     </a>
  23.                 </p>
  24.             </div>
  25.         </div>
  26.         <div class="col-sm-6">
  27.             <div class="jumbotron">
  28.                 <p>
  29.                     {{ 'help.browse_admin'|trans|raw }}
  30.                 </p>
  31.                 <p>
  32.                     <a class="btn btn-primary btn-lg" href="{{ path('admin_index') }}">
  33.                         <i class="fa fa-lock" aria-hidden="true"></i> {{ 'action.browse_admin'|trans }}
  34.                     </a>
  35.                 </p>
  36.             </div>
  37.         </div>
  38.     </div>
  39. {% endblock %}