Changed logout href to a flask generated url. Removed unused imports.

This commit is contained in:
neviyn 2015-10-05 12:29:31 +01:00
parent db65a9aa48
commit f43c089b95
2 changed files with 3 additions and 4 deletions

View File

@ -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>

View File

@ -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