Mercurial > hg > isophonics-drupal-site
annotate core/modules/node/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 * Default theme implementation to list node types available for adding content. |
Chris@0 | 5 * |
Chris@0 | 6 * This list is displayed on the Add content admin page. |
Chris@0 | 7 * |
Chris@0 | 8 * Available variables: |
Chris@0 | 9 * - types: A list of content types, each with the following properties: |
Chris@0 | 10 * - add_link: Link to create a piece of content of this type. |
Chris@0 | 11 * - description: Description of this type of content. |
Chris@0 | 12 * |
Chris@0 | 13 * @see template_preprocess_node_add_list() |
Chris@0 | 14 * |
Chris@0 | 15 * @ingroup themeable |
Chris@0 | 16 */ |
Chris@0 | 17 #} |
Chris@0 | 18 {% if types is not empty %} |
Chris@0 | 19 <dl> |
Chris@0 | 20 {% for type in types %} |
Chris@0 | 21 <dt>{{ type.add_link }}</dt> |
Chris@0 | 22 <dd>{{ type.description }}</dd> |
Chris@0 | 23 {% endfor %} |
Chris@0 | 24 </dl> |
Chris@0 | 25 {% else %} |
Chris@0 | 26 <p> |
Chris@0 | 27 {% set create_content = path('node.type_add') %} |
Chris@0 | 28 {% trans %} |
Chris@0 | 29 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 | 30 {% endtrans %} |
Chris@0 | 31 </p> |
Chris@0 | 32 {% endif %} |