Skip to content
Snippets Groups Projects
Commit b816ab5b authored by Antonio De Marco's avatar Antonio De Marco
Browse files

Issue #118: Add variant meta information template.

parent b50cea64
No related branches found
No related tags found
No related merge requests found
{#
/**
* @file
* UI Pattern variant meta information.
*/
#}
{% if variant is not empty %}
<table>
<thead>
<tr>
<th>{{ "Variant"|t }}</th>
<th>{{ "Name"|t }}</th>
<th>{{ "Description"|t }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ variant.label }}</td>
<td><code>{{ variant.name }}</code></td>
<td>{{ variant.description }}</td>
</tr>
</tbody>
</table>
{% endif %}
......@@ -19,5 +19,8 @@ function ui_patterns_library_theme() {
'patterns_meta_information' => [
'variables' => ['pattern' => NULL],
],
'patterns_variant_meta_information' => [
'variables' => ['variant' => NULL],
],
];
}
{#
/**
* @file
* UI Pattern variant meta information.
*/
#}
{% if variant is not empty %}
<table class="table table-meta">
<thead>
<tr>
<th>{{ "Variant"|t }}</th>
<th>{{ "Name"|t }}</th>
<th>{{ "Description"|t }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ variant.label }}</td>
<td><code>{{ variant.name }}</code></td>
<td>{{ variant.description }}</td>
</tr>
</tbody>
</table>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment