51 lines
1.8 KiB
Twig
51 lines
1.8 KiB
Twig
{% extends "DeblanBlogBundle:Default:home.html.twig" %}
|
|
|
|
{% block breadcrumb %}
|
|
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
|
|
|
<li class="sep"> » </li>
|
|
<li><a href="{{ cms_path('tiny', {page: 1}) }}">{{ page.seoTitle|pp(page.object)|pp(page)|e }}</a></li>
|
|
|
|
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
|
<li class="sep"> » </li>
|
|
<li>Page {{ page.pager.currentPage }}</li>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>
|
|
{{ page.seoTitle|pp(page.object)|pp(page)|e }}
|
|
|
|
<a href="https://tiny.deblan.org/public.php?op=rss&id=-1&key=c35938b7d791af1d550a8e11e77eb91ad2bf7a6f" target="_blank">
|
|
<span class="social social-rss" style="width: 20px; height: 20px; display: inline-block"></span>
|
|
</a>
|
|
</h1>
|
|
|
|
{% for post in page.pager %}
|
|
{{ include('DeblanBlogBundle:Default:tinyThePost.html.twig', {post: post}) }}
|
|
{% endfor %}
|
|
|
|
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
|
<div class="btn-toolbar" role="toolbar">
|
|
<div class="btn-group">
|
|
{% if page.pager.hasPreviousPage %}
|
|
<a class="btn btn-primary" href="{{ cms_path('tiny', {page: page.pager.getPreviousPage}) }}">Précédent</a>
|
|
{% endif %}
|
|
|
|
{% if page.pager.hasNextPage %}
|
|
<a class="btn btn-primary" href="{{ cms_path('tiny', {page: page.pager.getNextPage}) }}">Suivant</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block main_menu_bind %}
|
|
{% if page.pager.hasPreviousPage %}
|
|
<li class="bind"><a href="{{ cms_path('tiny', {page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
|
{% endif %}
|
|
{% if page.pager.hasNextPage %}
|
|
<li class="bind"><a href="{{ cms_path('tiny', {page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
|
{% endif %}
|
|
{% endblock %}
|