Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Armando Lüscher
lufi
Commits
eb973d54
Verified
Commit
eb973d54
authored
Aug 17, 2020
by
Luc Didry
Browse files
🔀
Merge branch 'development'
parents
f34d9911
85a02eb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
eb973d54
Revision history for Lufi
?.??.? ????-??-??
- 🐛 Fix incorrect HTML in delays.html.ep (#207)
0.05.3 2020-08-17
- 🐛 Check if provisioning lockfile mod time exists before using it (#208)
...
...
themes/default/templates/delays.html.ep
View file @
eb973d54
...
...
@@ -4,35 +4,39 @@
<div
class=
"modal-content"
>
<h1><
%=
l
('
Information
about
delays
')
%
></h1>
<div
class=
"text-left"
>
<p><
%=
l
('
If
you
choose
a
delay
,
the
file
will
be
deleted
after
that
delay.
')
%
><br>
<
%=
l
('
Don
\'
t
worry:
if
a
user
begins
to
download
the
file
before
the
expiration
and
the
download
ends
after
the
expiration
,
he
will
be
able
to
get
the
file.
')
%
>
% if (defined(config('delay_for_size'))) {
<p><
%=
l
('
This
server
sets
limitations
according
to
the
file
size.
The
expiration
delay
of
your
file
will
be
the
minimum
between
what
you
choose
and
the
following
limitations:
')
%
></p>
<ul>
% my $delays = config('delay_for_size');
% $delays->{0} = max_delay;
% my @keys = sort {$a
<
=
>
$b} keys %{$delays};
% my $i = 0;
% for my $key (@keys) {
% my $delay = $delays->{$keys[$i]};
% if ($i + 1
<
scalar
(@
keys
))
{
%
if
($
delay
)
{
<
li
><
%=
l
('
between
%1
and
%2,
the
file
will
be
kept
%3
day
(
s
).',
format_bytes
($
keys
[$
i
]),
format_bytes
($
keys
[$
i
+
1]),
$
delay
)
%
></li>
<p>
<
%=
l
('
If
you
choose
a
delay
,
the
file
will
be
deleted
after
that
delay.
')
%
><br>
<
%=
l
('
Don
\'
t
worry:
if
a
user
begins
to
download
the
file
before
the
expiration
and
the
download
ends
after
the
expiration
,
he
will
be
able
to
get
the
file.
')
%
>
</p>
% if (defined(config('delay_for_size'))) {
<p>
<
%=
l
('
This
server
sets
limitations
according
to
the
file
size.
The
expiration
delay
of
your
file
will
be
the
minimum
between
what
you
choose
and
the
following
limitations:
')
%
>
</p>
<ul>
% my $delays = config('delay_for_size');
% $delays->{0} = max_delay;
% my @keys = sort {$a
<
=
>
$b} keys %{$delays};
% my $i = 0;
% for my $key (@keys) {
% my $delay = $delays->{$keys[$i]};
% if ($i + 1
<
scalar
(@
keys
))
{
%
if
($
delay
)
{
<
li
><
%=
l
('
between
%1
and
%2,
the
file
will
be
kept
%3
day
(
s
).',
format_bytes
($
keys
[$
i
]),
format_bytes
($
keys
[$
i
+
1]),
$
delay
)
%
></li>
% } else {
<li><
%=
l
('
between
%1
and
%2,
the
file
will
be
kept
forever.
',
format_bytes
($
keys
[$
i
]),
format_bytes
($
keys
[$
i
+
1]),
$
delay
)
%
></li>
% }
% } else {
<li><
%=
l
('
between
%1
and
%2,
the
file
will
be
kept
forever.
',
format_bytes
($
keys
[$
i
]),
format_bytes
($
keys
[$
i
+
1]),
$
delay
)
%
></li>
% }
% } else {
% if ($delay) {
<li><
%=
l
('
for
%1
and
more
,
the
file
will
be
kept
%2
day
(
s
)',
format_bytes
($
keys
[$
i
]),
$
delay
)
%
></li>
% } else {
<li><
%=
l
('
for
%1
and
more
,
the
file
will
be
kept
forever.
',
format_bytes
($
keys
[$
i
]),
$
delay
)
%
></li>
% if ($delay) {
<li><
%=
l
('
for
%1
and
more
,
the
file
will
be
kept
%2
day
(
s
)',
format_bytes
($
keys
[$
i
]),
$
delay
)
%
></li>
% } else {
<li><
%=
l
('
for
%1
and
more
,
the
file
will
be
kept
forever.
',
format_bytes
($
keys
[$
i
]),
$
delay
)
%
></li>
% }
% }
% $i++;
% }
% $i++;
</ul>
% }
</ul>
</div>
% }
</div>
<div
class=
"modal-footer"
>
<a
href=
"#!"
class=
"modal-action modal-close waves-effect waves-green btn-flat"
><
%=
l
('
Close
')
%
></a>
...
...
Write
Preview
Markdown
is supported
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