Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023

This commit is contained in:
Pantheon Automation 2015-09-04 13:20:09 -07:00 committed by Greg Anderson
parent 2720a9ec4b
commit f3791f1da3
1898 changed files with 54300 additions and 11481 deletions

View file

@ -11,13 +11,16 @@
* - class: The safe class ID to use.
* - handler: The Views field handler controlling this field.
* - inline: Whether or not the field should be inline.
* - inline_html: Either div or span based on the 'inline' flag.
* - wrapper_prefix: A complete wrapper containing the inline_html to use.
* - wrapper_suffix: The closing tag for the wrapper.
* - wrapper_element: An HTML element for a wrapper.
* - wrapper_attributes: List of attributes for wrapper element.
* - separator: An optional separator that may appear before a field.
* - label: The field's label text.
* - label_html: The full HTML of the label to use including configured
* element type.
* - label_element: An HTML element for a label wrapper.
* - label_attributes: List of attributes for label wrapper.
* - has_label_colon: A boolean indicating whether to display a colon after
* the label.
* - element_type: An HTML element for the field content.
* - element_attributes: List of attributes for HTML element for field content.
* - row: The raw result from the query, with all data it fetched.
*
* @see template_preprocess_views_view_fields()
@ -25,17 +28,30 @@
* @ingroup themeable
*/
#}
<!--
{#
THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY.
See http://api.drupal.org/api/function/theme_views_view_fields/8 for details.
After copying this file to your theme's folder and customizing it, remove this
HTML comment.
-->
{% for field in fields %}
comment.
#}
{% for field in fields -%}
{{ field.separator }}
{{ field.wrapper_prefix }}
{{ field.label_html }}
{%- if field.wrapper_element -%}
<{{ field.wrapper_element }}{{ field.wrapper_attributes }}>
{%- endif %}
{%- if field.label -%}
{%- if field.label_element -%}
<{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.has_label_colon ? ': ' }}</{{ field.label_element }}>
{%- else -%}
{{ field.label }}{{ field.has_label_colon ? ': ' }}
{%- endif %}
{%- endif %}
{%- if field.element_type -%}
<{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }}</{{ field.element_type }}>
{%- else -%}
{{ field.content }}
{{ field.wrapper_suffix }}
{% endfor %}
{%- endif %}
{%- if field.wrapper_element -%}
</{{ field.wrapper_element }}>
{%- endif %}
{%- endfor %}

View file

@ -72,7 +72,21 @@
%}
{% endif %}
<th{{ column.attributes.addClass(column_classes).setAttribute('scope', 'col') }}>
{{ column.content }}
{%- if column.wrapper_element -%}
<{{ column.wrapper_element }}>
{%- if column.url -%}
<a href="{{ column.url }}" title="{{ column.title }}">{{ column.content }}{{ column.sort_indicator }}</a>
{%- else -%}
{{ column.content }}{{ column.sort_indicator }}
{%- endif -%}
</{{ column.wrapper_element }}>
{%- else -%}
{%- if column.url -%}
<a href="{{ column.url }}" title="{{ column.title }}">{{ column.content }}{{ column.sort_indicator }}</a>
{%- else -%}
{{- column.content }}{{ column.sort_indicator }}
{%- endif -%}
{%- endif -%}
</th>
{% endfor %}
</tr>
@ -93,7 +107,17 @@
{% endfor %}
{% endif %}
<td{{ column.attributes.addClass(column_classes) }}>
{{ column.content }}
{%- if column.wrapper_element -%}
<{{ column.wrapper_element }}>
{% for content in column.content %}
{{ content.separator }}{{ content.field_output }}
{% endfor %}
</{{ column.wrapper_element }}>
{%- else -%}
{% for content in column.content %}
{{- content.separator }}{{ content.field_output -}}
{% endfor %}
{%- endif %}
</td>
{% endfor %}
</tr>

View file

@ -39,55 +39,30 @@
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if title %}
{{ title }}
{% endif %}
{{ title }}
{{ title_suffix }}
{% if header %}
<div>
<header>
{{ header }}
</div>
{% endif %}
{% if exposed %}
<div>
{{ exposed }}
</div>
{% endif %}
{% if attachment_before %}
<div>
{{ attachment_before }}
</div>
</header>
{% endif %}
{% if rows %}
<div>
{{ rows }}
</div>
{% elseif empty %}
<div>
{{ empty }}
</div>
{% endif %}
{{ exposed }}
{{ attachment_before }}
{{ rows }}
{{ empty }}
{{ pager }}
{{ attachment_after }}
{{ more }}
{% if pager %}
{{ pager }}
{% endif %}
{% if attachment_after %}
<div>
{{ attachment_after }}
</div>
{% endif %}
{% if more %}
{{ more }}
{% endif %}
{% if footer %}
<div>
<footer>
{{ footer }}
</div>
{% endif %}
{% if feed_icons %}
<div>
{{ feed_icons }}
</div>
</footer>
{% endif %}
{{ feed_icons }}
</div>