File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -213,14 +213,9 @@ <h5>VoucherVault {{ "VERSION"|env }}</h5>
213
213
< a href ="# " class ="back-to-top d-flex align-items-center justify-content-center "> < i class ="bi bi-arrow-up-short "> </ i > </ a >
214
214
215
215
<!-- Vendor JS Files -->
216
- < script src ="{% static 'assets/vendor/apexcharts/apexcharts.min.js' %} "> </ script >
217
216
< script src ="{% static 'assets/vendor/bootstrap/js/bootstrap.bundle.min.js' %} "> </ script >
218
217
< script src ="{% static 'assets/vendor/chart.js/chart.umd.js' %} "> </ script >
219
218
< script src ="{% static 'assets/vendor/echarts/echarts.min.js' %} "> </ script >
220
- < script src ="{% static 'assets/vendor/quill/quill.js' %} "> </ script >
221
- < script src ="{% static 'assets/vendor/simple-datatables/simple-datatables.js' %} "> </ script >
222
- < script src ="{% static 'assets/vendor/tinymce/tinymce.min.js' %} "> </ script >
223
- < script src ="{% static 'assets/vendor/php-email-form/validate.js' %} "> </ script >
224
219
225
220
<!-- Template Main JS File -->
226
221
< script src ="{% static 'assets/js/main.js' %} "> </ script >
Original file line number Diff line number Diff line change 1
1
{% extends "base.html" %}
2
2
{% load i18n %}
3
3
{% load static %}
4
+ {% load extras %}
4
5
5
6
{% block content %}
6
7
< div class ="pagetitle ">
19
20
< div class ="card-body ">
20
21
< h6 class ="card-title "> {% trans "Configure Your Apprise URLs" %}</ h6 >
21
22
< span > {% trans "These URLs will be used to send out personal expiry notifications. Leave empty to disable notifications." %}</ span > < p >
22
-
23
+ < p > < span class =" badge bg-info " > < span class =" badge bg-info " > Expiry Threshold: {{ "EXPIRY_THRESHOLD"|env }}d </ span > </ span > </ p >
23
24
<!-- Apprise URLs Form -->
24
25
< form method ="POST " action ="">
25
26
{% csrf_token %}
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ def env(key):
10
10
return settings .OIDC_ENABLED
11
11
if key == "VERSION" :
12
12
return settings .VERSION
13
+ if key == "EXPIRY_THRESHOLD" :
14
+ threshold_days = os .getenv ('EXPIRY_THRESHOLD_DAYS' , 30 )
15
+ return threshold_days
13
16
14
17
@register .filter ()
15
18
def comma_to_dot (value ):
You can’t perform that action at this time.
0 commit comments