diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2024-04-12 21:36:13 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2024-04-12 21:36:13 +0200 |
commit | 3f8020c01af418cccb8c9fa8860e615fbcc262d1 (patch) | |
tree | f7d1d094b86b9eae659b19ab78f9ab1e9a5d3668 | |
parent | 58f839a3e3395c46d77fbf4fa7f955570e38fe98 (diff) | |
download | web-master.tar.gz web-master.tar.bz2 |
-rw-r--r-- | docker/templates/index.html | 2 | ||||
-rw-r--r-- | docker/views.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docker/templates/index.html b/docker/templates/index.html index a6eed32..08dd3be 100644 --- a/docker/templates/index.html +++ b/docker/templates/index.html @@ -37,7 +37,7 @@ {% for mt in items %} <li> {% for term in mt.1 %} - <a href="?q={{ term|urlencode }}&db={{ mt.0|urlencode }}&define=1" title="Define {{ term }}">{{ term|title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %} + <a href="?q={{ term|urlencode }}&db={{ mt.0|urlencode }}&define=1&strategy={{ mtc.strategy|urlencode }}" title="Define {{ term }}">{{ term|title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %} </li> {% endfor %} </ul> diff --git a/docker/views.py b/docker/views.py index f151d07..0961fc8 100644 --- a/docker/views.py +++ b/docker/views.py @@ -179,6 +179,7 @@ def index(request, item=None): if not mtc: mtc = result + mtc['strategy'] = strategy mtc['dbnames'] = {} if 'matches' in mtc: for m in mtc['matches']: |