annotate core/themes/seven/templates/node-add-list.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Seven's theme implementation to list node types available for adding content.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - types: List of content types. Each content type contains:
Chris@0 8 * - url: Path to the add content of this type page.
Chris@0 9 * - label: The title of this type of content.
Chris@0 10 * - description: Description of this type of content.
Chris@0 11 *
Chris@0 12 * @see template_preprocess_node_add_list()
Chris@0 13 * @see seven_preprocess_node_add_list()
Chris@0 14 */
Chris@0 15 #}
Chris@0 16 {% if content %}
Chris@0 17 <ul class="admin-list">
Chris@0 18 {% for type in types %}
Chris@0 19 <li class="clearfix"><a href="{{ type.url }}"><span class="label">{{ type.label }}</span><div class="description">{{ type.description }}</div></a></li>
Chris@0 20 {% endfor %}
Chris@0 21 </ul>
Chris@0 22 {% else %}
Chris@0 23 <p>
Chris@0 24 {% set create_content = path('node.type_add') %}
Chris@0 25 {% trans %}
Chris@0 26 You have not created any content types yet. Go to the <a href="{{ create_content }}">content type creation page</a> to add a new content type.
Chris@0 27 {% endtrans %}
Chris@0 28 </p>
Chris@0 29 {% endif %}