add xanaedit_item

This commit is contained in:
Edward Betts 2017-06-20 19:18:39 +01:00
parent 2feb845824
commit 6e529345bf

View file

@ -249,6 +249,11 @@ def history(username, hashid):
item = get_item(username, hashid) item = get_item(username, hashid)
return render_template('history.html', doc=item) return render_template('history.html', doc=item)
@bp.route('/<username>/<hashid>/xanaedit')
def xanaedit_item(username, hashid):
obj = get_item(username, hashid)
return render_template('xanaedit.html', doc=obj)
@bp.route('/<username>/<hashid>/edit', methods=['GET', 'POST']) @bp.route('/<username>/<hashid>/edit', methods=['GET', 'POST'])
def edit_item(username, hashid): def edit_item(username, hashid):
obj = get_item(username, hashid) obj = get_item(username, hashid)