# HG changeset patch
# User rougeronj
# Date 1427109919 -3600
# Node ID c7dfe7185ef7a453e6a2f5e4cf19cc9f2e135e71
# Parent 4053d9a4454879a155c47a347e89c5080ab75f5f
rename 'gallery' to 'slides' to handle the slides pages
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/gallery/gallery.css
--- 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;
-}
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/gallery/gallery.html
--- 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 @@
-
{{ gallery.title }}
-{{ gallery.description }}
-{{ gallery.images.length }} points d'intérêt
-
- -
-
-
![]()
-
{{ i.metas_dict.name }}
-
-
-
-
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/gallery/gallery_controller.js
--- 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);
- }
- }
- };
- });
-
-})();
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/gallery/gallery_controller_test.js
--- 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);
- })
-})
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/slides/slides.css
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/slides/slides.html
--- /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 @@
+Slide
+
+
+
+
![]()
+
+
+
+
+
{{ slide.metas_dict.name }}
+
{{ slide.metas_dict.description }}
+
Titre : {{ slide.details.title }}
+
Description : {{ slide.details.description }}
+
+
+
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/slides/slides_controller.js
--- /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(){
+ });
+
+})();
diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/slides/slides_controller_test.js
--- /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);
+ })
+})