add xanaedit_item
This commit is contained in:
parent
2feb845824
commit
6e529345bf
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue