Add new config variable and rename opaque_domain -> nopaque_domain

This commit is contained in:
Patrick Jentsch 2020-05-19 14:19:23 +02:00
parent 94a193f6dd
commit ddfa0f47bf
3 changed files with 8 additions and 4 deletions

View File

@ -185,7 +185,11 @@
<div class="footer-copyright">
<div class="container">
© 2020 Bielefeld University
<a class="btn-small right waves-effect waves-light" href="https://gitlab.ub.uni-bielefeld.de/sfb1288inf/opaque"><img src="{{ url_for('static', filename='images/gitlab-icon-1-color-white-rgb.png') }}" style="float: left; height: 24px; margin-top: 4.2px;">GitLab</a>
<div class="right right-align">
<a class="btn-small pink waves-effect waves-light" href="mailto:{{ config.NOPAQUE_CONTACT }}?subject={{ config.NOPAQUE_MAIL_SUBJECT_PREFIX }} Contact"><i class="left material-icons">rate_review</i>Contact</a>
<a class="btn-small green waves-effect waves-light" href=""><i class="left material-icons">feedback</i>Feedback</a>
<a class="btn-small orange waves-effect waves-light" href="https://gitlab.ub.uni-bielefeld.de/sfb1288inf/opaque"><img src="{{ url_for('static', filename='images/gitlab-icon-1-color-white-rgb.png') }}" style="float: left; height: 24px; margin-right: 10px; margin-top: 4.2px;">GitLab</a>
</div>
</div>
</div>
</footer>

View File

@ -19,6 +19,7 @@ class Config:
''' ### nopaque ### '''
NOPAQUE_ADMIN = os.environ.get('NOPAQUE_ADMIN')
NOPAQUE_CONTACT = os.environ.get('NOPAQUE_CONTACT')
NOPAQUE_MAIL_SENDER = os.environ.get('NOPAQUE_MAIL_SENDER')
NOPAQUE_MAIL_SUBJECT_PREFIX = '[nopaque]'
NOPAQUE_STORAGE = os.environ.get('NOPAQUE_STORAGE')

View File

@ -23,10 +23,9 @@ MAIL_USE_TLS=
MAIL_USERNAME=
MAIL_PASSWORD=
### Opaque Notifications ###
OPAQUE_DOMAIN=
### nopaque ###
NOPAQUE_ADMIN=
NOPAQUE_CONTACT=
OPAQUE_DOMAIN=
NOPAQUE_MAIL_SENDER=
NOPAQUE_STORAGE=