Browse Source

added admin_email to conf

tags/release-00
gashapwn 3 years ago
parent
commit
a54b0a4b53
4 changed files with 7 additions and 3 deletions
  1. +4
    -0
      app.py
  2. +1
    -0
      lyadmin.conf.json
  3. +1
    -1
      templates/main_layout.html
  4. +1
    -2
      templates/signup.html

+ 4
- 0
app.py View File

@@ -214,6 +214,10 @@ def signup():
def get_site_name(): def get_site_name():
return {"site_name": conf_obj["site_name"]} return {"site_name": conf_obj["site_name"]}


@app.context_processor
def get_admin_email():
return {"admin_email": conf_obj["admin_email"]}

def check_pwd_for_conf(): def check_pwd_for_conf():
pwd_file_list = list(map( pwd_file_list = list(map(
lambda path : path.split("/")[-1], lambda path : path.split("/")[-1],


+ 1
- 0
lyadmin.conf.json View File

@@ -1,5 +1,6 @@
{ {
"site_name": "tildezero.xyz", "site_name": "tildezero.xyz",
"admin_email": "admin@example.com",
"listen_ip": "127.0.0.1", "listen_ip": "127.0.0.1",
"shell": { "shell": {
"SHELL_BASH": "/usr/local/bin/bash", "SHELL_BASH": "/usr/local/bin/bash",


+ 1
- 1
templates/main_layout.html View File

@@ -17,6 +17,6 @@


{% if page_name == "home" %} {% if page_name == "home" %}
<div style="min-height: 300px;"></div> <div style="min-height: 300px;"></div>
<footer>admin: <a href="email:gashapwn@protonmail.com">gashapwn@protonmail.com</a></footer>
<footer>admin: <a href="email:{{ admin_email }}">{{ admin_email }}</a></footer>
{% endif %} {% endif %}
</html> </html>

+ 1
- 2
templates/signup.html View File

@@ -14,8 +14,7 @@ this page will be updated with your username once approved
</p> </p>
{% endif %} {% endif %}
<p> <p>
if you have questions, email gashapwn@protonmail.com
or DM gashapwn on IRC at irc.lainchan.org
if you have questions, email {{ admin_email }}
<p> <p>


{%endblock%} {%endblock%}

Loading…
Cancel
Save