From c1d9e3c6d17c99fed3b89344adf237012a8477ec Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 3 Oct 2025 10:26:26 +0200 Subject: đŸ’„ UI: improve criteria panel layout - add shortcuts for search, sheet opening MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/views_item.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ishtar_common/views_item.py') diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 156c12184..2974ac7c1 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -3059,7 +3059,7 @@ def get_item( datas = list(datas)[start:end] link_template = ( "" + "onclick='load_window(\"{}\")'{}>" '' ) link_ext_template = '{}' @@ -3073,13 +3073,13 @@ def get_item( curl = reverse("show-" + default_name, args=[999999, ""]) if not curl.endswith("/"): curl += "/" - lnk = link_template.format(curl) + lnk = link_template.format(curl, "") lnk = lnk.replace("999999", "") if not has_locks: lnk = lnk.replace("", "") data = json.dumps(_format_geojson(datas, lnk, display_polygon)) return HttpResponse(data, content_type="application/json") - for data in datas: + for idx_data, data in enumerate(datas): res = { "id": data[0], } @@ -3102,7 +3102,10 @@ def get_item( if not curl.endswith("/"): curl += "/" lnk_template = link_template - lnk = lnk_template.format(curl) + lnk_title = "" + if idx_data < 9: + lnk_title = f' title="[Ctrl+{idx_data+1}]"' + lnk = lnk_template.format(curl, lnk_title) if has_locks and data[-2]: if data[-1] == current_user_id: lnk = lnk.replace("", own_lock) -- cgit v1.2.3