Skip to content
Snippets Groups Projects
Commit 7eb9a55e authored by Benjamin Becker's avatar Benjamin Becker
Browse files

adds hrefs for preview images, link location in read.html line 83 missing

parent 053a9395
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,11 @@ section#dataset-preview p { ...@@ -199,7 +199,11 @@ section#dataset-preview p {
display: flex; display: flex;
} }
.container-preview-large > img { .container-preview-large a {
margin-left: auto;
}
.container-preview-large img {
height: 100%; height: 100%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
...@@ -642,7 +646,7 @@ label.rangesearch.disabled { ...@@ -642,7 +646,7 @@ label.rangesearch.disabled {
} }
} }
.preview-image-container > img { .preview-image-container img {
margin-top: auto; margin-top: auto;
height: auto; height: auto;
max-width: 102px; max-width: 102px;
......
...@@ -80,7 +80,9 @@ ...@@ -80,7 +80,9 @@
<section id="dataset-preview"> <section id="dataset-preview">
<h3>{{ _('Preview') }}:</h3> <h3>{{ _('Preview') }}:</h3>
<div class="container-preview-large"> <div class="container-preview-large">
<a href="#">
<img src= "{{ picture }}" alt= "Vorschau"/> <img src= "{{ picture }}" alt= "Vorschau"/>
</a>
</div> </div>
</section> </section>
{% endif %} {% endif %}
......
...@@ -35,7 +35,9 @@ Example: ...@@ -35,7 +35,9 @@ Example:
<div class="odsh-dataset-item"> <div class="odsh-dataset-item">
<div class="preview-image-container"> <div class="preview-image-container">
{% if thumbnail %} {% if thumbnail %}
<a href={{ h.url_for(controller='package', action='read', id=package.name) }}>
<img src= "{{ thumbnail }}" alt= "Vorschau" /> <img src= "{{ thumbnail }}" alt= "Vorschau" />
</a>
{% endif%} {% endif%}
</div> </div>
{% block content %} {% block content %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment