aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py4
-rw-r--r--python/fatcat_web/templates/entity_edit.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 7d9b708f..f9faf328 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -48,10 +48,12 @@ def container_edit_view(ident):
# #return render_template('container_edit.html')
@app.route('/container/create', methods=['GET'])
+@login_required
def container_create_view():
return render_template('container_create.html')
@app.route('/container/create', methods=['POST'])
+@login_required
def container_create():
raise NotImplementedError
params = dict()
@@ -201,10 +203,12 @@ def release_lookup():
return redirect('/release/{}'.format(resp.ident))
@app.route('/release/create', methods=['GET'])
+@login_required
def release_create_view():
return render_template('release_create.html')
@app.route('/release/create', methods=['POST'])
+@login_required
def release_create():
raise NotImplementedError
params = dict()
diff --git a/python/fatcat_web/templates/entity_edit.html b/python/fatcat_web/templates/entity_edit.html
index 5da98d89..97f7bf46 100644
--- a/python/fatcat_web/templates/entity_edit.html
+++ b/python/fatcat_web/templates/entity_edit.html
@@ -3,6 +3,6 @@
<h1>Not Implemented</h1>
-Entity editing isn't implemented yet, only creation. Sorry!
+<p>Entity editing via the web interface isn't implemented yet. Sorry!
{% endblock %}