Merge pull request #101 from albocc/feature/Add_3_days_expiration_option
Added expiration option for 3 days
This commit is contained in:
commit
0a80ac1359
2 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,7 @@ pub async fn create(
|
|||
"10min" => timenow + 60 * 10,
|
||||
"1hour" => timenow + 60 * 60,
|
||||
"24hour" => timenow + 60 * 60 * 24,
|
||||
"3days" => timenow + 60 * 60 * 24 * 3,
|
||||
"1week" => timenow + 60 * 60 * 24 * 7,
|
||||
"never" => {
|
||||
if ARGS.no_eternal_pasta {
|
||||
|
|
|
@ -35,6 +35,13 @@
|
|||
{%- endif %}
|
||||
24 hours
|
||||
</option>
|
||||
{% if args.default_expiry == "3days" %}
|
||||
<option selected value="3days">
|
||||
{%- else %}
|
||||
<option value="3days">
|
||||
{%- endif %}
|
||||
3 days
|
||||
</option>
|
||||
{% if args.default_expiry == "1week" %}
|
||||
<option selected value="1week">
|
||||
{%- else %}
|
||||
|
|
Loading…
Reference in a new issue