<accordion ng-show="last_visit" close-others="false">
  <accordion-group is-open=true>
    <accordion-heading>

      <a class="title" ng-click="$event.stopPropagation();" href="#/my_visit/{{last_visit.id}}">{{ last_visit.title }}</a>
      <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); share($index)"><span class="glyphicon glyphicon-share"></span></a> 
      <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); edit()"><span class="glyphicon glyphicon-cog"></span></a>
      <a class="pull-right" ng-click="$event.stopPropagation();" href="#/slideshow/{{ last_visit.id }}"><span class="glyphicon glyphicon-eye-open"></span></a>
      <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); addBook(last_visit.id)">Créer un Book</a>
      
    </accordion-heading>
        <p class="nbrObjects">{{last_visit.slides.length}} objets</p>

        <ul ng:model="slides" class="list-unstyled list-inline gallery container-fluid">
        
            <li class="item" ng-class="{'no-img': !slide.details.images[0]}" ng-repeat="slide in last_visit.slides">
                <ng-include src="'books/galleryItem.html'"></ng-include>
            </li>
        </ul>
    </accordion-group>
</accordion>

 <p ng-hide="last_visit">
    Vous n'avez pas encore effectué de visites
 </p>
    