+++ /dev/null
-{% extends 'RapsysBlogBundle::body.html.twig' %}
-{% block blog_title %}<h1><a href="{{ path('homepage') }}">{% trans %}Dev log{% endtrans %}</a></h1>{% endblock %}
-{% block blog_subtitle %}<h2><a href="{{ path('articles') }}">{% trans %}Articles list{% endtrans %}</a></h2>{% endblock %}
-{% block content %}
- {% if article is defined and article %}
- <article id="article">
- <header>
- <h3><a href="{{ path('articles_article', {'_article': article.slug}) }}">{{article.title}}</a></h3>
- <p>
- <span>{% trans with {'%date%': article.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %}</span>
- {% if article.keywords %}
- <span>
- {% transchoice article.keywords|length %}{1} Keyword:|]1,Inf[ Keywords:{% endtranschoice %}
- {% for keyword_id, keyword in article.keywords %}
- <a href="{{ path('keywords_keyword', {'_keyword': keyword_id}) }}">{{ keyword }}</a>
- {% endfor %}
- </span>
- {% endif %}
- </p>
- </header>
- <p>{{article.body|bb2html}}</p>
- </article>
- {% endif %}
-{% endblock %}
-{% block alternate %}
- <link rel="alternate" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" hreflang="{{ app.request.locale }}"/>
- {% for locale, slug in article.slugs %}
- <link rel="alternate" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'_locale': locale, '_article': slug}))) }}" hreflang="{{ locale }}"/>
- {% endfor %}
-{% endblock %}
-{% block footer_nav %}
- <nav>
- {% for locale, slug in article.slugs %}
- <a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'_locale': locale, '_article': slug}))) }}">{{ ('Display in ' ~ locale)|trans }}</a>
- {% endfor %}
- </nav>
-{% endblock %}
+++ /dev/null
-{% extends 'RapsysBlogBundle::body.html.twig' %}
-{% block blog_title %}<h1><a href="{{ path('homepage') }}">{% trans %}Dev log{% endtrans %}</a></h1>{% endblock %}
-{% block blog_subtitle %}<h2><a href="{{ path('keywords') }}">{% trans %}Keywords list{% endtrans %}</a></h2>{% endblock %}
-{% block content %}
- {% if keyword is defined and keyword %}
- <article id="keyword">
- <header>
- <h3><a href="{{ path('keywords_keyword', {'_keyword': keyword.slug}) }}">{{keyword.title}}</a></h3>
- <p>
- <span>{% trans with {'%date%': keyword.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if keyword.created != keyword.updated %}{% trans with {'%date%': keyword.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %}</span>
- </p>
- </header>
- <p>{{ keyword.description }}</p>
- {% if keyword.articles %}
- <p style="margin-bottom: 0">{% transchoice keyword.articles|length %}{1} Article:|]1,Inf[ Articles:{% endtranschoice %}</p>
- <nav>
- <ul>
- {% for slug, article in keyword.articles %}
- <li><a href="{{ path('articles_article', {'_article': slug}) }}">{{ article }}</a></li>
- {% endfor %}
- </ul>
- </nav>
- {% endif %}
- </article>
- {% endif %}
-{% endblock %}
-{% block alternate %}
- <link rel="alternate" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" hreflang="{{ app.request.locale }}"/>
- {% for locale, slug in keyword.slugs %}
- <link rel="alternate" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'_locale': locale, '_keyword': slug}))) }}" hreflang="{{ locale }}"/>
- {% endfor %}
-{% endblock %}
-{% block footer_nav %}
- <nav>
- {% for locale, slug in keyword.slugs %}
- <a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'_locale': locale, '_keyword': slug}))) }}">{{ ('Display in ' ~ locale)|trans }}</a>
- {% endfor %}
- </nav>
-{% endblock %}