Skip to content

Commit

Permalink
Add link to map search page in main map
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Feb 13, 2024
1 parent f5c2705 commit 9d67405
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geotags/views.py
Expand Up @@ -296,7 +296,7 @@ def for_query(request):
if q is not None:
query_description = q
if f is not None:
query_description = f'Empty query with some filtes applied'
query_description = f'Empty query with some filters applied'
tvars.update({
'tag': None,
'username': None,
Expand Down
9 changes: 6 additions & 3 deletions templates/geotags/geotags_content.html
Expand Up @@ -19,11 +19,14 @@
{% if not modal_version %}
<div class="row middle">
<div class="col-md-8 v-spacing-top-4 v-spacing-2">
{% if query_search_page_url %}
<a class="no-hover btn-secondary btn-inverse" href="{{ query_search_page_url }}">See results in search page</a>
{% endif %}
{% if username or sound or pack or query_params %}
{% if query_search_page_url %}
<a class="no-hover btn-secondary btn-inverse" href="{{ query_search_page_url }}">See results in search page</a>
{% endif %}
<a class="no-hover btn-secondary btn-inverse" href="{% url "geotags" %}">View all geotags</a>
{% else %}
{% comment %} all sounds map {% endcomment %}
<a class="no-hover btn-secondary btn-inverse" href="{% url 'sounds-search' %}?mm=1">See results in search page</a>
{% endif %}
</div>
<div class="col-md-4 v-spacing-top-2 v-spacing-2">
Expand Down

0 comments on commit 9d67405

Please sign in to comment.