diff --git a/app/__init__.py b/app/__init__.py index 4e6e2ad..573e32b 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -6,6 +6,8 @@ from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_wtf.csrf import CSRFProtect, CSRFError from flask_babel import Babel, lazy_gettext +from flask_moment import Moment + from werkzeug.contrib.fixers import ProxyFix from config import config @@ -30,6 +32,8 @@ csrf = CSRFProtect(app) #csrf.init_app(app) babel = Babel() babel.init_app(app) +moment = Moment(app) +moment.init_app(app) from .main import main as main_blueprint app.register_blueprint(main_blueprint) diff --git a/app/static/css/style.css b/app/static/css/style.css index c8fa599..483749f 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -252,4 +252,9 @@ a:active { border-color: #070; } - +.panel > .panel-heading { + padding: 6px 15px; + border-bottom: 1px solid transparent; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} diff --git a/app/templates/base.html b/app/templates/base.html index 9feaef9..aef96ee 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -20,6 +20,8 @@ {% block scripts %} {{ super() }} +{{ moment.lang("bg") }} +{{ moment.include_moment() }} {% endblock %} {% block navbar %} diff --git a/app/templates/sidebar.html b/app/templates/settings/acc_avatar.html similarity index 57% rename from app/templates/sidebar.html rename to app/templates/settings/acc_avatar.html index 8031b43..ec46eef 100644 --- a/app/templates/sidebar.html +++ b/app/templates/settings/acc_avatar.html @@ -1,14 +1,10 @@ -
+ Member Since: {{ moment(current_user.member_since).fromNow() }}
+ Group: {{ current_user.group }}
+ 2-Factor: {{ current_user.twofactor }}
+