Update profile

This commit is contained in:
RemiZOffAlex
2020-02-17 01:06:16 +03:00
parent 6d998911af
commit 27efa3dcf3
4 changed files with 149 additions and 0 deletions

View File

@@ -20,3 +20,22 @@ def profile():
pagedata['title'] = 'Мой профиль - {}'.format(app.config['TITLE'])
body = render_template('profile.html', pagedata=pagedata)
return body
@app.route('/profile/pages')
@login_required
def profile_pages():
"""
Личный профиль пользователя
"""
pagedata = {}
pagedata['title'] = 'Мой профиль - {}'.format(app.config['TITLE'])
pagedata['pagination'] = {
"page": 1,
"per_page": app.config['ITEMS_ON_PAGE'],
"size": 0
}
body = render_template('profile_pages.html', pagedata=pagedata)
return body