Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gin-3427327
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
gin-3427327
Commits
bd259927
Commit
bd259927
authored
4 years ago
by
Sascha Eggenberger
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3124448
by saschaeggi, bgebistorf: Twig error on webform configuration page
parent
74a3cbf5
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dist/css/gin.css
+1
-1
1 addition, 1 deletion
dist/css/gin.css
styles/_dropbutton.scss
+9
-9
9 additions, 9 deletions
styles/_dropbutton.scss
styles/_form.scss
+4
-0
4 additions, 0 deletions
styles/_form.scss
templates/dataset/table.html.twig
+20
-7
20 additions, 7 deletions
templates/dataset/table.html.twig
with
34 additions
and
17 deletions
dist/css/gin.css
+
1
−
1
View file @
bd259927
This diff is collapsed.
Click to expand it.
styles/_dropbutton.scss
+
9
−
9
View file @
bd259927
...
...
@@ -25,15 +25,15 @@
}
&
__item
{
&
:first-of-type
{
text-align
:
right
;
a
{
width
:
auto
;
display
:
inline-block
;
vertical-align
:
top
;
}
}
//
&:first-of-type {
//
text-align: right;
//
a {
//
width: auto;
//
display: inline-block;
//
vertical-align: top;
//
}
//
}
&
:first-of-type
~
.dropbutton__item
{
background-color
:
var
(
--
colorGinBackground
);
...
...
This diff is collapsed.
Click to expand it.
styles/_form.scss
+
4
−
0
View file @
bd259927
...
...
@@ -194,3 +194,7 @@
vertical-align
:
text-top
;
background
:
none
;
}
.js
.form-autocomplete
{
padding-right
:
36px
;
}
This diff is collapsed.
Click to expand it.
templates/dataset/table.html.twig
+
20
−
7
View file @
bd259927
...
...
@@ -61,12 +61,21 @@
<thead>
<tr>
{%
for
cell
in
header
%}
{%
set
cell_classes
=
[
'th__'
~
cell.content
|
clean_class
,
cell.active_table_sort
?
'is-active'
,
]
%}
{%
if
'<a'
in
cell.content
|
render
|
render
%}
{%
set
cell_classes
=
[
'th__item'
,
cell.active_table_sort
?
'is-active'
,
]
%}
{%
else
%}
{%
set
cell_classes
=
[
'th__'
~
cell.content
|
render
|
clean_class
,
cell.active_table_sort
?
'is-active'
,
]
%}
{%
endif
%}
<
{{
cell.tag
}}{{
cell.attributes.addClass
(
cell_classes
)
}}
>
{{
-
cell.content
-
}}
</
{{
cell.tag
}}
>
...
...
@@ -90,7 +99,11 @@
{%
for
value
in
header
%}
{%
if
loop.index
==
currentIndex
%}
{%
set
theadValue
=
value.content
|
clean_class
%}
{%
if
'<a'
in
value.content
|
render
|
render
%}
{%
set
theadValue
=
'td__item'
%}
{%
else
%}
{%
set
theadValue
=
value.content
|
render
|
clean_class
%}
{%
endif
%}
{%
endif
%}
{%
endfor
%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment