[enh] more compact image results ++ fixed modal links

This commit is contained in:
Adam Tauber 2016-09-06 00:26:32 +02:00
parent 3a1b6fa818
commit b816752719
3 changed files with 10 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -67,7 +67,6 @@
a { a {
display: block; display: block;
width: 100%; width: 100%;
height: 170px;
background-size: cover; background-size: cover;
} }
} }

View File

@ -20,9 +20,15 @@
<span class="label label-default pull-right">{{ result.engine }}</span> <span class="label label-default pull-right">{{ result.engine }}</span>
<p class="text-muted pull-left">{{ result.pretty_url }}</p> <p class="text-muted pull-left">{{ result.pretty_url }}</p>
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="row">
<div class="col-md-6">
<a href="{{ result.img_src }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} class="btn btn-default">{{ _('Get image') }}</a> <a href="{{ result.img_src }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} class="btn btn-default">{{ _('Get image') }}</a>
</div>
<div class="col-md-6">
<a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} class="btn btn-default">{{ _('View source') }}</a> <a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} class="btn btn-default">{{ _('View source') }}</a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div>