diff --git a/web/app.py b/web/app.py index e102d46..1ae1329 100644 --- a/web/app.py +++ b/web/app.py @@ -599,7 +599,22 @@ def create_app(): @app.route('/') def home_page(): #content = Markup('Index') - return render_template('index.html') #, markup_content = content) + l_news = News.query.order_by(News.time.desc()).first() + content = ''' + + + + + + + + + + +
+

''' + l_news.subject + '''

+
''' + l_news.date + '''

''' + l_news.text + '''

''' + return render_template('index.html', news = Markup(content)) @app.route('/help') def help_page(): diff --git a/web/templates/index.html b/web/templates/index.html index 8cb812a..ae53d75 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -1,4 +1,19 @@ {% extends 'flask_user/_public_base.html' %} {% block content %} +

 

+

Welcome to the {{ user_manager.USER_APP_NAME }}. This tool is used to manage your access.

+ +

 

+ + + + + + +
+

Latest News:

+{{news}} +
+

 

{% endblock %}