comfy_gallery 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/README.md +11 -0
  2. data/VERSION +1 -1
  3. data/app/assets/images/comfy_gallery/border.png +0 -0
  4. data/app/assets/images/comfy_gallery/controls.png +0 -0
  5. data/app/assets/images/comfy_gallery/loading.gif +0 -0
  6. data/app/assets/images/comfy_gallery/loading_background.png +0 -0
  7. data/app/assets/images/comfy_gallery/overlay.png +0 -0
  8. data/app/assets/javascripts/comfy_gallery/jquery.colorbox.js +4 -0
  9. data/app/assets/stylesheets/comfy_gallery/colorbox.css +61 -0
  10. data/app/helpers/gallery/application_helper.rb +0 -18
  11. data/app/views/admin/gallery/galleries/index.html.erb +0 -8
  12. data/app/views/admin/gallery/photos/_form.html.erb +1 -1
  13. data/comfy_gallery.gemspec +9 -66
  14. data/config/routes.rb +0 -4
  15. data/lib/comfy_gallery/engine.rb +0 -1
  16. metadata +20 -77
  17. data/app/assets/images/comfy_gallery/orbit/bullets.jpg +0 -0
  18. data/app/assets/images/comfy_gallery/orbit/left-arrow.png +0 -0
  19. data/app/assets/images/comfy_gallery/orbit/loading.gif +0 -0
  20. data/app/assets/images/comfy_gallery/orbit/mask-black.png +0 -0
  21. data/app/assets/images/comfy_gallery/orbit/pause-black.png +0 -0
  22. data/app/assets/images/comfy_gallery/orbit/right-arrow.png +0 -0
  23. data/app/assets/images/comfy_gallery/orbit/rotator-black.png +0 -0
  24. data/app/assets/images/comfy_gallery/orbit/timer-black.png +0 -0
  25. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/btnNext.png +0 -0
  26. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  27. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  28. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  29. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/loader.gif +0 -0
  30. data/app/assets/images/comfy_gallery/prettyPhoto/dark_rounded/sprite.png +0 -0
  31. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/btnNext.png +0 -0
  32. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/btnPrevious.png +0 -0
  33. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/contentPattern.png +0 -0
  34. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  35. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/loader.gif +0 -0
  36. data/app/assets/images/comfy_gallery/prettyPhoto/dark_square/sprite.png +0 -0
  37. data/app/assets/images/comfy_gallery/prettyPhoto/default/default_thumb.png +0 -0
  38. data/app/assets/images/comfy_gallery/prettyPhoto/default/loader.gif +0 -0
  39. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite.png +0 -0
  40. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_next.png +0 -0
  41. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_prev.png +0 -0
  42. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_x.png +0 -0
  43. data/app/assets/images/comfy_gallery/prettyPhoto/default/sprite_y.png +0 -0
  44. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/btnNext.png +0 -0
  45. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/btnPrevious.png +0 -0
  46. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  47. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  48. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternRight.png +0 -0
  49. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/contentPatternTop.png +0 -0
  50. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  51. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/loader.gif +0 -0
  52. data/app/assets/images/comfy_gallery/prettyPhoto/facebook/sprite.png +0 -0
  53. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/btnNext.png +0 -0
  54. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  55. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  56. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/loader.gif +0 -0
  57. data/app/assets/images/comfy_gallery/prettyPhoto/light_rounded/sprite.png +0 -0
  58. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/btnNext.png +0 -0
  59. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/btnPrevious.png +0 -0
  60. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  61. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/loader.gif +0 -0
  62. data/app/assets/images/comfy_gallery/prettyPhoto/light_square/sprite.png +0 -0
  63. data/app/assets/javascripts/comfy_gallery/admin.js +0 -72
  64. data/app/assets/javascripts/comfy_gallery/application.js +0 -15
  65. data/app/assets/javascripts/comfy_gallery/jquery.orbit-1.2.3.min.js +0 -17
  66. data/app/assets/javascripts/comfy_gallery/thumbnails.js +0 -85
  67. data/app/assets/stylesheets/comfy_gallery/admin.css +0 -57
  68. data/app/assets/stylesheets/comfy_gallery/application.css +0 -67
  69. data/app/assets/stylesheets/comfy_gallery/carousel.css.erb +0 -208
  70. data/app/assets/stylesheets/comfy_gallery/gallery_list.css +0 -18
  71. data/app/assets/stylesheets/comfy_gallery/reset.css +0 -1
  72. data/app/assets/stylesheets/comfy_gallery/thumbnails.css.erb +0 -181
  73. data/app/controllers/gallery/galleries_controller.rb +0 -15
  74. data/app/views/admin/gallery/_html_head.html.erb +0 -1
  75. data/app/views/gallery/_carousel.html.erb +0 -31
  76. data/app/views/gallery/_list_galleries.html.erb +0 -26
  77. data/app/views/gallery/_thumbnails.html.erb +0 -26
  78. data/app/views/gallery/galleries/index.html.erb +0 -1
  79. data/app/views/gallery/galleries/show.html.erb +0 -7
  80. data/test/functional/gallery/galleries_controller_test.rb +0 -24
