You are here

recent-calendar-content.html.twig in Content Planner 8

<h3>{{ 'Last publications' | t }}</h3>
<ul>
{% for node in last_nodes %}
    <li>
        {% if node.created.value %}
            {{ node.created.value | date("d.m.Y H:i") }}
        {% endif %}
        <a href="{{ path('entity.node.canonical', {'node': node.id}) }}">
             {{ node.title.value }}
        </a>
    </li>
{% endfor %}
</ul>

<h3>{{ 'Next publications' | t }}</h3>
<ul>
{% for node in next_nodes %}
    <li>
        {% if node.publish_on.value %}
            {{ node.publish_on.value | date("d.m.Y H:i") }}
        {% endif %}
        <a href="{{ path('entity.node.canonical', {'node': node.id}) }}">
            {{ node.title.value }}
        </a>
    </li>
{% endfor %}
</ul>

File

modules/content_calendar/templates/recent-calendar-content.html.twig
View source
  1. <h3>{{ 'Last publications' | t }}</h3>
  2. <ul>
  3. {% for node in last_nodes %}
  4. <li>
  5. {% if node.created.value %}
  6. {{ node.created.value | date("d.m.Y H:i") }}
  7. {% endif %}
  8. <a href="{{ path('entity.node.canonical', {'node': node.id}) }}">
  9. {{ node.title.value }}
  10. </a>
  11. </li>
  12. {% endfor %}
  13. </ul>
  14. <h3>{{ 'Next publications' | t }}</h3>
  15. <ul>
  16. {% for node in next_nodes %}
  17. <li>
  18. {% if node.publish_on.value %}
  19. {{ node.publish_on.value | date("d.m.Y H:i") }}
  20. {% endif %}
  21. <a href="{{ path('entity.node.canonical', {'node': node.id}) }}">
  22. {{ node.title.value }}
  23. </a>
  24. </li>
  25. {% endfor %}
  26. </ul>