openquestions-1.0.x-dev/templates/oq-vote.html.twig
templates/oq-vote.html.twig
{#
/**
* @file
* Default theme implementation to present an oq vote entity.
*
* This template is used when viewing a canonical oq vote page,
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* print a subset such as 'content.label'.
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_oq_vote()
{{- content|without('item','status', 'description', 'uid', 'created', 'vote_value') -}}
*/
#}
<article{{ attributes }}>
{% if view_mode != 'full' %}
{{ title_prefix }}
{{ title_suffix }}
{% endif %}
{% if content %}
{{ content.summary }}
{{ content.question_info }}
{{ content.explanation_info }}
{{ content.description }}
{{ content.comments_info }}
{% if content.field_comments %}
{{ content.field_comments }}
{% endif %}
{% endif %}
</article>
