From d158b151c7440eac1c4758bfa781e98c57abc032 Mon Sep 17 00:00:00 2001 From: mathieu Date: Fri, 13 May 2016 17:14:39 +0200 Subject: [PATCH] Hide button back to search result when no precedent search --- telemeta/templates/search/addplaylist.html | 11 +++++++++-- .../templates/search/confirmation_add_playslist.html | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/telemeta/templates/search/addplaylist.html b/telemeta/templates/search/addplaylist.html index 0d184bf0..f185a9db 100644 --- a/telemeta/templates/search/addplaylist.html +++ b/telemeta/templates/search/addplaylist.html @@ -52,10 +52,17 @@ {% for item in selected_items_list %} {% endfor %} + {% if lastquerypath %} -
+ {% endif %} +
+ {% if lastquerypath %} -
+
+ {% else %} +
+ + {% endif %}
{% endblock %} diff --git a/telemeta/templates/search/confirmation_add_playslist.html b/telemeta/templates/search/confirmation_add_playslist.html index 0804447e..ebadf7ec 100644 --- a/telemeta/templates/search/confirmation_add_playslist.html +++ b/telemeta/templates/search/confirmation_add_playslist.html @@ -31,5 +31,7 @@ {% endifequal %}
+ {% if lastquerypath %} return to search results + {% endif %} {% endblock %} \ No newline at end of file -- 2.39.5