Mercurial > hg > isophonics-drupal-site
diff core/themes/seven/templates/node-add-list.html.twig @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/themes/seven/templates/node-add-list.html.twig Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,29 @@ +{# +/** + * @file + * Seven's theme implementation to list node types available for adding content. + * + * Available variables: + * - types: List of content types. Each content type contains: + * - url: Path to the add content of this type page. + * - label: The title of this type of content. + * - description: Description of this type of content. + * + * @see template_preprocess_node_add_list() + * @see seven_preprocess_node_add_list() + */ +#} +{% if content %} + <ul class="admin-list"> + {% for type in types %} + <li class="clearfix"><a href="{{ type.url }}"><span class="label">{{ type.label }}</span><div class="description">{{ type.description }}</div></a></li> + {% endfor %} + </ul> +{% else %} + <p> + {% set create_content = path('node.type_add') %} + {% trans %} + 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. + {% endtrans %} + </p> +{% endif %}