<accordion close-others="false">
    <accordion-group ng-repeat="visit in visits | orderBy: 'date' " is-open=true>

        <accordion-heading>
            <a class="title" ng-click="$event.stopPropagation();" href="#/visites/{{ visit.id }}">{{ visit.title }}</a>
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation();"><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/{{ visit.id }}"><span class="glyphicon glyphicon-eye-open"></span></a>
            <a class="pull-right" ng-click="$event.preventDefault(); $event.stopPropagation(); addBook(visit.id)">Créer un Book</a>
        </accordion-heading>

        <p class="nbrObjects">{{visit.count}} 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 visit.slides">
                <ng-include src="'books/galleryItem.html'"></ng-include>
            </li>
        </ul>

      
    </accordion-group>
    
</accordion>