updating boop.html with new vars
This commit is contained in:
parent
8b4258c032
commit
34f558a0f4
1 changed files with 11 additions and 6 deletions
|
@ -1,10 +1,14 @@
|
||||||
{% set title = config["SITE_NAME"] %}
|
{% set title = config["SITE_NAME"] %}
|
||||||
{% set fhost_url = url_for("fhost", _external=True).rstrip("/") %}
|
{% set fhost_url = url_for("fhost", _external=True).rstrip("/") %}
|
||||||
{% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}
|
{% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}
|
||||||
|
{% set half_size = (config["MAX_CONTENT_LENGTH"]/2)|filesizeformat(True) %}
|
||||||
{% set not_allowed = config["FHOST_MIME_BLACKLIST"]|join(", ") %}
|
{% set not_allowed = config["FHOST_MIME_BLACKLIST"]|join(", ") %}
|
||||||
{% set half = ((config["MAX_CONTENT_LENGTH"]/2)|filesizeformat(True)).split(" ")[0].rjust(27) %}
|
{% set min = config.get("FHOST_MIN_EXPIRATION", 2592000000)//86400000 %}
|
||||||
{% set max = max_size.split(" ")[0].rjust(27) %}
|
{% set half = ((config.get("FHOST_MIN_EXPIRATION", 2592000000)/2 + config.get("FHOST_MAX_EXPIRATION", 31536000000)/2)/86400000) %}
|
||||||
|
{% set max = config.get("FHOST_MAX_EXPIRATION", 31536000000)//86400000 %}
|
||||||
{% set unit = max_size.split(" ")[1].rjust(54) %}
|
{% set unit = max_size.split(" ")[1].rjust(54) %}
|
||||||
|
{% set max_size = (max_size|string).split(" ")[0].rjust(27) %}
|
||||||
|
{% set half_size = (half_size|string).split(" ")[0].rjust(27) %}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -151,7 +155,7 @@
|
||||||
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
||||||
|
|
||||||
days
|
days
|
||||||
365 | \\
|
{{ '{: 6}'.format(max) }} | \\
|
||||||
| \\
|
| \\
|
||||||
| \\
|
| \\
|
||||||
| \\
|
| \\
|
||||||
|
@ -159,7 +163,7 @@ days
|
||||||
| \\
|
| \\
|
||||||
| ..
|
| ..
|
||||||
| \
|
| \
|
||||||
197.5 | ----------..-------------------------------------------
|
{{ '{: 6.1f}'.format(half) }} | ----------..-------------------------------------------
|
||||||
| ..
|
| ..
|
||||||
| \
|
| \
|
||||||
| ..
|
| ..
|
||||||
|
@ -168,10 +172,11 @@ days
|
||||||
| ...
|
| ...
|
||||||
| ....
|
| ....
|
||||||
| ......
|
| ......
|
||||||
30 | ....................
|
{{ '{: 6}'.format(min) }} | ....................
|
||||||
0{{ half }}{{ max }}
|
0{{ half_size }}{{ max_size }}
|
||||||
{{ unit }}
|
{{ unit }}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3>UPLOAD DIRECTLY</h3>
|
<h3>UPLOAD DIRECTLY</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<form action="{{ fhost_url }}" method="POST" enctype="multipart/form-data">
|
<form action="{{ fhost_url }}" method="POST" enctype="multipart/form-data">
|
||||||
|
|
Loading…
Reference in a new issue