Changed logout href to a flask generated url. Removed unused imports.
This commit is contained in:
parent
db65a9aa48
commit
f43c089b95
@ -29,7 +29,7 @@
|
||||
</button>
|
||||
</li>
|
||||
<li class="navbar-text" data-toggle="tooltip" data-placement="bottom" title="Last API Refresh: {{ current_user.last_updated }}"><span><img alt="avatar" src="http://www.gravatar.com/avatar/{{ current_user.gravatar }}?s=24"></span> {{ current_user.username }}</li>
|
||||
<li><a href="/logout">Logout</a></li>
|
||||
<li><a href="{{ url_for('logout') }}">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@ -40,7 +40,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<input type="text" autocomplete=off id="kana" class="form-control answer-size">
|
||||
<label for="kana"></label><input type="text" autocomplete=off id="kana" class="form-control answer-size">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,6 +1,5 @@
|
||||
import json
|
||||
import random
|
||||
from flask import Flask, render_template, redirect, url_for, jsonify, flash, Response
|
||||
from flask import Flask, render_template, redirect, url_for, jsonify, flash
|
||||
from flask.ext.login import LoginManager, login_user, login_required, current_user, logout_user, login_fresh
|
||||
from flask.ext.sqlalchemy import SQLAlchemy
|
||||
from flask.ext.wtf import Form
|
||||
|
Loading…
Reference in New Issue
Block a user