attachment_magick 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +12 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +159 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +98 -0
- data/Rakefile +13 -0
- data/app/controllers/attachment_magick/images_controller.rb +50 -0
- data/app/helpers/attachment_magick/attachment_magick_helper.rb +57 -0
- data/app/models/attachment_magick/active_record_image.rb +18 -0
- data/app/models/attachment_magick/mongoid_image.rb +29 -0
- data/app/views/layouts/attachment_magick/images/_add_image.html.erb +18 -0
- data/app/views/layouts/attachment_magick/images/_video_upload.html.erb +2 -0
- data/attachment_magick.gemspec +25 -0
- data/lib/attachment_magick/configuration/configuration.rb +28 -0
- data/lib/attachment_magick/configuration/custom_style.rb +19 -0
- data/lib/attachment_magick/dragonfly/init.rb +20 -0
- data/lib/attachment_magick/dsl.rb +37 -0
- data/lib/attachment_magick/railtie.rb +10 -0
- data/lib/attachment_magick/test/attachment_magick_test_helper.rb +43 -0
- data/lib/attachment_magick/version.rb +3 -0
- data/lib/attachment_magick.rb +78 -0
- data/lib/generators/attachment_magick/install_generator.rb +15 -0
- data/lib/generators/attachment_magick/migration_generator.rb +17 -0
- data/lib/generators/attachment_magick/templates/attachment_magick_migration.rb +18 -0
- data/lib/generators/attachment_magick/templates/public/javascripts/swfupload/handlers.js +384 -0
- data/lib/generators/attachment_magick/templates/public/javascripts/swfupload/swfupload.js +1132 -0
- data/lib/generators/attachment_magick/templates/public/javascripts/swfupload/swfupload.swf +0 -0
- data/lib/generators/attachment_magick/templates/public/stylesheets/attachment_magick.css +10 -0
- data/lib/generators/attachment_magick/templates/public/stylesheets/swfupload.css +108 -0
- data/test/attachment_magick/controllers/images_controller_test.rb +67 -0
- data/test/attachment_magick/generators/install_generator_test.rb +34 -0
- data/test/attachment_magick/generators/migration_generator_test.rb +16 -0
- data/test/attachment_magick/helpers/attachment_magick_test.rb +56 -0
- data/test/attachment_magick/units/artist_test.rb +11 -0
- data/test/attachment_magick/units/attachment_magick_test.rb +105 -0
- data/test/attachment_magick/units/image_test.rb +26 -0
- data/test/attachment_magick/units/place_test.rb +8 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/application_controller.rb +4 -0
- data/test/dummy/app/controllers/artists_controller.rb +34 -0
- data/test/dummy/app/controllers/places_controller.rb +34 -0
- data/test/dummy/app/controllers/works_controller.rb +37 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/artists_helper.rb +2 -0
- data/test/dummy/app/helpers/places_helper.rb +2 -0
- data/test/dummy/app/helpers/works_helper.rb +2 -0
- data/test/dummy/app/models/artist.rb +20 -0
- data/test/dummy/app/models/place.rb +8 -0
- data/test/dummy/app/models/work.rb +13 -0
- data/test/dummy/app/views/artists/_form.html.erb +29 -0
- data/test/dummy/app/views/artists/edit.html.erb +1 -0
- data/test/dummy/app/views/artists/index.html.erb +39 -0
- data/test/dummy/app/views/artists/new.html.erb +1 -0
- data/test/dummy/app/views/layouts/_custom_images_list.html.erb +6 -0
- data/test/dummy/app/views/layouts/application.html.erb +27 -0
- data/test/dummy/app/views/places/_form.html.erb +12 -0
- data/test/dummy/app/views/places/edit.html.erb +1 -0
- data/test/dummy/app/views/places/index.html.erb +32 -0
- data/test/dummy/app/views/places/new.html.erb +1 -0
- data/test/dummy/app/views/works/_form.html.erb +18 -0
- data/test/dummy/app/views/works/edit.html.erb +1 -0
- data/test/dummy/app/views/works/index.html.erb +32 -0
- data/test/dummy/app/views/works/new.html.erb +1 -0
- data/test/dummy/config/application.rb +24 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +22 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +26 -0
- data/test/dummy/config/environments/production.rb +49 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/attachment_magick_setup.rb +12 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/mongoid.yml +18 -0
- data/test/dummy/config/routes.rb +15 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20110310155855_create_places.rb +13 -0
- data/test/dummy/db/migrate/20110310210525_attachment_magick_migration.rb +18 -0
- data/test/dummy/db/schema.rb +33 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/images/little_girl.jpg +0 -0
- data/test/dummy/public/images/swfupload/cancelbutton.gif +0 -0
- data/test/dummy/public/javascripts/application.js +60 -0
- data/test/dummy/public/javascripts/jquery-ui.js +763 -0
- data/test/dummy/public/javascripts/jquery.js +7179 -0
- data/test/dummy/public/javascripts/jquery.min.js +167 -0
- data/test/dummy/public/javascripts/rails.js +137 -0
- data/test/dummy/public/javascripts/swfupload/handlers.js +384 -0
- data/test/dummy/public/javascripts/swfupload/swfupload.js +1132 -0
- data/test/dummy/public/javascripts/swfupload/swfupload.swf +0 -0
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/public/stylesheets/attachment_magick.css +10 -0
- data/test/dummy/public/stylesheets/grid.css +491 -0
- data/test/dummy/public/stylesheets/swfupload.css +108 -0
- data/test/dummy/public/stylesheets/text.css +15 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/navigation_test.rb +7 -0
- data/test/support/integration_case.rb +5 -0
- data/test/test_helper.rb +48 -0
- metadata +283 -0
Binary file
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.thumbnails {margin-top:5px; font-size: 12px; line-height: 16px; font-family: Helvetica, Arial, Sans-serif; color:#000;}
|
2
|
+
.thumbnails h4 {margin:15px 0px 15px 0px; border-top:2px solid #CCC;}
|
3
|
+
.attachment_magick_image {border-bottom: 1px solid #CCC; margin:15px 0px 0px 0px; clear:left; padding: 3px 3px 3px 3px;cursor:pointer;}
|
4
|
+
.attachment_magick_image:hover {background:#EEE;}
|
5
|
+
|
6
|
+
.attachment_magick_image p {margin:0px;}
|
7
|
+
.attachment_magick_image a {float:right;}
|
8
|
+
.attachment_magick_image input[type="text"] {width:inherit; font-family:inherit; font-size:1em; border:1px solid #999; -webkit-border-radius:3px; -moz-border-radius:3px; margin-left:-2px;}
|
9
|
+
|
10
|
+
.grid_19 img {margin-left:5px; margin-right:5px;}
|
@@ -0,0 +1,491 @@
|
|
1
|
+
/*
|
2
|
+
Variable Grid System.
|
3
|
+
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
+
Based on 960 Grid System - http://960.gs/
|
5
|
+
|
6
|
+
Licensed under GPL and MIT.
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
/* Containers
|
11
|
+
----------------------------------------------------------------------------------------------------*/
|
12
|
+
.container_19 {
|
13
|
+
margin-left: auto;
|
14
|
+
margin-right: auto;
|
15
|
+
width: 1178px;
|
16
|
+
}
|
17
|
+
|
18
|
+
/* Grid >> Global
|
19
|
+
----------------------------------------------------------------------------------------------------*/
|
20
|
+
|
21
|
+
.grid_1,
|
22
|
+
.grid_2,
|
23
|
+
.grid_3,
|
24
|
+
.grid_4,
|
25
|
+
.grid_5,
|
26
|
+
.grid_6,
|
27
|
+
.grid_7,
|
28
|
+
.grid_8,
|
29
|
+
.grid_9,
|
30
|
+
.grid_10,
|
31
|
+
.grid_11,
|
32
|
+
.grid_12,
|
33
|
+
.grid_13,
|
34
|
+
.grid_14,
|
35
|
+
.grid_15,
|
36
|
+
.grid_16,
|
37
|
+
.grid_17,
|
38
|
+
.grid_18,
|
39
|
+
.grid_19 {
|
40
|
+
display:inline;
|
41
|
+
float: left;
|
42
|
+
position: relative;
|
43
|
+
margin-left: 4px;
|
44
|
+
margin-right: 4px;
|
45
|
+
}
|
46
|
+
|
47
|
+
/* Grid >> Children (Alpha ~ First, Omega ~ Last)
|
48
|
+
----------------------------------------------------------------------------------------------------*/
|
49
|
+
|
50
|
+
.alpha {
|
51
|
+
margin-left: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
.omega {
|
55
|
+
margin-right: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* Grid >> 19 Columns
|
59
|
+
----------------------------------------------------------------------------------------------------*/
|
60
|
+
|
61
|
+
.container_19 .grid_1 {
|
62
|
+
width:54px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.container_19 .grid_2 {
|
66
|
+
width:116px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.container_19 .grid_3 {
|
70
|
+
width:178px;
|
71
|
+
}
|
72
|
+
|
73
|
+
.container_19 .grid_4 {
|
74
|
+
width:240px;
|
75
|
+
}
|
76
|
+
|
77
|
+
.container_19 .grid_5 {
|
78
|
+
width:302px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.container_19 .grid_6 {
|
82
|
+
width:364px;
|
83
|
+
}
|
84
|
+
|
85
|
+
.container_19 .grid_7 {
|
86
|
+
width:426px;
|
87
|
+
}
|
88
|
+
|
89
|
+
.container_19 .grid_8 {
|
90
|
+
width:488px;
|
91
|
+
}
|
92
|
+
|
93
|
+
.container_19 .grid_9 {
|
94
|
+
width:550px;
|
95
|
+
}
|
96
|
+
|
97
|
+
.container_19 .grid_10 {
|
98
|
+
width:612px;
|
99
|
+
}
|
100
|
+
|
101
|
+
.container_19 .grid_11 {
|
102
|
+
width:674px;
|
103
|
+
}
|
104
|
+
|
105
|
+
.container_19 .grid_12 {
|
106
|
+
width:736px;
|
107
|
+
}
|
108
|
+
|
109
|
+
.container_19 .grid_13 {
|
110
|
+
width:798px;
|
111
|
+
}
|
112
|
+
|
113
|
+
.container_19 .grid_14 {
|
114
|
+
width:860px;
|
115
|
+
}
|
116
|
+
|
117
|
+
.container_19 .grid_15 {
|
118
|
+
width:922px;
|
119
|
+
}
|
120
|
+
|
121
|
+
.container_19 .grid_16 {
|
122
|
+
width:984px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.container_19 .grid_17 {
|
126
|
+
width:1046px;
|
127
|
+
}
|
128
|
+
|
129
|
+
.container_19 .grid_18 {
|
130
|
+
width:1108px;
|
131
|
+
}
|
132
|
+
|
133
|
+
.container_19 .grid_19 {
|
134
|
+
width:1170px;
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
/* Prefix Extra Space >> 19 Columns
|
140
|
+
----------------------------------------------------------------------------------------------------*/
|
141
|
+
|
142
|
+
.container_19 .prefix_1 {
|
143
|
+
padding-left:62px;
|
144
|
+
}
|
145
|
+
|
146
|
+
.container_19 .prefix_2 {
|
147
|
+
padding-left:124px;
|
148
|
+
}
|
149
|
+
|
150
|
+
.container_19 .prefix_3 {
|
151
|
+
padding-left:186px;
|
152
|
+
}
|
153
|
+
|
154
|
+
.container_19 .prefix_4 {
|
155
|
+
padding-left:248px;
|
156
|
+
}
|
157
|
+
|
158
|
+
.container_19 .prefix_5 {
|
159
|
+
padding-left:310px;
|
160
|
+
}
|
161
|
+
|
162
|
+
.container_19 .prefix_6 {
|
163
|
+
padding-left:372px;
|
164
|
+
}
|
165
|
+
|
166
|
+
.container_19 .prefix_7 {
|
167
|
+
padding-left:434px;
|
168
|
+
}
|
169
|
+
|
170
|
+
.container_19 .prefix_8 {
|
171
|
+
padding-left:496px;
|
172
|
+
}
|
173
|
+
|
174
|
+
.container_19 .prefix_9 {
|
175
|
+
padding-left:558px;
|
176
|
+
}
|
177
|
+
|
178
|
+
.container_19 .prefix_10 {
|
179
|
+
padding-left:620px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.container_19 .prefix_11 {
|
183
|
+
padding-left:682px;
|
184
|
+
}
|
185
|
+
|
186
|
+
.container_19 .prefix_12 {
|
187
|
+
padding-left:744px;
|
188
|
+
}
|
189
|
+
|
190
|
+
.container_19 .prefix_13 {
|
191
|
+
padding-left:806px;
|
192
|
+
}
|
193
|
+
|
194
|
+
.container_19 .prefix_14 {
|
195
|
+
padding-left:868px;
|
196
|
+
}
|
197
|
+
|
198
|
+
.container_19 .prefix_15 {
|
199
|
+
padding-left:930px;
|
200
|
+
}
|
201
|
+
|
202
|
+
.container_19 .prefix_16 {
|
203
|
+
padding-left:992px;
|
204
|
+
}
|
205
|
+
|
206
|
+
.container_19 .prefix_17 {
|
207
|
+
padding-left:1054px;
|
208
|
+
}
|
209
|
+
|
210
|
+
.container_19 .prefix_18 {
|
211
|
+
padding-left:1116px;
|
212
|
+
}
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
/* Suffix Extra Space >> 19 Columns
|
217
|
+
----------------------------------------------------------------------------------------------------*/
|
218
|
+
|
219
|
+
.container_19 .suffix_1 {
|
220
|
+
padding-right:62px;
|
221
|
+
}
|
222
|
+
|
223
|
+
.container_19 .suffix_2 {
|
224
|
+
padding-right:124px;
|
225
|
+
}
|
226
|
+
|
227
|
+
.container_19 .suffix_3 {
|
228
|
+
padding-right:186px;
|
229
|
+
}
|
230
|
+
|
231
|
+
.container_19 .suffix_4 {
|
232
|
+
padding-right:248px;
|
233
|
+
}
|
234
|
+
|
235
|
+
.container_19 .suffix_5 {
|
236
|
+
padding-right:310px;
|
237
|
+
}
|
238
|
+
|
239
|
+
.container_19 .suffix_6 {
|
240
|
+
padding-right:372px;
|
241
|
+
}
|
242
|
+
|
243
|
+
.container_19 .suffix_7 {
|
244
|
+
padding-right:434px;
|
245
|
+
}
|
246
|
+
|
247
|
+
.container_19 .suffix_8 {
|
248
|
+
padding-right:496px;
|
249
|
+
}
|
250
|
+
|
251
|
+
.container_19 .suffix_9 {
|
252
|
+
padding-right:558px;
|
253
|
+
}
|
254
|
+
|
255
|
+
.container_19 .suffix_10 {
|
256
|
+
padding-right:620px;
|
257
|
+
}
|
258
|
+
|
259
|
+
.container_19 .suffix_11 {
|
260
|
+
padding-right:682px;
|
261
|
+
}
|
262
|
+
|
263
|
+
.container_19 .suffix_12 {
|
264
|
+
padding-right:744px;
|
265
|
+
}
|
266
|
+
|
267
|
+
.container_19 .suffix_13 {
|
268
|
+
padding-right:806px;
|
269
|
+
}
|
270
|
+
|
271
|
+
.container_19 .suffix_14 {
|
272
|
+
padding-right:868px;
|
273
|
+
}
|
274
|
+
|
275
|
+
.container_19 .suffix_15 {
|
276
|
+
padding-right:930px;
|
277
|
+
}
|
278
|
+
|
279
|
+
.container_19 .suffix_16 {
|
280
|
+
padding-right:992px;
|
281
|
+
}
|
282
|
+
|
283
|
+
.container_19 .suffix_17 {
|
284
|
+
padding-right:1054px;
|
285
|
+
}
|
286
|
+
|
287
|
+
.container_19 .suffix_18 {
|
288
|
+
padding-right:1116px;
|
289
|
+
}
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
/* Push Space >> 19 Columns
|
294
|
+
----------------------------------------------------------------------------------------------------*/
|
295
|
+
|
296
|
+
.container_19 .push_1 {
|
297
|
+
left:62px;
|
298
|
+
}
|
299
|
+
|
300
|
+
.container_19 .push_2 {
|
301
|
+
left:124px;
|
302
|
+
}
|
303
|
+
|
304
|
+
.container_19 .push_3 {
|
305
|
+
left:186px;
|
306
|
+
}
|
307
|
+
|
308
|
+
.container_19 .push_4 {
|
309
|
+
left:248px;
|
310
|
+
}
|
311
|
+
|
312
|
+
.container_19 .push_5 {
|
313
|
+
left:310px;
|
314
|
+
}
|
315
|
+
|
316
|
+
.container_19 .push_6 {
|
317
|
+
left:372px;
|
318
|
+
}
|
319
|
+
|
320
|
+
.container_19 .push_7 {
|
321
|
+
left:434px;
|
322
|
+
}
|
323
|
+
|
324
|
+
.container_19 .push_8 {
|
325
|
+
left:496px;
|
326
|
+
}
|
327
|
+
|
328
|
+
.container_19 .push_9 {
|
329
|
+
left:558px;
|
330
|
+
}
|
331
|
+
|
332
|
+
.container_19 .push_10 {
|
333
|
+
left:620px;
|
334
|
+
}
|
335
|
+
|
336
|
+
.container_19 .push_11 {
|
337
|
+
left:682px;
|
338
|
+
}
|
339
|
+
|
340
|
+
.container_19 .push_12 {
|
341
|
+
left:744px;
|
342
|
+
}
|
343
|
+
|
344
|
+
.container_19 .push_13 {
|
345
|
+
left:806px;
|
346
|
+
}
|
347
|
+
|
348
|
+
.container_19 .push_14 {
|
349
|
+
left:868px;
|
350
|
+
}
|
351
|
+
|
352
|
+
.container_19 .push_15 {
|
353
|
+
left:930px;
|
354
|
+
}
|
355
|
+
|
356
|
+
.container_19 .push_16 {
|
357
|
+
left:992px;
|
358
|
+
}
|
359
|
+
|
360
|
+
.container_19 .push_17 {
|
361
|
+
left:1054px;
|
362
|
+
}
|
363
|
+
|
364
|
+
.container_19 .push_18 {
|
365
|
+
left:1116px;
|
366
|
+
}
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
/* Pull Space >> 19 Columns
|
371
|
+
----------------------------------------------------------------------------------------------------*/
|
372
|
+
|
373
|
+
.container_19 .pull_1 {
|
374
|
+
left:-62px;
|
375
|
+
}
|
376
|
+
|
377
|
+
.container_19 .pull_2 {
|
378
|
+
left:-124px;
|
379
|
+
}
|
380
|
+
|
381
|
+
.container_19 .pull_3 {
|
382
|
+
left:-186px;
|
383
|
+
}
|
384
|
+
|
385
|
+
.container_19 .pull_4 {
|
386
|
+
left:-248px;
|
387
|
+
}
|
388
|
+
|
389
|
+
.container_19 .pull_5 {
|
390
|
+
left:-310px;
|
391
|
+
}
|
392
|
+
|
393
|
+
.container_19 .pull_6 {
|
394
|
+
left:-372px;
|
395
|
+
}
|
396
|
+
|
397
|
+
.container_19 .pull_7 {
|
398
|
+
left:-434px;
|
399
|
+
}
|
400
|
+
|
401
|
+
.container_19 .pull_8 {
|
402
|
+
left:-496px;
|
403
|
+
}
|
404
|
+
|
405
|
+
.container_19 .pull_9 {
|
406
|
+
left:-558px;
|
407
|
+
}
|
408
|
+
|
409
|
+
.container_19 .pull_10 {
|
410
|
+
left:-620px;
|
411
|
+
}
|
412
|
+
|
413
|
+
.container_19 .pull_11 {
|
414
|
+
left:-682px;
|
415
|
+
}
|
416
|
+
|
417
|
+
.container_19 .pull_12 {
|
418
|
+
left:-744px;
|
419
|
+
}
|
420
|
+
|
421
|
+
.container_19 .pull_13 {
|
422
|
+
left:-806px;
|
423
|
+
}
|
424
|
+
|
425
|
+
.container_19 .pull_14 {
|
426
|
+
left:-868px;
|
427
|
+
}
|
428
|
+
|
429
|
+
.container_19 .pull_15 {
|
430
|
+
left:-930px;
|
431
|
+
}
|
432
|
+
|
433
|
+
.container_19 .pull_16 {
|
434
|
+
left:-992px;
|
435
|
+
}
|
436
|
+
|
437
|
+
.container_19 .pull_17 {
|
438
|
+
left:-1054px;
|
439
|
+
}
|
440
|
+
|
441
|
+
.container_19 .pull_18 {
|
442
|
+
left:-1116px;
|
443
|
+
}
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
/* Clear Floated Elements
|
449
|
+
----------------------------------------------------------------------------------------------------*/
|
450
|
+
|
451
|
+
/* http://sonspring.com/journal/clearing-floats */
|
452
|
+
|
453
|
+
.clear {
|
454
|
+
clear: both;
|
455
|
+
display: block;
|
456
|
+
overflow: hidden;
|
457
|
+
visibility: hidden;
|
458
|
+
width: 0;
|
459
|
+
height: 0;
|
460
|
+
}
|
461
|
+
|
462
|
+
/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */
|
463
|
+
|
464
|
+
.clearfix:after {
|
465
|
+
clear: both;
|
466
|
+
content: ' ';
|
467
|
+
display: block;
|
468
|
+
font-size: 0;
|
469
|
+
line-height: 0;
|
470
|
+
visibility: hidden;
|
471
|
+
width: 0;
|
472
|
+
height: 0;
|
473
|
+
}
|
474
|
+
|
475
|
+
.clearfix {
|
476
|
+
display: inline-block;
|
477
|
+
}
|
478
|
+
|
479
|
+
* html .clearfix {
|
480
|
+
height: 1%;
|
481
|
+
}
|
482
|
+
|
483
|
+
.clearfix {
|
484
|
+
display: block;
|
485
|
+
}
|
486
|
+
|
487
|
+
.rpush_1{margin-right: 5px;}
|
488
|
+
.rpush_2{margin-right: 10px;}
|
489
|
+
|
490
|
+
.tpush_1{margin-top: 5px;}
|
491
|
+
.tpush_2{margin-top: 10px;}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
#btnSubmit { margin: 0 0 0 155px ; }
|
4
|
+
/* -- Table Styles ------------------------------- */
|
5
|
+
td {
|
6
|
+
font: 10pt Helvetica, Arial, sans-serif;
|
7
|
+
vertical-align: top;
|
8
|
+
}
|
9
|
+
|
10
|
+
.progressWrapper {
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
|
14
|
+
.progressContainer {
|
15
|
+
margin-bottom: 5px;
|
16
|
+
padding: 4px;
|
17
|
+
border: solid 1px #E8E8E8;
|
18
|
+
background-color: #F7F7F7;
|
19
|
+
overflow: hidden;
|
20
|
+
}
|
21
|
+
/* Message */
|
22
|
+
.message {
|
23
|
+
margin: 1em 0;
|
24
|
+
padding: 10px 20px;
|
25
|
+
border: solid 1px #FFDD99;
|
26
|
+
background-color: #FFFFCC;
|
27
|
+
overflow: hidden;
|
28
|
+
}
|
29
|
+
/* Error */
|
30
|
+
.red {
|
31
|
+
border: solid 1px #B50000;
|
32
|
+
background-color: #FFEBEB;
|
33
|
+
}
|
34
|
+
|
35
|
+
/* Current */
|
36
|
+
.green {
|
37
|
+
border: solid 1px #DDF0DD;
|
38
|
+
background-color: #EBFFEB;
|
39
|
+
}
|
40
|
+
|
41
|
+
/* Complete */
|
42
|
+
.blue {
|
43
|
+
border: solid 1px #CEE2F2;
|
44
|
+
background-color: #F0F5FF;
|
45
|
+
}
|
46
|
+
|
47
|
+
.progressName {
|
48
|
+
font-size: 8pt;
|
49
|
+
font-weight: 700;
|
50
|
+
color: #555;
|
51
|
+
width: 323px;
|
52
|
+
height: 14px;
|
53
|
+
text-align: left;
|
54
|
+
white-space: nowrap;
|
55
|
+
overflow: hidden;
|
56
|
+
}
|
57
|
+
|
58
|
+
.progressBarInProgress,
|
59
|
+
.progressBarComplete,
|
60
|
+
.progressBarError {
|
61
|
+
font-size: 0;
|
62
|
+
width: 0%;
|
63
|
+
height: 2px;
|
64
|
+
background-color: blue;
|
65
|
+
margin-top: 2px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.progressBarComplete {
|
69
|
+
width: 100%;
|
70
|
+
background-color: green;
|
71
|
+
visibility: hidden;
|
72
|
+
}
|
73
|
+
|
74
|
+
.progressBarError {
|
75
|
+
width: 100%;
|
76
|
+
background-color: red;
|
77
|
+
visibility: hidden;
|
78
|
+
}
|
79
|
+
|
80
|
+
.progressBarStatus {
|
81
|
+
margin-top: 2px;
|
82
|
+
width: 337px;
|
83
|
+
font-size: 7pt;
|
84
|
+
font-family: Arial;
|
85
|
+
text-align: left;
|
86
|
+
white-space: nowrap;
|
87
|
+
}
|
88
|
+
|
89
|
+
a.progressCancel {
|
90
|
+
font-size: 0;
|
91
|
+
display: block;
|
92
|
+
height: 14px;
|
93
|
+
width: 14px;
|
94
|
+
background-image: url(/images/swfupload/cancelbutton.gif);
|
95
|
+
background-repeat: no-repeat;
|
96
|
+
background-position: -14px 0px;
|
97
|
+
float: right;
|
98
|
+
}
|
99
|
+
|
100
|
+
a.progressCancel:hover {
|
101
|
+
background-position: 0px 0px;
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
/* -- SWFUpload Object Styles ------------------------------- */
|
106
|
+
.swfupload {
|
107
|
+
vertical-align: top;
|
108
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
body { font-size: 12px; line-height: 16px; font-family: Helvetica, Arial, Sans-serif; color:#000; }
|
2
|
+
|
3
|
+
.header { left: 0px; top: 24px; background: #CCC; height: 44px; z-index: 0;}
|
4
|
+
.header ul {padding:0;}
|
5
|
+
.header li {margin-top:15px;}
|
6
|
+
.header ul li a { font-size: 14px; text-transform: uppercase; padding-left:10px;}
|
7
|
+
|
8
|
+
a {color:#999;}
|
9
|
+
a:link {text-decoration:none;}
|
10
|
+
a:hover {color:#000;}
|
11
|
+
|
12
|
+
ul {list-style: none;}
|
13
|
+
ul li {float:left; margin-right:3px; text-align:center;color:#CCC;}
|
14
|
+
ul li.active {background: #CCC; color:#FFF;}
|
15
|
+
.hide {display:none;}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
begin
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start('rails') do
|
5
|
+
add_filter '/vendor/'
|
6
|
+
end
|
7
|
+
rescue
|
8
|
+
end
|
9
|
+
|
10
|
+
ENV["RAILS_ENV"] = "test"
|
11
|
+
|
12
|
+
require 'ruby-debug' ; Debugger.start
|
13
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
14
|
+
require "rails/test_help"
|
15
|
+
|
16
|
+
ActionMailer::Base.delivery_method = :test
|
17
|
+
ActionMailer::Base.perform_deliveries = true
|
18
|
+
ActionMailer::Base.default_url_options[:host] = "test.com"
|
19
|
+
|
20
|
+
Rails.backtrace_cleaner.remove_silencers!
|
21
|
+
|
22
|
+
# Configure capybara for integration testing
|
23
|
+
require "capybara/rails"
|
24
|
+
Capybara.default_driver = :rack_test
|
25
|
+
Capybara.default_selector = :css
|
26
|
+
|
27
|
+
# Load support files
|
28
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
29
|
+
|
30
|
+
# For generators
|
31
|
+
require "rails/generators/test_case"
|
32
|
+
require "generators/attachment_magick/install_generator"
|
33
|
+
require "generators/attachment_magick/migration_generator"
|
34
|
+
|
35
|
+
# Some helpers
|
36
|
+
require "attachment_magick/test/attachment_magick_test_helper"
|
37
|
+
|
38
|
+
class ActiveSupport::TestCase
|
39
|
+
include AttachmentMagickTestHelper
|
40
|
+
end
|
41
|
+
|
42
|
+
class ActionController::TestCase
|
43
|
+
include AttachmentMagickTestHelper
|
44
|
+
end
|
45
|
+
|
46
|
+
class ActionView::TestCase
|
47
|
+
include AttachmentMagickTestHelper
|
48
|
+
end
|