diff --git a/app/accounts.py b/app/accounts.py index 4a1e570..e28f6ca 100644 --- a/app/accounts.py +++ b/app/accounts.py @@ -252,6 +252,9 @@ def get(): # Delete # + if not current_app.config["USER_ENABLE_EMAIL"]: + account["2"] = '''N/A''' + if account["4"]: account["4"] = '''

''' else: @@ -267,20 +270,11 @@ def get(): else: account["6"] = '''

''' - if current_app.config["USER_ENABLE_EMAIL"]: - if account["8"]: - account["8"] = '''

''' - else: - account["8"] = '''

''' + if not current_app.config["USER_ENABLE_EMAIL"]: + account["8"] = '''

''' + elif account["8"]: + account["8"] = '''

''' else: - # shift columns to fill in gap of 2 - account["2"] = account["3"] - account["3"] = account["4"] - account["4"] = account["5"] - account["5"] = account["6"] - account["6"] = account["7"] - # remove last two columns - del account["7"] - del account["8"] + account["8"] = '''

''' return data diff --git a/app/templates/accounts/index.html.j2 b/app/templates/accounts/index.html.j2 index 8d60c8e..febcc90 100644 --- a/app/templates/accounts/index.html.j2 +++ b/app/templates/accounts/index.html.j2 @@ -14,17 +14,13 @@ Actions Name - {% if config.USER_ENABLE_EMAIL %} - Email - {% endif %} + Email GM Level Locked Banned Muted Registered - {% if config.USER_ENABLE_EMAIL %} - Email Confirmed - {% endif %} + Email Confirmed