Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
784b1284
Commit
784b1284
authored
7 years ago
by
Olimpia Magliulo
Browse files
Options
Downloads
Patches
Plain Diff
Fix attribute table overflow/wordwrap
+twig indentation
parent
5c6c9c53
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/_table.twig
+12
-11
12 additions, 11 deletions
templates/_table.twig
templates/auth_status.twig
+6
-8
6 additions, 8 deletions
templates/auth_status.twig
www/assets/css/src/default.css
+7
-0
7 additions, 0 deletions
www/assets/css/src/default.css
with
25 additions
and
19 deletions
templates/_table.twig
+
12
−
11
View file @
784b1284
...
@@ -3,20 +3,21 @@
...
@@ -3,20 +3,21 @@
{%
for
name
,
values
in
items
%}
{%
for
name
,
values
in
items
%}
<tr
class=
"
{{
cycle
([
'odd'
,
'even'
],
loop.index0
)
}}
"
>
<tr
class=
"
{{
cycle
([
'odd'
,
'even'
],
loop.index0
)
}}
"
>
{%
block
namecol
%}
{%
block
namecol
-
%}
<td
class=
"attrname"
>
{{
name
}}
</td>
<td
class=
"attrname"
>
{{
name
}}
</td>
{%
endblock
%}
{%
-
endblock
%}
<td
class=
"attrvalue"
>
<td
class=
"attrvalue"
>
{%
spaceless
%}
{%
for
value
in
values
%}
{%
for
value
in
values
%}
{%
if
loop.length
>
1
and
loop.first
%}
<ul>
{%
endif
%}
{%
if
loop.length
>
1
and
loop.first
%}
<ul>
{%
endif
%}
{%
if
loop.length
>
1
%}
<li>
{%
endif
%}
{%
if
loop.length
>
1
%}
<li>
{%
endif
-
%}
{%
block
value
%}{%
endblock
%}
{%
block
value
%}{%
endblock
%}
{%
if
loop.length
>
1
%}
</li>
{%
endif
%}
{%
if
loop.length
>
1
%}
</li>
{%
endif
%}
{%
if
loop.length
>
1
and
loop.last
%}
</ul>
{%
endif
%}
{%
if
loop.length
>
1
and
loop.last
%}
</ul>
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
{%
endspaceless
-
%}
</td>
</td>
</tr>
</tr>
{%
endfor
%}
{%
endfor
%}
...
...
This diff is collapsed.
Click to expand it.
templates/auth_status.twig
+
6
−
8
View file @
784b1284
...
@@ -14,24 +14,22 @@
...
@@ -14,24 +14,22 @@
<h2>
{{
'Your attributes'
|
trans
}}
</h2>
<h2>
{{
'Your attributes'
|
trans
}}
</h2>
{%
set
items
=
attributes
%}
{%
set
items
=
attributes
%}
{%
embed
'_table.twig'
%}
{%
embed
'_table.twig'
-
%}
{%
block
namecol
%}
{%
block
namecol
-
%}
{%
set
attr
=
(
'{attributes:attribute_'
~
(
name
|
lower
)
~
'}'
)
%}
{%
set
attr
=
(
'{attributes:attribute_'
~
(
name
|
lower
)
~
'}'
)
%}
{%
set
translated
=
attr
|
trans
%}
{%
set
translated
=
attr
|
trans
%}
<td
class=
"attrname"
>
{%
if
translated
!=
attr
%}
{{
translated
}}
<br>
{%
endif
%}
<samp>
{{
name
}}
</samp></td>
<td
class=
"attrname"
>
{%
if
translated
!=
attr
%}
{{
translated
}}
<br>
{%
endif
%}
<samp>
{{
name
}}
</samp></td>
{%
endblock
%}
{%
endblock
%}
{%
block
value
%}
{%
block
value
-
%}
{%
if
name
==
'jpegPhoto'
%}
{%
if
name
==
'jpegPhoto'
-
%}
<img
src=
"data:image/jpeg;base64,
{{
value
}}
"
/>
<img
src=
"data:image/jpeg;base64,
{{
value
}}
"
/>
{%
else
%}
{%
else
%}{{
value
}}{%
endif
-
%}
{{
value
}}
{%
endif
%}
{%
endblock
%}
{%
endblock
%}
{%
endembed
%}
{%
-
endembed
%}
{%
if
nameid
%}
{%
if
nameid
%}
...
...
This diff is collapsed.
Click to expand it.
www/assets/css/src/default.css
+
7
−
0
View file @
784b1284
...
@@ -510,8 +510,15 @@ span.fa, i.fa {
...
@@ -510,8 +510,15 @@ span.fa, i.fa {
TABLES
TABLES
************************************************************ */
************************************************************ */
.pure-table-attributes
{
.pure-table-attributes
{
table-layout
:
fixed
;
width
:
100%
;
width
:
100%
;
}
}
.attrname
{
text-align
:
right
;
}
.attrvalue
{
overflow-wrap
:
break-word
;
}
table
.attributes
ul
{
table
.attributes
ul
{
padding
:
inherit
;
padding
:
inherit
;
}
}
...
...
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