From: mathieu Date: Fri, 13 May 2016 15:14:39 +0000 (+0200) Subject: Hide button back to search result when no precedent search X-Git-Tag: 1.6.2^2~15^2~3^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d158b151c7440eac1c4758bfa781e98c57abc032;p=telemeta.git Hide button back to search result when no precedent search --- 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