js et css pages ressources
This commit is contained in:
@@ -88,8 +88,8 @@
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
{# <div{{ content_attributes }}> #}
|
||||
<div{{ content_attributes }}>
|
||||
{{ content }}
|
||||
{# </div> #}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
@@ -94,35 +94,10 @@
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
<div{{ content_attributes }}>
|
||||
<div class="content-ressource"{{ content_attributes }}>
|
||||
{{ content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
<article{{ attributes.addClass(ressource_class) }}>
|
||||
|
||||
|
||||
{{ title_prefix }}
|
||||
{% if label and not page %}
|
||||
<h2{{ title_attributes }}>
|
||||
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
|
||||
</h2>
|
||||
{% endif %}
|
||||
{{ title_suffix }}
|
||||
|
||||
{% if display_submitted %}
|
||||
<footer>
|
||||
{{ author_picture }}
|
||||
<div{{ author_attributes }}>
|
||||
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
|
||||
{{ metadata }}
|
||||
</div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
<div{{ content_attributes }}>
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
@@ -0,0 +1,54 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a view of unformatted rows.
|
||||
*
|
||||
* Available variables:
|
||||
* - title: The title of this group of rows. May be empty.
|
||||
* - rows: A list of the view's row items.
|
||||
* - attributes: The row's HTML attributes.
|
||||
* - content: The row's content.
|
||||
* - view: The view object.
|
||||
* - default_row_class: A flag indicating whether default classes should be
|
||||
* used on rows.
|
||||
*
|
||||
* @see template_preprocess_views_view_unformatted()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{#
|
||||
{% if title %}
|
||||
{%
|
||||
set view_ressource_class = [
|
||||
'view-rows-ressources',
|
||||
title ? 'type-' ~ title.field_name.term.name(),
|
||||
|
||||
]
|
||||
%}
|
||||
{% endif %} #}
|
||||
|
||||
|
||||
{%
|
||||
set view_ressource_class = [
|
||||
'view-rows-ressources',
|
||||
]
|
||||
%}
|
||||
|
||||
|
||||
{% if title %}
|
||||
<h3>{{ title }} </h3>
|
||||
{% endif %}
|
||||
<div {{ attributes.addClass(view_ressource_class) }}>
|
||||
{% for row in rows %}
|
||||
{%
|
||||
set row_classes = [
|
||||
default_row_class ? 'views-row',
|
||||
]
|
||||
%}
|
||||
<div{{ row.attributes.addClass(row_classes) }}>
|
||||
{{- row.content -}}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user