refinerycms-6hoursdaily-photo-gallery 0.0.4.dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. data/Gemfile +27 -0
  2. data/LICENSE.md +8 -0
  3. data/README.md +224 -0
  4. data/app/assets/images/refinery/photo_gallery/admin/chosen-sprite.png +0 -0
  5. data/app/assets/images/refinery/photo_gallery/admin/icons/album.png +0 -0
  6. data/app/assets/images/refinery/photo_gallery/admin/icons/album_add.png +0 -0
  7. data/app/assets/images/refinery/photo_gallery/admin/icons/album_edit.png +0 -0
  8. data/app/assets/images/refinery/photo_gallery/admin/icons/cog.png +0 -0
  9. data/app/assets/images/refinery/photo_gallery/admin/icons/down.gif +0 -0
  10. data/app/assets/images/refinery/photo_gallery/admin/icons/folder.png +0 -0
  11. data/app/assets/images/refinery/photo_gallery/admin/icons/folder_add.png +0 -0
  12. data/app/assets/images/refinery/photo_gallery/admin/icons/folder_edit.png +0 -0
  13. data/app/assets/images/refinery/photo_gallery/admin/icons/loading.gif +0 -0
  14. data/app/assets/images/refinery/photo_gallery/admin/icons/page_copy.png +0 -0
  15. data/app/assets/images/refinery/photo_gallery/admin/icons/photo.png +0 -0
  16. data/app/assets/images/refinery/photo_gallery/admin/icons/photo_add.png +0 -0
  17. data/app/assets/images/refinery/photo_gallery/admin/icons/photo_edit.png +0 -0
  18. data/app/assets/images/refinery/photo_gallery/admin/icons/up.gif +0 -0
  19. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif +0 -0
  20. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons-disabled.png +0 -0
  21. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons.png +0 -0
  22. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/delete.gif +0 -0
  23. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/done.gif +0 -0
  24. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/error.gif +0 -0
  25. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/throbber.gif +0 -0
  26. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/transp50.png +0 -0
  27. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload-bw.png +0 -0
  28. data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload.png +0 -0
  29. data/app/assets/images/refinery/photo_gallery/admin/rss-feed.png +0 -0
  30. data/app/assets/images/refinery/photo_gallery/fancybox/blank.gif +0 -0
  31. data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_loading.gif +0 -0
  32. data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_sprite.png +0 -0
  33. data/app/assets/images/refinery/photo_gallery/fancybox/helpers/fancybox_buttons.png +0 -0
  34. data/app/assets/javascripts/refinery/photo_gallery/admin/jquery.chosen.min.js +10 -0
  35. data/app/assets/javascripts/refinery/photo_gallery/admin/photo_gallery.js +28 -0
  36. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/changelog.txt +218 -0
  37. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/cs.js +14 -0
  38. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/da.js +12 -0
  39. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/de.js +24 -0
  40. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/el.js +14 -0
  41. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/es.js +25 -0
  42. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/et.js +33 -0
  43. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fi.js +33 -0
  44. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr-ca.js +35 -0
  45. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr.js +25 -0
  46. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hr.js +25 -0
  47. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hu.js +33 -0
  48. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/it.js +24 -0
  49. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ja.js +37 -0
  50. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ko.js +36 -0
  51. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/lv.js +33 -0
  52. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/nl.js +21 -0
  53. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pl.js +24 -0
  54. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pt-br.js +35 -0
  55. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ro.js +24 -0
  56. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ru.js +21 -0
  57. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sk.js +37 -0
  58. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sr.js +14 -0
  59. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sv.js +12 -0
  60. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.js +195 -0
  61. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.js +383 -0
  62. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/license.txt +339 -0
  63. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.browserplus.js +1 -0
  64. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.js +226 -0
  65. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.swf +0 -0
  66. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js +2525 -0
  67. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js.default +2525 -0
  68. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.gears.js +1 -0
  69. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html4.js +1 -0
  70. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js +765 -0
  71. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js.default +765 -0
  72. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.js +618 -0
  73. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.js +1 -0
  74. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.xap +0 -0
  75. data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/readme.md +46 -0
  76. data/app/assets/javascripts/refinery/photo_gallery/fancybox/CHANGELOG.md +68 -0
  77. data/app/assets/javascripts/refinery/photo_gallery/fancybox/README.md +212 -0
  78. data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
  79. data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-media.js +85 -0
  80. data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
  81. data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.js +1463 -0
  82. data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.pack.js +35 -0
  83. data/app/assets/javascripts/refinery/photo_gallery/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
  84. data/app/assets/stylesheets/refinery/photo_gallery/admin/chosen.css.scss +396 -0
  85. data/app/assets/stylesheets/refinery/photo_gallery/admin/photo_gallery.css.scss +109 -0
  86. data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.css.scss +177 -0
  87. data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.css.scss +147 -0
  88. data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.css.scss +85 -0
  89. data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
  90. data/app/assets/stylesheets/refinery/photo_gallery/fancybox/jquery.fancybox.css.scss +234 -0
  91. data/app/controllers/refinery/photo_gallery/admin/albums_controller.rb +23 -0
  92. data/app/controllers/refinery/photo_gallery/admin/collections_controller.rb +10 -0
  93. data/app/controllers/refinery/photo_gallery/admin/photos_controller.rb +67 -0
  94. data/app/controllers/refinery/photo_gallery/albums_controller.rb +23 -0
  95. data/app/controllers/refinery/photo_gallery/collections_controller.rb +28 -0
  96. data/app/helpers/refinery/photo_gallery/admin/photos_helper.rb +10 -0
  97. data/app/helpers/refinery/photo_gallery/albums_helper.rb +11 -0
  98. data/app/helpers/refinery/photo_gallery/photo_gallery_helper.rb +113 -0
  99. data/app/middleware/refinery/photo_gallery/admin/flash_session_cookie_middleware.rb +27 -0
  100. data/app/models/refinery/photo_gallery/album.rb +63 -0
  101. data/app/models/refinery/photo_gallery/collection.rb +29 -0
  102. data/app/models/refinery/photo_gallery/collection_album.rb +8 -0
  103. data/app/models/refinery/photo_gallery/photo.rb +63 -0
  104. data/app/uploaders/refinery/photo_gallery/admin/file_uploader.rb +122 -0
  105. data/app/views/refinery/photo_gallery/admin/_submenu.html.erb +44 -0
  106. data/app/views/refinery/photo_gallery/admin/albums/_album.html.erb +31 -0
  107. data/app/views/refinery/photo_gallery/admin/albums/_form.html.erb +78 -0
  108. data/app/views/refinery/photo_gallery/admin/albums/_sortable_list.html.erb +7 -0
  109. data/app/views/refinery/photo_gallery/admin/albums/edit.html.erb +2 -0
  110. data/app/views/refinery/photo_gallery/admin/albums/index.html.erb +28 -0
  111. data/app/views/refinery/photo_gallery/admin/albums/new.html.erb +2 -0
  112. data/app/views/refinery/photo_gallery/admin/collections/_collection.html.erb +23 -0
  113. data/app/views/refinery/photo_gallery/admin/collections/_form.html.erb +32 -0
  114. data/app/views/refinery/photo_gallery/admin/collections/_sortable_list.html.erb +7 -0
  115. data/app/views/refinery/photo_gallery/admin/collections/edit.html.erb +2 -0
  116. data/app/views/refinery/photo_gallery/admin/collections/index.html.erb +28 -0
  117. data/app/views/refinery/photo_gallery/admin/collections/new.html.erb +2 -0
  118. data/app/views/refinery/photo_gallery/admin/collections/test.html.erb +39 -0
  119. data/app/views/refinery/photo_gallery/admin/photos/_destroy.js.erb +15 -0
  120. data/app/views/refinery/photo_gallery/admin/photos/_form.html.erb +7 -0
  121. data/app/views/refinery/photo_gallery/admin/photos/_form_actions.html.erb +6 -0
  122. data/app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb +31 -0
  123. data/app/views/refinery/photo_gallery/admin/photos/_form_fields_actions.html.erb +15 -0
  124. data/app/views/refinery/photo_gallery/admin/photos/edit_multiple.html.erb +9 -0
  125. data/app/views/refinery/photo_gallery/admin/photos/upload.html.erb +87 -0
  126. data/app/views/refinery/photo_gallery/albums/show.html.erb +49 -0
  127. data/app/views/refinery/photo_gallery/collections/index.html.erb +13 -0
  128. data/app/views/refinery/photo_gallery/collections/show.html.erb +33 -0
  129. data/app/views/refinery/photo_gallery/shared/_layout.html.erb +22 -0
  130. data/app/views/refinery/photo_gallery/shared/_submenu.html.erb +5 -0
  131. data/config/initializers/carrierwave.rb +5 -0
  132. data/config/initializers/form_builder.rb +26 -0
  133. data/config/initializers/refinery/core.rb +10 -0
  134. data/config/initializers/s3.rb +11 -0
  135. data/config/initializers/session_store.rb +10 -0
  136. data/config/locales/en.yml +95 -0
  137. data/config/locales/sk.yml +94 -0
  138. data/config/routes.rb +37 -0
  139. data/db/migrate/20120804063842_create_albums.rb +18 -0
  140. data/db/migrate/20120805131321_create_collections.rb +14 -0
  141. data/db/migrate/20120805131547_create_collection_albums.rb +12 -0
  142. data/db/migrate/20120805165238_create_photos.rb +19 -0
  143. data/db/migrate/20120805222125_add_indexes.rb +24 -0
  144. data/db/seeds.rb +21 -0
  145. data/lib/generators/refinery/photo_gallery_generator.rb +25 -0
  146. data/lib/generators/refinery/templates/config/initializers/refinery/photo_gallery.rb.erb +40 -0
  147. data/lib/refinery/photo_gallery/configuration.rb +33 -0
  148. data/lib/refinery/photo_gallery/engine.rb +33 -0
  149. data/lib/refinery/photo_gallery/version.rb +17 -0
  150. data/lib/refinery/photo_gallery.rb +30 -0
  151. data/lib/refinerycms-photo-gallery.rb +1 -0
  152. data/refinerycms-6hoursdaily-photo-gallery.gemspec +38 -0
  153. data/screenshots/01_collections#index.png +0 -0
  154. data/screenshots/02_albums#create.png +0 -0
  155. data/screenshots/03_photos#upload.png +0 -0
  156. data/screenshots/04_photos#upload- chooser.png +0 -0
  157. data/screenshots/05_photo#upoad-queue.png +0 -0
  158. data/screenshots/06_photos#upload-uploading.png +0 -0
  159. data/screenshots/07_photos#upload-uploading_2.png +0 -0
  160. data/screenshots/08_photos#edit_multiple.png +0 -0
  161. data/screenshots/09_albums#index.png +0 -0
  162. data/screenshots/10_albums_EXIF_reading.png +0 -0
  163. data/screenshots/11_frontend_show.png +0 -0
  164. data/screenshots/12_show_photo_using_fancybox.png +0 -0
  165. metadata +353 -0
