--- a/client/app/gallery/gallery.css Mon Mar 23 12:24:13 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-.gallery .item {
- overflow:hidden; position:relative; height: 250px; padding: 5px;
-}
-
-.img-ctn {
- height: 100%; width: 100%; border: 1px solid #DDD; padding: 5px; overflow: hidden;
-}
-
-.img-ctn:hover {
- background-color: #DDD;
-}
-
-.img-ctn p {
- background-color: #ddd;
- bottom: -5px;
- display: none;
- padding: 2px 5px;
- position: absolute;
- width: calc(100% - 22px);
-}
-
-.img-ctn:hover p, .img-ctn:hover .gallery-buttons {
- display: block;
-}
-
-.gallery .item img {
- margin: 0 auto;
- max-height: 100%;
-}
-
-.gallery-buttons{
- display: none;
- position: absolute;
- right: 10px;
- top: 10px;
-}
-
-.subtitle {
- border-top: 1px solid #000;
- border-bottom: 1px dotted #000;
- margin-top: 20px;
- padding: 6px 0 10px;
-}
--- a/client/app/gallery/gallery.html Mon Mar 23 12:24:13 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-<h1>{{ gallery.title }}</h1>
-<p>{{ gallery.description }}</p>
-<h4 class="subtitle">{{ gallery.images.length }} points d'intérêt</h4>
-<ul class="list-unstyled list-inline row gallery">
- <li class="col-md-3 item" ng-repeat="i in gallery.hits">
- <div class="img-ctn">
- <img class="img img-responsive image" ng-src="{{ i.metas_dict.images }}" />
- <p>{{ i.metas_dict.name }}</p>
- <div class="gallery-buttons">
- <a class="btn btn-default" href="#/slideshow/edit/{{ $index }}"><span class="glyphicon glyphicon-pencil"></span></a>
- <a class="btn btn-default" href="#/slideshow/{{ $index }}"><span class="glyphicon glyphicon-eye-open"></span></a>
- <a class="btn btn-default" ng-click="deleteItem($index)"><span class="glyphicon glyphicon-trash"></span></a>
- </div>
- </div>
- </li>
-</ul>
--- a/client/app/gallery/gallery_controller.js Mon Mar 23 12:24:13 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-(function(){
- 'use strict';
-
- angular.module('ammicoGallery',['ngResource', 'ngRoute'])
- .config(function ($routeProvider) {
- $routeProvider
- .when('/', {
- templateUrl: 'gallery/gallery.html',
- controller: 'galleryCtrl'
- });
- })
- .controller('galleryCtrl', function($scope, $location, slideshowModel){
- console.log('gallery 5',$scope, $location, slideshowModel);
- $scope.gallery = slideshowModel.slideshow;
-
- $scope.deleteItem = function(i){
- if(0<=i && i<$scope.gallery.hits.length){
- if(window.confirm('Êtes-vous sûr(e) de vouloir effacer cet élément ? Cette action est irrémédiable.')){
- $scope.gallery.hits.splice(i, 1);
- }
- }
- };
- });
-
-})();
--- a/client/app/gallery/gallery_controller_test.js Mon Mar 23 12:24:13 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-'use strict';
-
-describe("gallery_controller_test", function(){
- it("should assert something",function(){
- expect(true).toBe(true);
- })
-})
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/app/slides/slides.html Mon Mar 23 12:25:19 2015 +0100
@@ -0,0 +1,16 @@
+<h1>Slide</h1>
+<div class="carousel-holder row">
+ <div class="row">
+ <div class="col-md-6 col-md-offset-1">
+ <img ng-src="{{ slide.metas_dict.images }}" style="margin: auto;">
+ </div>
+ <div class="carousel-caption col-md-4">
+ <slide-editor index="{{$index}}"></slide-editor>
+ <hr />
+ <h4 class="original-text">{{ slide.metas_dict.name }}</h4>
+ <p class="original-text">{{ slide.metas_dict.description }}</p>
+ <p><small><strong>Titre :</strong> {{ slide.details.title }}</small></p>
+ <p><small><strong>Description :</strong> {{ slide.details.description }}</small></p>
+ </div>
+ </div>
+</div>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/app/slides/slides_controller.js Mon Mar 23 12:25:19 2015 +0100
@@ -0,0 +1,19 @@
+(function(){
+ 'use strict';
+
+ angular.module('ammicoSlides',['ngResource', 'ngRoute'])
+ .config(function ($routeProvider) {
+ $routeProvider
+ .when('/', {
+ templateUrl: 'slides/slides.html',
+ controller: 'slidesCtrl'
+ });
+ })
+ .controller('slidesCtrl', function($scope, booksModel, $routeParams){
+ console.log(booksModel.slides[$routeParams.idSlide]);
+ $scope.slide = booksModel.slides[$routeParams.idSlide];
+ })
+ .controller('slideEditCtrl', function(){
+ });
+
+})();
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/app/slides/slides_controller_test.js Mon Mar 23 12:25:19 2015 +0100
@@ -0,0 +1,7 @@
+'use strict';
+
+describe("slides_controller_test", function(){
+ it("should assert something",function(){
+ expect(true).toBe(true);
+ })
+})