diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-10 20:22:13 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-10 22:41:17 +0100 |
commit | f67dbf8b778eb6d7528dd3aaec03d6440478f26d (patch) | |
tree | 0b781896e87b049e5d55682c6ebf9689cc548698 | |
parent | 2cbc41543a085c26809e1284752f072cce22f8bd (diff) | |
download | padlite-teams-f67dbf8b778eb6d7528dd3aaec03d6440478f26d.tar.gz padlite-teams-f67dbf8b778eb6d7528dd3aaec03d6440478f26d.tar.bz2 padlite-teams-f67dbf8b778eb6d7528dd3aaec03d6440478f26d.zip |
Remove admin interface
The admin interface from peewee could not be used with sqlalchemy and
flask-admin is not available as debian package, so we drop the admin
interface.
-rw-r--r-- | admin.py | 13 | ||||
l--------- | admin/static | 1 | ||||
-rw-r--r-- | templates/layout.html | 4 |
3 files changed, 0 insertions, 18 deletions
diff --git a/admin.py b/admin.py deleted file mode 100644 index 1344546..0000000 --- a/admin.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask_peewee.admin import Admin -from app import app -from auth import auth -from models import User, Group, Member, Pad, Session - -admin = Admin(app, auth) -auth.register_admin(admin) -admin.register(User) -admin.register(Group) -admin.register(Member) -admin.register(Pad) -admin.register(Session) -admin.setup() diff --git a/admin/static b/admin/static deleted file mode 120000 index 72e6e47..0000000 --- a/admin/static +++ /dev/null @@ -1 +0,0 @@ -/home/pad/.virtualenvs/padlite-teams/lib/python2.7/site-packages/flask_peewee/static
\ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html index 4ba5c4a..14b3a14 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -55,10 +55,6 @@ <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> {% if current_user.is_authenticated %} - {% if current_user.admin %} - <li><a href="{{ url_for('admin.index') }}"><span class="glyphicon glyphicon-dashboard" /> Admin</a></li> - {% endif %} - <li><a href="{{ url_for('logout') }}"><span class="glyphicon glyphicon-log-out" /> Logout</a></li> {% else %} <li><a href="{{ url_for('login') }}"><span class="glyphicon glyphicon-log-in" /> Login</a></li> |