Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
latoilescoute-dev
scoodle
Commits
61a63c55
Unverified
Commit
61a63c55
authored
Oct 18, 2021
by
Thomas Citharel
Browse files
CSS and a11y improvements for export to ics feature
Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
03dbceea
Changes
2
Hide whitespace changes
Inline
Side-by-side
css/style.css
View file @
61a63c55
...
...
@@ -64,8 +64,6 @@ a:focus { /* a11y */
outline
:
#000
dotted
1px
;
}
header
,
footer
{
}
main
{
margin-top
:
20px
;
}
...
...
@@ -185,7 +183,7 @@ caption {
font-weight
:
bold
;
}
.results
a
.btn-default.btn-sm
{
.results
a
.btn-default.btn-sm
,
.best-choice
.list-unstyled
a
.btn-default.btn-sm
{
padding
:
3px
7px
;
font-size
:
0.7em
;
}
...
...
tpl/part/vote_table_date.tpl
View file @
61a63c55
...
...
@@ -389,7 +389,7 @@
{* Best votes listing *}
{
$max
=
max
(
$best_choices
[
'y'
])
}
{
if
$max
>
0
}
<div
class=
"row"
>
<div
class=
"row
best-choice
"
>
{
if
$count_bests
==
1
}
<div
class=
"col-sm-12"
><h3>
{__('Poll results', 'Best choice')}
</h3></div>
<div
class=
"col-sm-6 col-sm-offset-3 alert alert-info"
>
...
...
@@ -408,8 +408,11 @@
{
if
$best_choices
[
'y'
][
$i
]
==
$max
}
{
assign
var
=
"space"
value
=
"`$slot->day|date_format:'d-m-Y'|html`|`$moment`"
}
<li><strong>
{
$slot
->
day
|
date_format
:
$date_format.txt_full
|
html
}
-
{
$moment
|
html
}
</strong>
<a
href=
"
{
poll_url
id
=
$poll_id
action
=
'get_ical_file'
action_value
=(
$space
)
}
"
class=
"btn btn-link btn-sm"
title=
"{__('studs', 'Download as ical/ics file')}"
>
<i
class=
"fa fa-calendar text-muted"
aria-hidden=
"true"
></i></a></li>
<a
href=
"
{
poll_url
id
=
$poll_id
action
=
'get_ical_file'
action_value
=(
$space
)
}
"
class=
"btn btn-default btn-sm"
title=
"{__('studs', 'Download as ical/ics file')}"
>
<span
class=
"fa fa-calendar text-muted"
></span>
<span
class=
"sr-only"
>
{__('studs', 'Download as ical/ics file')}
</span>
</a>
</li>
{/
if
}
{
$i
=
$i
+
1
}
{/
foreach
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment