Browse Source

Fix search result

Matthias Vogelgesang 7 years ago
parent
commit
25870e6d28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nova/templates/index/search.html

+ 2 - 2
nova/templates/index/search.html

@@ -4,8 +4,8 @@
 {% for access in pagination.items %}
 <div class="row dataset-pad">
   <div class="col-sm-1">
-    {% if dataset.has_thumbnail %}
-    <img class="img-responsive" width="64" height="64" src="{{ url_for("show_dataset", name=collection.user.name, collection_name=collection.name, dataset_name=dataset.name, path='.thumb.jpg') }}"/>
+    {% if access.dataset.has_thumbnail %}
+    <img class="img-responsive" width="64" height="64" src="{{ url_for("show_dataset", name=collection.user.name, collection_name=collection.name, dataset_name=access.dataset.name, path='.thumb.jpg') }}"/>
     {% else %}
     <img class="img-responsive" src="https://placeholdit.imgix.net/~text?txtsize=33&txt=%C3%97&w=64&h=64"/>
     {% endif %}