fix titles
This commit is contained in:
parent
71f8ff967c
commit
bcec5d05c8
@ -37,7 +37,7 @@ def index():
|
||||
next_url = url_for('index', page=posts.next_num) if posts.has_next else None
|
||||
prev_url = url_for('index', page=posts.prev_num) if posts.has_prev else None
|
||||
|
||||
return render_template('index.html', title='Home', form=form, posts=posts.items, next_url=next_url, prev_url=prev_url)
|
||||
return render_template('index.html', title='oily home', form=form, posts=posts.items, next_url=next_url, prev_url=prev_url)
|
||||
|
||||
@app.route('/explore')
|
||||
@login_required
|
||||
@ -49,7 +49,7 @@ def explore():
|
||||
next_url = url_for('explore', page=posts.next_num) if posts.has_next else None
|
||||
prev_url = url_for('explore', page=posts.prev_num) if posts.has_prev else None
|
||||
|
||||
return render_template('explore.html', title='Explore', posts=posts.items, next_url=next_url, prev_url=prev_url)
|
||||
return render_template('explore.html', title='oily explore', posts=posts.items, next_url=next_url, prev_url=prev_url)
|
||||
|
||||
@app.route('/login', methods=['GET', 'POST'])
|
||||
def login():
|
||||
@ -66,7 +66,7 @@ def login():
|
||||
if not next_page or urlsplit(next_page).netloc != '':
|
||||
next_page = url_for('index')
|
||||
return redirect(next_page)
|
||||
return render_template('login.html', title='Sign In', form=form)
|
||||
return render_template('login.html', title='oily sign in', form=form)
|
||||
|
||||
@app.route('/logout')
|
||||
def logout():
|
||||
@ -89,7 +89,7 @@ def register():
|
||||
#user.gen_avatar()
|
||||
flash('User has been created.')
|
||||
return redirect(url_for('login'))
|
||||
return render_template('register.html', title='Register', form=form)
|
||||
return render_template('register.html', title='oily register', form=form)
|
||||
|
||||
@app.route('/reset_password/<token>', methods=['GET', 'POST'])
|
||||
def reset_password(token):
|
||||
@ -118,7 +118,7 @@ def user(username):
|
||||
prev_url = url_for('user', username=user.username, page=posts.prev_num) if posts.has_prev else None
|
||||
|
||||
form = EmptyForm()
|
||||
return render_template('user.html', title='Profile', user=user, posts=posts.items, next_url=next_url, prev_url=prev_url, form=form)
|
||||
return render_template('user.html', title='oily profile', user=user, posts=posts.items, next_url=next_url, prev_url=prev_url, form=form)
|
||||
|
||||
@app.route('/edit_profile', methods=['GET', 'POST'])
|
||||
@login_required
|
||||
@ -133,7 +133,7 @@ def edit_profile():
|
||||
elif request.method == 'GET':
|
||||
form.username.data = current_user.username
|
||||
form.about_me.data = current_user.about_me
|
||||
return render_template('edit_profile.html', title='Edit Profile', form=form)
|
||||
return render_template('edit_profile.html', title='oily edit profile', form=form)
|
||||
|
||||
@app.route('/follow/<username>', methods=['POST'])
|
||||
@login_required
|
||||
@ -184,6 +184,6 @@ def reset_password_request():
|
||||
send_password_reset_email(user)
|
||||
flash('Password reset sent.')
|
||||
return redirect(url_for('login'))
|
||||
return render_template('reset_password_request.html', title='Reset Password', form=form)
|
||||
return render_template('reset_password_request.html', title='oily password reset', form=form)
|
||||
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='simple.css') }}">
|
||||
{% if title %}
|
||||
<title>{{ title }} - Page</title>
|
||||
<title>{{ title }}</title>
|
||||
{% else %}
|
||||
<title>oily</title>
|
||||
<title>oily page</title>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user