From 02b2ac384953f2d69479a1ea53a071043394b590 Mon Sep 17 00:00:00 2001 From: John Nduli Date: Mon, 16 Sep 2024 11:28:44 +0300 Subject: fix: ui redesign with history button and ignore default web_url value --- gn2/wqflask/templates/wiki/genewiki.html | 6 +++--- gn2/wqflask/views.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html index f0d6675f..b07e86e0 100644 --- a/gn2/wqflask/templates/wiki/genewiki.html +++ b/gn2/wqflask/templates/wiki/genewiki.html @@ -26,14 +26,14 @@ {% endif %} - {% if is_logged_in %}
+ {% if is_logged_in %} + {% endif %} + [history]
- {% endif %} - [history] {% endfor %} diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 5c856b77..29df7596 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -1620,6 +1620,9 @@ def edit_wiki(comment_id: int): ) if request.method == "POST": post_data = request.form + web_url = post_data["web_url"] + if web_url == "http://": # default prefilled value in form + web_url = "" payload = { "symbol": post_data["symbol"], "pubmed_ids": [x.strip() for x in post_data["pubmed_ids"].split()], -- cgit v1.2.3