--- a/client/app/search/search.html Fri Oct 03 17:04:28 2014 +0200
+++ b/client/app/search/search.html Mon Oct 06 12:59:13 2014 +0200
@@ -1,21 +1,25 @@
<h1>Recherche <span ng-if="q !='' "> : {{ q }}</span></h1>
<h4 class="subtitle" ng-if="results.nhits>0">{{ results.nhits }} résultat(s)</h4>
<div ng-if="results.nhits>0">
- <div class="row search-item" ng-repeat="h in results.hits">
- <img class="col-md-3" src="{{ h.url }}"/>
- <div class="col-md-7">
+ <div class="row search-item" ng-repeat="h in results.hits" ng-init="h.imgbig=false">
+ <div ng-class="{'col-md-5': h.imgbig, 'col-md-3': !h.imgbig}">
+ <img src="{{ h.url }}" ng-class="{'search-img-max': !h.imgbig}"/>
+ </div>
+ <div ng-class="{'col-md-5': h.imgbig, 'col-md-7': !h.imgbig}">
<p><strong>Nom :</strong> {{ h.metas|meta:"name" }}</p>
<p><strong>Description :</strong> {{ h.metas|meta:"description" }}</p>
- <p><small><strong>Classification :</strong> {{ h.metas|meta:"classification" }}</small></p>
- <p><small><strong>Current Custody :</strong> {{ h.metas|meta:"currentcustody" }}</small></p>
- <p><small><strong>Former Custody :</strong> {{ h.metas|meta:"formercustody" }}</small></p>
- <p><small><strong>Mesures :</strong> {{ h.metas|meta:"measures" }}</small></p>
- <p><small><strong>Acteurs :</strong> {{ h.metas|meta:"actors" }}</small></p>
- <p><small><strong>Lieux :</strong> {{ h.metas|meta:"places" }}</small></p>
+ <div ng-show="h.imgbig">
+ <p><small><strong>Classification :</strong> {{ h.metas|meta:"classification" }}</small></p>
+ <p><small><strong>Current Custody :</strong> {{ h.metas|meta:"currentcustody" }}</small></p>
+ <p><small><strong>Former Custody :</strong> {{ h.metas|meta:"formercustody" }}</small></p>
+ <p><small><strong>Mesures :</strong> {{ h.metas|meta:"measures" }}</small></p>
+ <p><small><strong>Acteurs :</strong> {{ h.metas|meta:"actors" }}</small></p>
+ <p><small><strong>Lieux :</strong> {{ h.metas|meta:"places" }}</small></p>
+ </div>
</div>
<div class="col-md-1">
<a class="btn btn-default" href="#/slideshow/add/{{q}},{{$index}}"><span class="glyphicon glyphicon-plus"></span></a>
- <a class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span></a>
+ <a class="btn btn-default" ng-click="h.imgbig=!h.imgbig"><span class="glyphicon glyphicon-eye-open"></span></a>
</div>
</div>
</div>