mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Add 1 year expiration time
This commit is contained in:
parent
7da1615d41
commit
58ebea6e6e
@ -24,6 +24,7 @@ class Paste(object):
|
||||
DURATIONS = {
|
||||
'1_day': 24 * 3600,
|
||||
'1_month': 30 * 24 * 3600,
|
||||
'1_year': 365 * 24 * 3600,
|
||||
'never': 365 * 24 * 3600 * 100,
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
<option value="burn_after_reading">Burn after reading</option>
|
||||
<option selected value="1_day">1 day</option>
|
||||
<option value="1_month">1 month</option>
|
||||
<option value="1_year">1 year</option>
|
||||
<option value="never">Never</option>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
@ -37,4 +38,4 @@
|
||||
</form>
|
||||
|
||||
|
||||
% rebase('base', settings=settings, pastes_count=pastes_count)
|
||||
% rebase('base', settings=settings, pastes_count=pastes_count)
|
||||
|
@ -10,6 +10,7 @@
|
||||
<option value="burn_after_reading">Burn after reading</option>
|
||||
<option selected value="1_day">1 day</option>
|
||||
<option value="1_month">1 month</option>
|
||||
<option value="1_year">1 year</option>
|
||||
<option value="never">Never</option>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
@ -66,6 +66,7 @@
|
||||
<option value="burn_after_reading">Burn after reading</option>
|
||||
<option selected value="1_day">1 day</option>
|
||||
<option value="1_month">1 month</option>
|
||||
<option value="1_year">1 year</option>
|
||||
<option value="never">Never</option>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
Loading…
Reference in New Issue
Block a user