Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui_suite_dsfr
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ui_suite_dsfr
Merge requests
!104
Issue
#3469768
by spryah: fix pattern meta information table class
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3469768
by spryah: fix pattern meta information table class
issue/ui_suite_dsfr-3469768:3469768-meta-info-table-class
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Sorya
requested to merge
issue/ui_suite_dsfr-3469768:3469768-meta-info-table-class
into
1.0.x
9 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3469768
0
0
Merge request reports
Compare
1.0.x
version 1
c13669ea
9 months ago
1.0.x (base)
and
latest version
latest version
581d32b0
1 commit,
8 months ago
version 1
c13669ea
1 commit,
9 months ago
1 file
+
37
−
35
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
templates/overrides/ui_patterns_library/patterns-meta-information.html.twig
+
37
−
35
Options
@@ -20,42 +20,44 @@
{# Pattern fields descriptions. #}
{%
if
pattern.fields
or
pattern.additional.settings
%}
<table
class=
"pattern-preview__fields fr-table fr-table--bordered"
>
<thead>
<tr>
<th>
{{
'Name'
|
t
}}
</th>
<th>
{{
'Label'
|
t
}}
</th>
<th>
{{
'Type'
|
t
}}
</th>
<th>
{{
'Description'
|
t
}}
/
{{
'Options'
|
t
}}
</th>
</tr>
</thead>
<tbody>
{%
for
field
in
pattern.fields
%}
<tr>
<td><code>
{{
field.name
}}
</code></td>
<td>
{{
field.label
}}
</td>
<td><code>
slot
</code></td>
<td>
{{
field.description
}}
</td>
</tr>
{%
endfor
%}
{%
for
name
,
setting
in
pattern.additional.settings
%}
<tr>
<td><code>
{{
name
}}
</code></td>
<td>
{{
setting.label
}}
</td>
<td><code>
{{
setting.type
}}
</code></td>
<td>
{{
setting.description
}}
{%
if
setting.options
%}
<ul
{%
if
'icon'
in
name
and
setting.type
==
'select'
%}
style=
"max-height: 300px; overflow: scroll"
{%
endif
%}
>
{%
for
key
,
label
in
setting.options
%}
<li>
{{
key
}}
:
{{
label
}}
</li>
<div
class=
"fr-table fr-table--bordered"
>
<table
class=
"pattern-preview__fields"
>
<thead>
<tr>
<th>
{{
'Name'
|
t
}}
</th>
<th>
{{
'Label'
|
t
}}
</th>
<th>
{{
'Type'
|
t
}}
</th>
<th>
{{
'Description'
|
t
}}
/
{{
'Options'
|
t
}}
</th>
</tr>
</thead>
<tbody>
{%
for
field
in
pattern.fields
%}
<tr>
<td><code>
{{
field.name
}}
</code></td>
<td>
{{
field.label
}}
</td>
<td><code>
slot
</code></td>
<td>
{{
field.description
}}
</td>
</tr>
{%
endfor
%}
</ul>
{%
endif
%}
</td>
</tr>
{%
endfor
%}
</tbody>
</table>
{%
for
name
,
setting
in
pattern.additional.settings
%}
<tr>
<td><code>
{{
name
}}
</code></td>
<td>
{{
setting.label
}}
</td>
<td><code>
{{
setting.type
}}
</code></td>
<td>
{{
setting.description
}}
{%
if
setting.options
%}
<ul
{%
if
'icon'
in
name
and
setting.type
==
'select'
%}
style=
"max-height: 300px; overflow: scroll"
{%
endif
%}
>
{%
for
key
,
label
in
setting.options
%}
<li>
{{
key
}}
:
{{
label
}}
</li>
{%
endfor
%}
</ul>
{%
endif
%}
</td>
</tr>
{%
endfor
%}
</tbody>
</table>
</div>
{%
endif
%}
{%
endif
%}
Loading