23 lines
554 B
Python
23 lines
554 B
Python
__author__ = 'RemiZOffAlex'
|
|
__copyright__ = '(c) RemiZOffAlex'
|
|
__license__ = 'MIT'
|
|
__email__ = 'remizoffalex@mail.ru'
|
|
__url__ = 'http://remizoffalex.ru'
|
|
|
|
from flask import render_template
|
|
|
|
from .. import app
|
|
from ..decorators import login_required
|
|
|
|
|
|
@app.route('/profile')
|
|
@login_required
|
|
def profile():
|
|
"""
|
|
Личный профиль пользователя
|
|
"""
|
|
pagedata = {}
|
|
pagedata['title'] = 'Мой профиль - {}'.format(app.config['TITLE'])
|
|
body = render_template('profile.html', pagedata=pagedata)
|
|
return body
|