@@ -1,181 +0,0 @@
1
- ul.gallery {
2
- padding-left: 0;
3
- margin: 20px auto;
4
- overflow: hidden;
5
- list-style: none; }
6
- ul.gallery li {
7
- float: left;
8
- text-align: center;
9
- margin: 0 10px 10px 0;
10
- border: none; }
11
-
12
- div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px}
13
- div.pp_default .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -78px -93px no-repeat}
14
- div.pp_default .pp_top .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_x.png") %>) top left repeat-x}
15
- div.pp_default .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -112px -93px no-repeat}
16
- div.pp_default .pp_content .ppt{color:#f8f8f8}
17
- div.pp_default .pp_content_container .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_y.png") %>) -7px 0 repeat-y;padding-left:13px}
18
- div.pp_default .pp_content_container .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_y.png") %>) top right repeat-y;padding-right:13px}
19
- div.pp_default .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_next.png") %>) center right no-repeat;cursor:pointer}
20
- div.pp_default .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_prev.png") %>) center left no-repeat;cursor:pointer}
21
- div.pp_default .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -29px no-repeat;cursor:pointer;height:28px;width:28px}
22
- div.pp_default .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -56px no-repeat;cursor:pointer}
23
- div.pp_default .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -84px no-repeat;cursor:pointer;height:28px;width:28px}
24
- div.pp_default .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 0 -113px no-repeat;cursor:pointer}
25
- div.pp_default .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) 2px 1px no-repeat;cursor:pointer;height:30px;width:30px}
26
- div.pp_default .pp_gallery ul li a{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/default_thumb.png") %>) center center #f8f8f8;border:1px solid #aaa}
27
- div.pp_default .pp_social{margin-top:7px}
28
- div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{left:auto;position:static}
29
- div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -51px 1px no-repeat;height:30px;width:30px}
30
- div.pp_default .pp_nav .pp_pause{background-position:-51px -29px}
31
- div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -31px -3px no-repeat;height:20px;margin:4px 0 0;width:20px}
32
- div.pp_default a.pp_arrow_next{background-position:-82px -3px;left:52px}
33
- div.pp_default .pp_content_container .pp_details{margin-top:5px}
34
- div.pp_default .pp_nav{clear:none;height:30px;position:relative;width:110px}
35
- div.pp_default .pp_nav .currentTextHolder{color:#999;font-family:Georgia;font-size:11px;font-style:italic;left:75px;line-height:25px;margin:0;padding:0 0 0 10px;position:absolute;top:2px}
36
- div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7}
37
- div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}
38
- div.pp_default .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -78px -127px no-repeat}
39
- div.pp_default .pp_bottom .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite_x.png") %>) bottom left repeat-x}
40
- div.pp_default .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/sprite.png") %>) -112px -127px no-repeat}
41
- div.pp_default .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/default/loader.gif") %>) center center no-repeat}
42
- div.light_rounded .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -88px -53px no-repeat}
43
- div.light_rounded .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -110px -53px no-repeat}
44
- div.light_rounded .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnNext.png") %>) center right no-repeat;cursor:pointer}
45
- div.light_rounded .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
46
- div.light_rounded .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
47
- div.light_rounded .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
48
- div.light_rounded .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
49
- div.light_rounded .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
50
- div.light_rounded .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
51
- div.light_rounded .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
52
- div.light_rounded .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
53
- div.light_rounded .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) 0 -71px no-repeat}
54
- div.light_rounded .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -22px -71px no-repeat}
55
- div.light_rounded .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -88px -80px no-repeat}
56
- div.light_rounded .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/sprite.png") %>) -110px -80px no-repeat}
57
- div.dark_rounded .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -88px -53px no-repeat}
58
- div.dark_rounded .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -110px -53px no-repeat}
59
- div.dark_rounded .pp_content_container .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png") %>) top left repeat-y}
60
- div.dark_rounded .pp_content_container .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png") %>) top right repeat-y}
61
- div.dark_rounded .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/btnNext.png") %>) center right no-repeat;cursor:pointer}
62
- div.dark_rounded .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
63
- div.dark_rounded .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
64
- div.dark_rounded .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
65
- div.dark_rounded .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
66
- div.dark_rounded .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
67
- div.dark_rounded .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
68
- div.dark_rounded .pp_description{color:#fff;margin-right:85px}
69
- div.dark_rounded .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
70
- div.dark_rounded .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
71
- div.dark_rounded .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) 0 -71px no-repeat}
72
- div.dark_rounded .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -22px -71px no-repeat}
73
- div.dark_rounded .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -88px -80px no-repeat}
74
- div.dark_rounded .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/sprite.png") %>) -110px -80px no-repeat}
75
- div.dark_rounded .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/loader.gif") %>) center center no-repeat}
76
- div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000}
77
- div.dark_square .pp_description{color:#fff;margin:0 85px 0 0}
78
- div.dark_square .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/loader.gif") %>) center center no-repeat}
79
- div.dark_square .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
80
- div.dark_square .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
81
- div.dark_square .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
82
- div.dark_square .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
83
- div.dark_square .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
84
- div.dark_square .pp_nav{clear:none}
85
- div.dark_square .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
86
- div.dark_square .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
87
- div.dark_square .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) 0 -71px no-repeat}
88
- div.dark_square .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/sprite.png") %>) -22px -71px no-repeat}
89
- div.dark_square .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/btnNext.png") %>) center right no-repeat;cursor:pointer}
90
- div.dark_square .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_square/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
91
- div.light_square .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
92
- div.light_square .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
93
- div.light_square .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
94
- div.light_square .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
95
- div.light_square .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:75px}
96
- div.light_square .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -1px -100px no-repeat;height:15px;width:14px}
97
- div.light_square .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -24px -100px no-repeat;height:15px;width:14px}
98
- div.light_square .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) 0 -71px no-repeat}
99
- div.light_square .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/sprite.png") %>) -22px -71px no-repeat}
100
- div.light_square .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/btnNext.png") %>) center right no-repeat;cursor:pointer}
101
- div.light_square .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_square/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
102
- div.facebook .pp_top .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -88px -53px no-repeat}
103
- div.facebook .pp_top .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternTop.png") %>) top left repeat-x}
104
- div.facebook .pp_top .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -110px -53px no-repeat}
105
- div.facebook .pp_content_container .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternLeft.png") %>) top left repeat-y}
106
- div.facebook .pp_content_container .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternRight.png") %>) top right repeat-y}
107
- div.facebook .pp_expand{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -31px -26px no-repeat;cursor:pointer}
108
- div.facebook .pp_expand:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -31px -47px no-repeat;cursor:pointer}
109
- div.facebook .pp_contract{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) 0 -26px no-repeat;cursor:pointer}
110
- div.facebook .pp_contract:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) 0 -47px no-repeat;cursor:pointer}
111
- div.facebook .pp_close{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -1px -1px no-repeat;cursor:pointer;height:22px;width:22px}
112
- div.facebook .pp_description{margin:0 37px 0 0}
113
- div.facebook .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/loader.gif") %>) center center no-repeat}
114
- div.facebook .pp_arrow_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) 0 -71px no-repeat;height:22px;margin-top:0;width:22px}
115
- div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default}
116
- div.facebook .pp_arrow_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -32px -71px no-repeat;height:22px;margin-top:0;width:22px}
117
- div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default}
118
- div.facebook .pp_nav{margin-top:0}
119
- div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px}
120
- div.facebook .pp_nav .pp_play{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -1px -123px no-repeat;height:22px;width:22px}
121
- div.facebook .pp_nav .pp_pause{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -32px -123px no-repeat;height:22px;width:22px}
122
- div.facebook .pp_next:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/btnNext.png") %>) center right no-repeat;cursor:pointer}
123
- div.facebook .pp_previous:hover{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/btnPrevious.png") %>) center left no-repeat;cursor:pointer}
124
- div.facebook .pp_bottom .pp_left{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -88px -80px no-repeat}
125
- div.facebook .pp_bottom .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/contentPatternBottom.png") %>) top left repeat-x}
126
- div.facebook .pp_bottom .pp_right{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/sprite.png") %>) -110px -80px no-repeat}
127
- div.pp_pic_holder a:focus{outline:none}
128
- div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500}
129
- div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}
130
- .pp_content{height:40px;min-width:40px}
131
- * html .pp_content{width:40px}
132
- .pp_content_container{position:relative;text-align:left;width:100%}
133
- .pp_content_container .pp_left{padding-left:20px}
134
- .pp_content_container .pp_right{padding-right:20px}
135
- .pp_content_container .pp_details{float:left;margin:10px 0 2px}
136
- .pp_description{display:none;margin:0}
137
- .pp_social{float:left;margin:0}
138
- .pp_social .facebook{float:left;margin-left:5px;overflow:hidden;width:55px}
139
- .pp_social .twitter{float:left}
140
- .pp_nav{clear:right;float:left;margin:3px 10px 0 0}
141
- .pp_nav p{float:left;margin:2px 4px;white-space:nowrap}
142
- .pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}
143
- a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}
144
- .pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}
145
- .pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}
146
- .pp_gallery div{float:left;overflow:hidden;position:relative}
147
- .pp_gallery ul{float:left;height:35px;margin:0 0 0 5px;padding:0;position:relative;white-space:nowrap}
148
- .pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}
149
- .pp_gallery ul a img{border:0}
150
- .pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
151
- .pp_gallery li.default a{background: url(<%= asset_path("sofa_gallery/prettyPhoto/facebook/default_thumbnail.gif") %>) 0 0 no-repeat;display:block;height:33px;width:50px}
152
- .pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
153
- a.pp_next{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnNext.png") %>) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
154
- a.pp_previous{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/btnNext.png") %>) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
155
- a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
156
- a.pp_close{display:block;line-height:22px;position:absolute;right:0;text-indent:-10000px;top:0}
157
- .pp_loaderIcon{display:block;height:24px;left:50%;margin:-12px 0 0 -12px;position:absolute;top:50%;width:24px}
158
- #pp_full_res{line-height:1!important}
159
- #pp_full_res .pp_inline{text-align:left}
160
- #pp_full_res .pp_inline p{margin:0 0 15px}
161
- div.ppt{color:#fff;display:none;font-size:17px;margin:0 0 5px 15px;z-index:9999}
162
- div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff}
163
- div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000}
164
- div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}
165
- div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative}
166
- div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff}
167
- div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px}
168
- div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important}
169
- div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default}
170
- div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default}
171
- div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background: url(<%= asset_path("sofa_gallery/prettyPhoto/light_rounded/loader.gif") %>) center center no-repeat}
172
- div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background: url(<%= asset_path("sofa_gallery/prettyPhoto/dark_rounded/contentPattern.png") %>) top left repeat}
173
- div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4}
174
- div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff}
175
- .pp_top,.pp_bottom{height:20px;position:relative}
176
- * html .pp_top,* html .pp_bottom{padding:0 20px}
177
- .pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px}
178
- .pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px}
179
- * html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static}
180
- .pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}
181
- .pp_fade,.pp_gallery li.default a img{display:none}
@@ -1,15 +0,0 @@
1
- class Gallery::GalleriesController < ApplicationController
2
-
3
- def index
4
- @galleries = Gallery::Gallery.all
5
- rescue ActiveRecord::RecordNotFound
6
- render :text => 'Gallery not found', :status => 404
7
- end
8
-
9
- def show
10
- @gallery = Gallery::Gallery.find(params[:id])
11
- rescue ActiveRecord::RecordNotFound
12
- render :text => 'Gallery not found', :status => 404
13
- end
14
-
15
- end
@@ -1 +0,0 @@
1
- <%= stylesheet_link_tag 'comfy_gallery/admin' %>
@@ -1,31 +0,0 @@
1
- <% if @gallery %>
2
- <!--[if IE]>
3
- <style type="text/css">
4
- .timer { display: none !important; }
5
- div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
6
- </style>
7
- <![endif]-->
8
- <% content_for :head do %>
9
- <%= javascript_include_tag "comfy_gallery/jquery.orbit-1.2.3.min.js" %>
10
- <%= stylesheet_link_tag "comfy_gallery/carousel.css" %>
11
- <% end %>
12
- <% content_for :doc_ready do %>
13
- $('#featured').orbit();
14
- <% end %>
15
- <% if @gallery.photos.count > 0 %>
16
- <div id="featured">
17
- <% @gallery.photos.order(:position).each do |photo| %>
18
- <%= image_tag(photo.image.url(:full), :alt => photo.description, :id => dom_id(photo), :"data-caption" => "##{dom_id(photo)}htmlCaption") %>
19
- <% end %>
20
- </div>
21
- <% @gallery.photos.reject{|p| p.description.blank?}.each do |photo| %>
22
- <span class="orbit-caption" id="<%=dom_id(photo)%>htmlCaption">
23
- <%= photo.description %>
24
- </span>
25
- <% end %>
26
- <% else %>
27
- <em>No photos in this gallery.</em>
28
- <% end %>
29
- <% else %>
30
- No images were found.
31
- <% end %>
@@ -1,26 +0,0 @@
1
- <% if @galleries %>
2
- <% content_for :head do %>
3
- <%= stylesheet_link_tag "comfy_gallery/gallery_list" %>
4
- <% end %>
5
- <% @galleries.each do |gallery| %>
6
- <div class="sofa_gallery">
7
- <div class="photo_preview">
8
- <% gallery.photos.order(:position).limit(6).each do |photo| %>
9
- <%= image_tag(photo.image.url(:admin_thumb), :alt => photo.description) %>
10
- <% end %>
11
- </div>
12
- <div class="photo_text">
13
- <h2><%= link_to gallery.title, gallery_path(gallery) %></h2>
14
- <p><%= gallery.description.truncate(200) %></p>
15
- <% if (count = gallery.photos.count) > 0 %>
16
- <%= link_to "View all #{count} photos.", gallery_path(gallery), :class => 'view_more' %>
17
- <% else %>
18
- <em>No photos in this gallery.</em>
19
- <% end %>
20
- </div>
21
- </div>
22
- <% end %>
23
- <% else %>
24
- No galleries were found.
25
- <% end %>
26
-
@@ -1,26 +0,0 @@
1
- <% if @gallery %>
2
- <% content_for :head do %>
3
- <%= stylesheet_link_tag "comfy_gallery/thumbnails.css" %>
4
- <%= javascript_include_tag "comfy_gallery/thumbnails.js" %>
5
- <% end %>
6
- <ul id="<%= dom_id(@gallery)%>" class="gallery">
7
- <h2><%= @gallery.title %></h2>
8
- <p><%= @gallery.description %></p>
9
- <br />
10
- <% if @gallery.photos.count > 0 %>
11
- <% @gallery.photos.order(:position).each do |photo| %>
12
- <li id="<%= dom_id(photo) %>">
13
- <div class="photo" style="width: <%= @gallery.thumb_width %>px; height: <%= @gallery.thumb_height %>px;">
14
- <%= link_to photo.image.url(:full), :rel => "prettyPhoto[pp_gal]", :title => photo.description do %>
15
- <%= image_tag(photo.image.url(:thumb), :alt => photo.title) %>
16
- <% end %>
17
- </div>
18
- </li>
19
- <% end %>
20
- <% else %>
21
- <em>No photos in this gallery.</em>
22
- <% end %>
23
- </ul>
24
- <% else %>
25
- Gallery not found.
26
- <% end %>
@@ -1 +0,0 @@
1
- <%= render :partial => 'gallery/list_galleries' %>
@@ -1,7 +0,0 @@
1
- <% content_for :head do %>
2
- <%= stylesheet_link_tag "comfy_gallery/gallery_list" %>
3
- <% end %>
4
- <div class="galleries">
5
- <%= link_to "« View All Galleries", galleries_path %>
6
- <%= render :partial => 'gallery/thumbnails' %>
7
- </div>
@@ -1,24 +0,0 @@
1
- require File.expand_path('../../test_helper', File.dirname(__FILE__))
2
-
3
- class Gallery::GalleriesControllerTest < ActionController::TestCase
4
-
5
- def test_get_index
6
- get :index
7
- assert_response :success
8
- assert_template :index
9
- assert assigns(:galleries)
10
- end
11
-
12
- def test_get_show
13
- get :show, :id => gallery_galleries(:default)
14
- assert_response :success
15
- assert_template :show
16
- assert assigns(:gallery)
17
- end
18
-
19
- def test_get_show_failure
20
- get :show, :id => 'invalid'
21
- assert_response 404
22
- end
23
-
24
- end