@@ -0,0 +1,177 @@
1
+ /*
2
+ Plupload
3
+ ------------------------------------------------------------------- */
4
+
5
+ .plupload_button {
6
+ display: -moz-inline-box; /* FF < 3*/
7
+ display: inline-block;
8
+ font: normal 12px sans-serif;
9
+ text-decoration: none;
10
+ color: #42454a;
11
+ border: 1px solid #bababa;
12
+ padding: 2px 8px 3px 20px;
13
+ margin-right: 4px;
14
+ background: #f3f3f3 image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons.png') no-repeat 0 center;
15
+ outline: 0;
16
+
17
+ /* Optional rounded corners for browsers that support it */
18
+ -moz-border-radius: 3px;
19
+ -khtml-border-radius: 3px;
20
+ -webkit-border-radius: 3px;
21
+ border-radius: 3px;
22
+ }
23
+
24
+ .plupload_button:hover {
25
+ color: #000;
26
+ text-decoration: none;
27
+ }
28
+
29
+ .plupload_disabled, a.plupload_disabled:hover {
30
+ color: #737373;
31
+ border-color: #c5c5c5;
32
+ background: #ededed image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons-disabled.png') no-repeat 0 center;
33
+ cursor: default;
34
+ }
35
+
36
+ .plupload_add {
37
+ background-position: -181px center;
38
+ }
39
+
40
+ .plupload_wrapper {
41
+ font: normal 11px Verdana,sans-serif;
42
+ width: 100%;
43
+ }
44
+
45
+ .plupload_container {
46
+ padding: 8px;
47
+ background: image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/transp50.png');
48
+ /*-moz-border-radius: 5px;*/
49
+ }
50
+
51
+ .plupload_container input {
52
+ border: 1px solid #DDD;
53
+ font: normal 11px Verdana,sans-serif;
54
+ width: 98%;
55
+ }
56
+
57
+ .plupload_header {background: #2A2C2E image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif') repeat-x;}
58
+ .plupload_header_content {
59
+ background: image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif') no-repeat 0 -317px;
60
+ min-height: 56px;
61
+ padding-left: 60px;
62
+ color: #FFF;
63
+ }
64
+ .plupload_header_title {
65
+ font: normal 18px sans-serif;
66
+ padding: 6px 0 3px;
67
+ }
68
+ .plupload_header_text {
69
+ font: normal 12px sans-serif;
70
+ }
71
+
72
+ .plupload_filelist {
73
+ margin: 0;
74
+ padding: 0;
75
+ list-style: none;
76
+ }
77
+
78
+ .plupload_scroll .plupload_filelist {
79
+ height: 185px;
80
+ background: #F5F5F5;
81
+ overflow-y: scroll;
82
+ }
83
+
84
+ .plupload_filelist li {
85
+ padding: 10px 8px;
86
+ background: #F5F5F5 image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif') repeat-x 0 -156px;
87
+ border-bottom: 1px solid #DDD;
88
+ }
89
+
90
+ .plupload_filelist_header, .plupload_filelist_footer {
91
+ background: #DFDFDF;
92
+ padding: 8px 8px;
93
+ color: #42454A;
94
+ }
95
+ .plupload_filelist_header {
96
+ border-top: 1px solid #EEE;
97
+ border-bottom: 1px solid #CDCDCD;
98
+ }
99
+
100
+ .plupload_filelist_footer {border-top: 1px solid #FFF; height: 22px; line-height: 20px; vertical-align: middle;}
101
+ .plupload_file_name {float: left; overflow: hidden}
102
+ .plupload_file_status {color: #777;}
103
+ .plupload_file_status span {color: #42454A;}
104
+ .plupload_file_size, .plupload_file_status, .plupload_progress {
105
+ float: right;
106
+ width: 80px;
107
+ }
108
+ .plupload_file_size, .plupload_file_status, .plupload_file_action {text-align: right;}
109
+
110
+ .plupload_filelist .plupload_file_name {width: 205px}
111
+
112
+ .plupload_file_action {
113
+ float: right;
114
+ width: 16px;
115
+ height: 16px;
116
+ margin-left: 15px;
117
+ }
118
+
119
+ .plupload_file_action * {
120
+ display: none;
121
+ width: 16px;
122
+ height: 16px;
123
+ }
124
+
125
+ li.plupload_uploading {background: #ECF3DC image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif') repeat-x 0 -238px;}
126
+ li.plupload_done {color:#AAA}
127
+
128
+ li.plupload_delete a {
129
+ background: image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/delete.gif');
130
+ }
131
+
132
+ li.plupload_failed a {
133
+ background: image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/error.gif');
134
+ cursor: default;
135
+ }
136
+
137
+ li.plupload_done a {
138
+ background: image-url('refinery/photo_gallery/admin/plupload/jquery.plupload.queue/done.gif');
139
+ cursor: default;
140
+ }
141
+
142
+ .plupload_progress, .plupload_upload_status {
143
+ display: none;
144
+ }
145
+
146
+ .plupload_progress_container {
147
+ margin-top: 3px;
148
+ border: 1px solid #CCC;
149
+ background: #FFF;
150
+ padding: 1px;
151
+ }
152
+ .plupload_progress_bar {
153
+ width: 0px;
154
+ height: 7px;
155
+ background: #CDEB8B;
156
+ }
157
+
158
+ .plupload_scroll .plupload_filelist_header .plupload_file_action, .plupload_scroll .plupload_filelist_footer .plupload_file_action {
159
+ margin-right: 17px;
160
+ }
161
+
162
+ /* Floats */
163
+
164
+ .plupload_clear,.plupload_clearer {clear: both;}
165
+ .plupload_clearer, .plupload_progress_bar {
166
+ display: block;
167
+ font-size: 0;
168
+ line-height: 0;
169
+ }
170
+
171
+ li.plupload_droptext {
172
+ background: transparent;
173
+ text-align: center;
174
+ vertical-align: middle;
175
+ border: 0;
176
+ line-height: 165px;
177
+ }
@@ -0,0 +1,147 @@
1
+ /*
2
+ Plupload
3
+ ------------------------------------------------------------------- */
4
+
5
+ .plupload_button {cursor: pointer;}
6
+
7
+ .plupload_wrapper {
8
+ font: normal 11px Verdana,sans-serif;
9
+ width: 100%;
10
+ }
11
+
12
+ .plupload .plupload_container input {width: 98%;}
13
+ .plupload .plupload_filelist_footer {border-width: 1px 0 0 0}
14
+ .plupload .plupload_filelist_header {border-width: 0 0 1px 0}
15
+ div.plupload .plupload_file {border-width: 0 0 1px 0}
16
+ div.plupload div.plupload_header {border-width: 0 0 1px 0; position: relative;}
17
+
18
+ .plupload_file .ui-icon {
19
+ cursor:pointer;
20
+ }
21
+
22
+ .plupload_header_content {
23
+ background-image: image-url('refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload.png');
24
+ background-repeat: no-repeat;
25
+ background-position: 8px center;
26
+ min-height: 56px;
27
+ padding-left: 60px;
28
+ position:relative;
29
+ }
30
+ .plupload_header_content_bw {background-image: image-url('refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload-bw.png');}
31
+ .plupload_header_title {
32
+ font: normal 18px sans-serif;
33
+ padding: 6px 0 3px;
34
+ }
35
+ .plupload_header_text {font: normal 12px sans-serif;}
36
+
37
+ .plupload_filelist,
38
+ .plupload_filelist_content {
39
+ border-collapse: collapse;
40
+ margin: 0;
41
+ padding: 0;
42
+ width: 100%;
43
+ -moz-user-select:none;
44
+ -webkit-user-select:none;
45
+ user-select:none;
46
+ }
47
+
48
+ .plupload_cell {padding: 8px 6px;}
49
+
50
+ .plupload_file {
51
+ border-left: none;
52
+ border-right: none;
53
+ }
54
+
55
+ .plupload .ui-sortable-helper,
56
+ .plupload .ui-sortable .plupload_file {
57
+ cursor:move;
58
+ }
59
+
60
+ .plupload_scroll {
61
+ max-height: 180px;
62
+ min-height: 168px;
63
+ _height: 168px;
64
+ overflow-y: auto;
65
+ }
66
+
67
+ .plupload_file_size, .plupload_file_status {text-align: right;}
68
+ .plupload_file_size, .plupload_file_status {width: 52px;}
69
+ .plupload_file_action {width: 16px;}
70
+ .plupload_file_name {
71
+ overflow: hidden;
72
+ padding-left: 10px;
73
+ }
74
+
75
+ .plupload_file_rename {
76
+ width:95%;
77
+ }
78
+
79
+ .plupload_progress {width: 60px;}
80
+ .plupload_progress_container {padding: 1px;}
81
+
82
+
83
+ /* Floats */
84
+
85
+ .plupload_right {float: right;}
86
+ .plupload_left {float: left;}
87
+ .plupload_clear,.plupload_clearer {clear: both;}
88
+ .plupload_clearer, .plupload_progress_bar {
89
+ display: block;
90
+ font-size: 0;
91
+ line-height: 0;
92
+ }
93
+ .plupload_clearer {height: 0;}
94
+
95
+ /* Misc */
96
+ .plupload_hidden {display: none;}
97
+ .plupload_droptext {
98
+ background: transparent;
99
+ text-align: center;
100
+ vertical-align: middle;
101
+ border: 0;
102
+ line-height: 165px;
103
+ }
104
+
105
+ .plupload_buttons, .plupload_upload_status {float: left}
106
+
107
+ .plupload_message {
108
+ position: absolute;
109
+ top: 0px;
110
+ left: 0px;
111
+ height: 100%;
112
+ width: 100%;
113
+ }
114
+
115
+ .plupload_message p {
116
+ padding:0.7em;
117
+ margin:0;
118
+ }
119
+
120
+ .plupload_message strong {
121
+ font-weight: bold;
122
+ }
123
+
124
+ plupload_message i {
125
+ font-style: italic;
126
+ }
127
+
128
+ .plupload_message p span.ui-icon {
129
+ float: left;
130
+ margin-right: 0.3em;
131
+ }
132
+
133
+ .plupload_header_content .ui-state-error,
134
+ .plupload_header_content .ui-state-highlight {
135
+ border:none;
136
+ }
137
+
138
+ .plupload_message_close {
139
+ position:absolute;
140
+ top:5px;
141
+ right:5px;
142
+ cursor:pointer;
143
+ }
144
+
145
+ .plupload .ui-sortable-placeholder {
146
+ height:35px;
147
+ }
@@ -0,0 +1,85 @@
1
+ #fancybox-buttons {
2
+ position: fixed;
3
+ left: 0;
4
+ width: 100%;
5
+ z-index: 8050;
6
+ }
7
+
8
+ #fancybox-buttons.top {
9
+ top: 10px;
10
+ }
11
+
12
+ #fancybox-buttons.bottom {
13
+ bottom: 10px;
14
+ }
15
+
16
+ #fancybox-buttons ul {
17
+ display: block;
18
+ width: 170px;
19
+ height: 30px;
20
+ margin: 0 auto;
21
+ padding: 0;
22
+ list-style: none;
23
+ background: #111;
24
+ -webkit-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05);
25
+ -moz-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05);
26
+ background: #111 -webkit-gradient(linear,0% 0%,0% 100%,from(rgba(255,255,255,.2)),color-stop(.5,rgba(255,255,255,.15)),color-stop(.5,rgba(255,255,255,.1)),to(rgba(255,255,255,.15)));
27
+ background: #111 -moz-linear-gradient(top,rgba(255,255,255,.2) 0%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.15) 100%);
28
+ border-radius: 3px;
29
+ }
30
+
31
+ #fancybox-buttons ul li {
32
+ float: left;
33
+ margin: 0;
34
+ padding: 0;
35
+ }
36
+
37
+ #fancybox-buttons a {
38
+ display: block;
39
+ width: 30px;
40
+ height: 30px;
41
+ text-indent: -9999px;
42
+ background-image: image-url('refinery/photo_gallery/fancybox/helpers/fancybox_buttons.png');
43
+ background-repeat: no-repeat;
44
+ outline: none;
45
+ }
46
+
47
+ #fancybox-buttons a.btnPrev {
48
+ width: 32px;
49
+ background-position: 6px 0;
50
+ }
51
+
52
+ #fancybox-buttons a.btnNext {
53
+ background-position: -33px 0;
54
+ border-right: 1px solid #3e3e3e;
55
+ }
56
+
57
+ #fancybox-buttons a.btnPlay {
58
+ background-position: 0 -30px;
59
+ }
60
+
61
+ #fancybox-buttons a.btnPlayOn {
62
+ background-position: -30px -30px;
63
+ }
64
+
65
+ #fancybox-buttons a.btnToggle {
66
+ background-position: 3px -60px;
67
+ border-left: 1px solid #111;
68
+ border-right: 1px solid #3e3e3e;
69
+ width: 35px
70
+ }
71
+
72
+ #fancybox-buttons a.btnToggleOn {
73
+ background-position: -27px -60px;
74
+ }
75
+
76
+ #fancybox-buttons a.btnClose {
77
+ border-left: 1px solid #111;
78
+ width: 38px;
79
+ background-position: -57px 0px;
80
+ }
81
+
82
+ #fancybox-buttons a.btnDisabled {
83
+ opacity : 0.5;
84
+ cursor: default;
85
+ }
@@ -0,0 +1,54 @@
1
+ #fancybox-thumbs {
2
+ position: fixed;
3
+ left: 0;
4
+ width: 100%;
5
+ overflow: hidden;
6
+ z-index: 8050;
7
+ }
8
+
9
+ #fancybox-thumbs.bottom {
10
+ bottom: 2px;
11
+ }
12
+
13
+ #fancybox-thumbs.top {
14
+ top: 2px;
15
+ }
16
+
17
+ #fancybox-thumbs ul {
18
+ position: relative;
19
+ list-style: none;
20
+ margin: 0;
21
+ padding: 0;
22
+ }
23
+
24
+ #fancybox-thumbs ul li {
25
+ float: left;
26
+ padding: 1px;
27
+ opacity: 0.5;
28
+ }
29
+
30
+ #fancybox-thumbs ul li.active {
31
+ opacity: 0.75;
32
+ padding: 0;
33
+ border: 1px solid #fff;
34
+ }
35
+
36
+ #fancybox-thumbs ul li:hover {
37
+ opacity: 1;
38
+ }
39
+
40
+ #fancybox-thumbs ul li a {
41
+ display: block;
42
+ position: relative;
43
+ overflow: hidden;
44
+ border: 1px solid #222;
45
+ background: #111;
46
+ outline: none;
47
+ }
48
+
49
+ #fancybox-thumbs ul li img {
50
+ display: block;
51
+ position: relative;
52
+ border: 0;
53
+ padding: 0;
54
+ }
@@ -0,0 +1,234 @@
1
+ /*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */
2
+ .fancybox-tmp iframe, .fancybox-tmp object {
3
+ vertical-align: top;
4
+ padding: 0;
5
+ margin: 0;
6
+ }
7
+
8
+ .fancybox-wrap {
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ z-index: 8020;
13
+ }
14
+
15
+ .fancybox-skin {
16
+ position: relative;
17
+ padding: 0;
18
+ margin: 0;
19
+ background: #f9f9f9;
20
+ color: #444;
21
+ text-shadow: none;
22
+ -webkit-border-radius: 4px;
23
+ -moz-border-radius: 4px;
24
+ border-radius: 4px;
25
+ }
26
+
27
+ .fancybox-opened {
28
+ z-index: 8030;
29
+ }
30
+
31
+ .fancybox-opened .fancybox-skin {
32
+ -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
33
+ -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
34
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
35
+ }
36
+
37
+ .fancybox-outer, .fancybox-inner {
38
+ padding: 0;
39
+ margin: 0;
40
+ position: relative;
41
+ outline: none;
42
+ }
43
+
44
+ .fancybox-inner {
45
+ overflow: hidden;
46
+ }
47
+
48
+ .fancybox-type-iframe .fancybox-inner {
49
+ -webkit-overflow-scrolling: touch;
50
+ }
51
+
52
+ .fancybox-error {
53
+ color: #444;
54
+ font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
55
+ margin: 0;
56
+ padding: 10px;
57
+ }
58
+
59
+ .fancybox-image, .fancybox-iframe {
60
+ display: block;
61
+ width: 100%;
62
+ height: 100%;
63
+ border: 0;
64
+ padding: 0;
65
+ margin: 0;
66
+ vertical-align: top;
67
+ }
68
+
69
+ .fancybox-image {
70
+ max-width: 100%;
71
+ max-height: 100%;
72
+ }
73
+
74
+ #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
75
+ background-image: image-url('refinery/photo_gallery/fancybox/fancybox_sprite.png');
76
+ }
77
+
78
+ #fancybox-loading {
79
+ position: fixed;
80
+ top: 50%;
81
+ left: 50%;
82
+ margin-top: -22px;
83
+ margin-left: -22px;
84
+ background-position: 0 -108px;
85
+ opacity: 0.8;
86
+ cursor: pointer;
87
+ z-index: 8020;
88
+ }
89
+
90
+ #fancybox-loading div {
91
+ width: 44px;
92
+ height: 44px;
93
+ background: image-url('refinery/photo_gallery/fancybox/fancybox_loading.gif') center center no-repeat;
94
+ }
95
+
96
+ .fancybox-close {
97
+ position: absolute;
98
+ top: -18px;
99
+ right: -18px;
100
+ width: 36px;
101
+ height: 36px;
102
+ cursor: pointer;
103
+ z-index: 8040;
104
+ }
105
+
106
+ .fancybox-nav {
107
+ position: absolute;
108
+ top: 0;
109
+ width: 40%;
110
+ height: 100%;
111
+ cursor: pointer;
112
+ background: transparent image-url('refinery/photo_gallery/fancybox/blank.gif'); /* helps IE */
113
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
114
+ z-index: 8040;
115
+ }
116
+
117
+ .fancybox-prev {
118
+ left: 0;
119
+ }
120
+
121
+ .fancybox-next {
122
+ right: 0;
123
+ }
124
+
125
+ .fancybox-nav span {
126
+ position: absolute;
127
+ top: 50%;
128
+ width: 36px;
129
+ height: 34px;
130
+ margin-top: -18px;
131
+ cursor: pointer;
132
+ z-index: 8040;
133
+ visibility: hidden;
134
+ }
135
+
136
+ .fancybox-prev span {
137
+ left: 20px;
138
+ background-position: 0 -36px;
139
+ }
140
+
141
+ .fancybox-next span {
142
+ right: 20px;
143
+ background-position: 0 -72px;
144
+ }
145
+
146
+ .fancybox-nav:hover span {
147
+ visibility: visible;
148
+ }
149
+
150
+ .fancybox-tmp {
151
+ position: absolute;
152
+ top: -9999px;
153
+ left: -9999px;
154
+ padding: 0;
155
+ overflow: visible;
156
+ visibility: hidden;
157
+ }
158
+
159
+ /* Overlay helper */
160
+
161
+ #fancybox-overlay {
162
+ position: absolute;
163
+ top: 0;
164
+ left: 0;
165
+ overflow: hidden;
166
+ display: none;
167
+ z-index: 8010;
168
+ background: #000;
169
+ }
170
+
171
+ #fancybox-overlay.overlay-fixed {
172
+ position: fixed;
173
+ bottom: 0;
174
+ right: 0;
175
+ }
176
+
177
+ /* Title helper */
178
+
179
+ .fancybox-title {
180
+ visibility: hidden;
181
+ font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
182
+ position: relative;
183
+ text-shadow: none;
184
+ z-index: 8050;
185
+ }
186
+
187
+ .fancybox-opened .fancybox-title {
188
+ visibility: visible;
189
+ }
190
+
191
+ .fancybox-title-float-wrap {
192
+ position: absolute;
193
+ bottom: 0;
194
+ right: 50%;
195
+ margin-bottom: -35px;
196
+ z-index: 8030;
197
+ text-align: center;
198
+ }
199
+
200
+ .fancybox-title-float-wrap .child {
201
+ display: inline-block;
202
+ margin-right: -100%;
203
+ padding: 2px 20px;
204
+ background: transparent; /* Fallback for web browsers that doesn't support RGBa */
205
+ background: rgba(0, 0, 0, 0.8);
206
+ -webkit-border-radius: 15px;
207
+ -moz-border-radius: 15px;
208
+ border-radius: 15px;
209
+ text-shadow: 0 1px 2px #222;
210
+ color: #FFF;
211
+ font-weight: bold;
212
+ line-height: 24px;
213
+ white-space: nowrap;
214
+ }
215
+
216
+ .fancybox-title-outside-wrap {
217
+ position: relative;
218
+ margin-top: 10px;
219
+ color: #fff;
220
+ }
221
+
222
+ .fancybox-title-inside-wrap {
223
+ margin-top: 10px;
224
+ }
225
+
226
+ .fancybox-title-over-wrap {
227
+ position: absolute;
228
+ bottom: 0;
229
+ left: 0;
230
+ color: #fff;
231
+ padding: 10px;
232
+ background: #000;
233
+ background: rgba(0, 0, 0, .8);
234
+ }
@@ -0,0 +1,23 @@
1
+ module Refinery
2
+ module PhotoGallery
3
+ module Admin
4
+ class AlbumsController < ::Refinery::AdminController
5
+
6
+ crudify :'refinery/photo_gallery/album', :order => "created_at DESC" , :xhr_paging => true
7
+
8
+ def create
9
+ @album = Album.new(params[:album])
10
+
11
+ if @album.save(params[:album])
12
+ flash[:notice]= t('refinery.crudify.created',:what => "'#{@album.title}'" )
13
+
14
+ redirect_to refinery.upload_photo_gallery_admin_album_photos_path(@album)
15
+ else
16
+ render "new"
17
+ end
18
+ end
19
+
20
+ end
21
+ end
22
+ end
23
+ end