aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-02-07 13:51:24 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-07 13:51:24 -0800
commit56e3457f4776ee5332080c5e890ed5b352cfadeb (patch)
tree2aa3b2e6d18b9b77edfbb771b011e3a1088b8e9a
parent3edb2bb7ac4e1ba3d9d15957669e2a5bdc8049d3 (diff)
downloadfatcat-56e3457f4776ee5332080c5e890ed5b352cfadeb.tar.gz
fatcat-56e3457f4776ee5332080c5e890ed5b352cfadeb.zip
auth required for creation; correct edit stub note
-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 %}