grandstand 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. data/Gemfile +6 -0
  2. data/README.md +72 -0
  3. data/app/controllers/galleries_controller.rb +4 -0
  4. data/app/controllers/grandstand/galleries_controller.rb +10 -1
  5. data/app/controllers/grandstand/images_controller.rb +9 -3
  6. data/app/controllers/grandstand/main_controller.rb +2 -4
  7. data/app/controllers/grandstand/pages_controller.rb +8 -1
  8. data/app/controllers/grandstand/sessions_controller.rb +1 -1
  9. data/app/helpers/grandstand/main_helper.rb +17 -0
  10. data/app/models/grandstand/gallery.rb +2 -1
  11. data/app/models/grandstand/image.rb +1 -0
  12. data/app/models/grandstand/page.rb +4 -0
  13. data/app/models/grandstand/page_section.rb +2 -0
  14. data/app/models/grandstand/post.rb +2 -0
  15. data/app/models/grandstand/user.rb +6 -4
  16. data/app/views/grandstand/galleries/delete.html.erb +2 -2
  17. data/app/views/grandstand/galleries/edit.html.erb +1 -1
  18. data/app/views/grandstand/galleries/editor.html.erb +3 -3
  19. data/app/views/grandstand/galleries/index.html.erb +5 -5
  20. data/app/views/grandstand/galleries/new.html.erb +1 -1
  21. data/app/views/grandstand/galleries/show.html.erb +11 -10
  22. data/app/views/grandstand/images/_form.html.erb +1 -1
  23. data/app/views/grandstand/images/delete.html.erb +2 -2
  24. data/app/views/grandstand/images/edit.html.erb +2 -2
  25. data/app/views/grandstand/images/new.html.erb +2 -2
  26. data/app/views/grandstand/images/show.html.erb +2 -2
  27. data/app/views/grandstand/main/index.html.erb +8 -10
  28. data/app/views/grandstand/pages/_form.html.erb +4 -5
  29. data/app/views/grandstand/pages/_row.html.erb +4 -3
  30. data/app/views/grandstand/pages/delete.html.erb +2 -2
  31. data/app/views/grandstand/pages/edit.html.erb +6 -3
  32. data/app/views/grandstand/pages/index.html.erb +10 -7
  33. data/app/views/grandstand/pages/new.html.erb +6 -3
  34. data/app/views/grandstand/pages/show.html.erb +25 -3
  35. data/app/views/grandstand/posts/_form.html.erb +1 -3
  36. data/app/views/grandstand/posts/_list.html.erb +1 -1
  37. data/app/views/grandstand/posts/delete.html.erb +1 -2
  38. data/app/views/grandstand/posts/edit.html.erb +5 -2
  39. data/app/views/grandstand/posts/index.html.erb +10 -5
  40. data/app/views/grandstand/posts/new.html.erb +5 -2
  41. data/app/views/grandstand/posts/show.html.erb +3 -5
  42. data/app/views/grandstand/sessions/forgot.html.erb +2 -2
  43. data/app/views/grandstand/sessions/show.html.erb +2 -2
  44. data/app/views/grandstand/shared/_footer.html.erb +1 -0
  45. data/app/views/grandstand/users/_form.html.erb +7 -3
  46. data/app/views/grandstand/users/delete.html.erb +1 -1
  47. data/app/views/grandstand/users/edit.html.erb +1 -1
  48. data/app/views/grandstand/users/index.html.erb +4 -2
  49. data/app/views/grandstand/users/new.html.erb +1 -1
  50. data/app/views/grandstand/users/show.html.erb +7 -4
  51. data/app/views/layouts/grandstand.html.erb +17 -55
  52. data/app/views/layouts/{grandstand_login.html.erb → grandstand_minimal.html.erb} +5 -2
  53. data/app/views/pages/show.html.erb +0 -8
  54. data/app/views/posts/show.html.erb +1 -1
  55. data/app/views/shared/404.html.erb +1 -1
  56. data/config/routes.rb +5 -0
  57. data/lib/generators/grandstand/install/install_generator.rb +40 -0
  58. data/lib/generators/grandstand/install/templates/initializer.rb +27 -0
  59. data/lib/generators/grandstand/install/templates/migration.rb +95 -0
  60. data/lib/generators/grandstand/install/templates/public/fonts/museosans.eot +0 -0
  61. data/lib/generators/grandstand/install/templates/public/fonts/museosans.svg +247 -0
  62. data/lib/generators/grandstand/install/templates/public/fonts/museosans.ttf +0 -0
  63. data/lib/generators/grandstand/install/templates/public/fonts/museosans.woff +0 -0
  64. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-input.gif +0 -0
  65. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-progress-bar.png +0 -0
  66. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-progress-complete.gif +0 -0
  67. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-progress.gif +0 -0
  68. data/lib/generators/grandstand/install/templates/public/images/icons/add.png +0 -0
  69. data/lib/generators/grandstand/install/templates/public/images/icons/delete.png +0 -0
  70. data/lib/generators/grandstand/install/templates/public/images/icons/edit.png +0 -0
  71. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/bold.png +0 -0
  72. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/gallery.png +0 -0
  73. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image-center.png +0 -0
  74. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image-left.png +0 -0
  75. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image-right.png +0 -0
  76. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image.png +0 -0
  77. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/italic.png +0 -0
  78. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/ordered-list.png +0 -0
  79. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/quote.png +0 -0
  80. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/source.png +0 -0
  81. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/strikethrough.png +0 -0
  82. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/underline.png +0 -0
  83. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/unordered-list.png +0 -0
  84. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/error.png +0 -0
  85. data/lib/generators/grandstand/install/templates/public/images/icons/external.png +0 -0
  86. data/{public/grandstand/images → lib/generators/grandstand/install/templates/public/images/icons}/galleries-empty.png +0 -0
  87. data/lib/generators/grandstand/install/templates/public/images/icons/galleries.png +0 -0
  88. data/lib/generators/grandstand/install/templates/public/images/icons/gallery.png +0 -0
  89. data/lib/generators/grandstand/install/templates/public/images/icons/handle.gif +0 -0
  90. data/lib/generators/grandstand/install/templates/public/images/icons/image-library.png +0 -0
  91. data/lib/generators/grandstand/install/templates/public/images/icons/image.png +0 -0
  92. data/lib/generators/grandstand/install/templates/public/images/icons/okay.png +0 -0
  93. data/lib/generators/grandstand/install/templates/public/images/icons/pages.png +0 -0
  94. data/lib/generators/grandstand/install/templates/public/images/icons/posts.png +0 -0
  95. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/processing.gif +0 -0
  96. data/lib/generators/grandstand/install/templates/public/images/icons/users.png +0 -0
  97. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/spinner-dark.gif +0 -0
  98. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/uploader.swf +0 -0
  99. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/application.js +27 -21
  100. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/jquery.js +1 -1
  101. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/mustache.js +0 -0
  102. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/preview.js +0 -0
  103. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/selection.js +1 -1
  104. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/string.js +0 -1
  105. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/wysiwyg.js +8 -9
  106. data/lib/generators/grandstand/install/templates/public/stylesheets/application.css +368 -0
  107. data/lib/generators/grandstand/install/templates/public/stylesheets/buttons.css +81 -0
  108. data/lib/generators/grandstand/install/templates/public/stylesheets/dialog.css +142 -0
  109. data/lib/generators/grandstand/install/templates/public/stylesheets/forms.css +94 -0
  110. data/lib/generators/grandstand/install/templates/public/stylesheets/global.css +94 -0
  111. data/lib/generators/grandstand/install/templates/public/stylesheets/login.css +37 -0
  112. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/stylesheets/wysiwyg-content.css +1 -0
  113. data/lib/generators/grandstand/install/templates/public/stylesheets/wysiwyg.css +94 -0
  114. data/lib/generators/grandstand/install/templates/s3.yml +8 -0
  115. data/lib/grandstand.rb +78 -16
  116. data/lib/grandstand/application.rb +1 -10
  117. data/lib/grandstand/controller.rb +7 -1
  118. data/lib/grandstand/form_builder.rb +2 -2
  119. data/lib/grandstand/helper.rb +3 -0
  120. data/lib/grandstand/session.rb +1 -1
  121. metadata +143 -101
  122. data/.gitignore +0 -2
  123. data/MIT-LICENSE +0 -20
  124. data/README.markdown +0 -43
  125. data/README.txt +0 -0
  126. data/Rakefile +0 -50
  127. data/VERSION +0 -1
  128. data/app/helpers/site_helper.rb +0 -2
  129. data/app/stylesheets/_buttons.less +0 -76
  130. data/app/stylesheets/application.less +0 -331
  131. data/app/stylesheets/global.less +0 -452
  132. data/app/stylesheets/login.less +0 -30
  133. data/app/stylesheets/wysiwyg.less +0 -108
  134. data/app/views/grandstand/pages/_left.html.erb +0 -3
  135. data/app/views/grandstand/posts/_left.html.erb +0 -3
  136. data/app/views/grandstand/users/_left.html.erb +0 -3
  137. data/grandstand.gemspec +0 -207
  138. data/lib/grandstand/stylesheets_controller.rb +0 -14
  139. data/public/grandstand/images/icons/add.png +0 -0
  140. data/public/grandstand/images/icons/collapse.png +0 -0
  141. data/public/grandstand/images/icons/delete.png +0 -0
  142. data/public/grandstand/images/icons/edit.png +0 -0
  143. data/public/grandstand/images/icons/expand.png +0 -0
  144. data/public/grandstand/images/icons/galleries.png +0 -0
  145. data/public/grandstand/images/icons/gallery.png +0 -0
  146. data/public/grandstand/images/icons/image.png +0 -0
  147. data/public/grandstand/images/icons/okay.png +0 -0
  148. data/public/grandstand/images/icons/pages.png +0 -0
  149. data/public/grandstand/images/icons/posts.png +0 -0
  150. data/public/grandstand/images/icons/upload.png +0 -0
  151. data/public/grandstand/images/icons/users.png +0 -0
  152. data/public/grandstand/images/logo.png +0 -0
  153. data/vendor/cache/more-0.1.1.gem +0 -0
@@ -1,452 +0,0 @@
1
- /*
2
- global.less contains the styling for rendering the grandstand UI in any context, assuming
3
- it lives somewhere underneath a .grandstand item. This will allow you to take global UI
4
- elements and apply them externally or internally - whatever you feel like.
5
- */
6
- @import url('_buttons.less');
7
-
8
- body, html {
9
- min-height:100%;
10
- }
11
-
12
- body.grandstand {
13
- background-color:#fff;
14
- background-image:-moz-linear-gradient(top, #fff, #eee);
15
- background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
16
- font:12px Arial, sans-serif;
17
- margin:0;
18
- padding:0;
19
- }
20
-
21
- .grandstand {
22
- /* HTML Tags (excluding form input elements) */
23
- a {
24
- cursor:pointer;
25
- text-decoration:none;
26
- }
27
-
28
- a img {
29
- border-width:0;
30
- }
31
-
32
- form {
33
- label, .label {
34
- color:#666;
35
- display:block;
36
- font:bold 12px Arial;
37
- margin-bottom:3px;
38
- }
39
-
40
- .field {
41
- margin:0;
42
- overflow:hidden;
43
- padding:10px 5px;
44
- }
45
- }
46
-
47
- h1, h2 {
48
- font-family:'Calibiri', 'Helvetica Neue', Helvetica, Arial, sans-serif;
49
-
50
- .button {
51
- margin-left:10px;
52
- vertical-align:center;
53
- }
54
- }
55
-
56
- h1 {
57
- margin:0 0 10px 0;
58
- font-size:16pt;
59
- }
60
-
61
- h2 {
62
- display:block !important;
63
- margin:0 0 5px 0;
64
- font-size:14pt;
65
- }
66
-
67
- table {
68
- border-collapse:collapse;
69
- border-spacing:0;
70
- width:100%;
71
- }
72
-
73
- table {
74
- tbody, tr {
75
- width:100%;
76
- }
77
- }
78
-
79
-
80
- /* Tag-specific classes */
81
- select.error {
82
- border:1px solid #f00;
83
- }
84
-
85
- select.multiple {
86
- min-height:55px;
87
- min-width:150px;
88
- }
89
-
90
- select.small {
91
- width:50px;
92
- }
93
-
94
- textarea.small {
95
- height:32px;
96
- width:180px;
97
- }
98
-
99
- textarea.wysiwyg {
100
- display:block;
101
- height:400px;
102
- width:100%;
103
- }
104
-
105
- textarea.error, input.error {
106
- border:1px solid #f00 !important;
107
- }
108
-
109
- tr.item {
110
- background-color:#fff;
111
- }
112
-
113
- tr.item.odd {
114
- background-color:#edf3fe;
115
- }
116
-
117
- tr.item td {
118
- padding:5px;
119
- }
120
-
121
- tr.item td.icon {
122
- background-position:5px 2px;
123
- padding-left:25px;
124
- }
125
-
126
- /* General Classes */
127
- .container {
128
- float:left;
129
- margin:0 0 10px 10px;
130
- padding:0 !important;
131
- width:220px;
132
- }
133
-
134
- .container.gallery img {
135
- display:none;
136
- }
137
-
138
- .container.gallery a img, .container.image img {
139
- display:block;
140
- padding:10px;
141
- }
142
-
143
- .container:hover {
144
- background-color:#ececec;
145
- }
146
-
147
- .dropdown {
148
- -moz-border-radius-bottomleft:5px;
149
- -moz-border-radius-bottomright:5px;
150
- -moz-box-shadow:#444 0 2px 2px;
151
- -webkit-border-bottom-left-radius:5px;
152
- -webkit-border-bottom-right-radius:5px;
153
- -webkit-box-shadow:#444 0 2px 2px;
154
- }
155
-
156
- .grid {
157
- border-collapse:collapse;
158
- border:1px solid #aaa;
159
-
160
- thead th {
161
- background:#eee;
162
- padding:5px;
163
- text-align:left;
164
- }
165
-
166
- tbody {
167
- tr.row {
168
- td {
169
- border-top:1px solid #aaa;
170
- padding:5px;
171
- }
172
-
173
- td.actions {
174
- text-align:right;
175
- }
176
- }
177
-
178
- tr.one {
179
- background-color:#fff;
180
- }
181
-
182
- tr.two {
183
- background-color:#edf3fe;
184
- }
185
- }
186
- }
187
-
188
- .grey {
189
- color:#666;
190
- }
191
-
192
- .header {
193
- background-color:#a7a7a7;
194
- background-image:-moz-linear-gradient(top, #cacaca, #a7a7a7);
195
- background-image:-webkit-gradient(linear, left top, left bottom, from(#cacaca), to(#a7a7a7));
196
- border-bottom:1px solid #888;
197
- overflow:hidden;
198
- padding:5px;
199
- -moz-border-radius-topleft:5px;
200
- -moz-border-radius-topright:5px;
201
- -webkit-border-top-left-radius:5px;
202
- -webkit-border-top-right-radius:5px;
203
- }
204
-
205
- .header .float-left {
206
- cursor:move;
207
- font-weight:bold;
208
- }
209
-
210
-
211
- .button {
212
- #grandstand > .button-default;
213
- }
214
-
215
- .button::-moz-focus-inner {
216
- border:none;
217
- padding:0 !important;
218
- }
219
-
220
- .button:hover {
221
- #grandstand > .button-hover;
222
- }
223
-
224
- .button:active, .button.active {
225
- #grandstand > .button-hover;
226
- #grandstand > .button-active;
227
- }
228
-
229
- .button.default {
230
- #grandstand > .button-grey;
231
- }
232
-
233
- .button.default:hover {
234
- #grandstand > .button-grey-hover;
235
- }
236
-
237
- .button.default:active {
238
- #grandstand > .button-grey-active;
239
- }
240
-
241
- .center {
242
- text-align:center;
243
- }
244
-
245
- .error {
246
- margin-top:5px;
247
- }
248
-
249
- .errors label {
250
- color:#f00;
251
- }
252
-
253
- .errors input.text, .errors select, .errors textarea {
254
- border:1px solid #f00;
255
- }
256
-
257
- .float-left {
258
- float:left;
259
- }
260
-
261
- .float-right {
262
- float:right;
263
- }
264
-
265
- .icon {
266
- background-position:left top;
267
- background-repeat:no-repeat;
268
- display:inline-block;
269
- min-height:16px;
270
- padding-left:20px;
271
- }
272
-
273
- .button:hover .icon, .icon:hover {
274
- background-position:left bottom;
275
- }
276
-
277
- .button.has-icon {
278
- padding-left:5px;
279
- }
280
-
281
- .icon.add {
282
- background-image:url(../images/icons/add.png);
283
- }
284
-
285
- .icon.delete {
286
- background-image:url(../images/icons/delete.png);
287
- }
288
-
289
- .icon.edit {
290
- background-image:url(../images/icons/edit.png);
291
- }
292
-
293
- .icon.error {
294
- background-image:url(../images/icons/error.png);
295
- }
296
-
297
- .icon.gallery {
298
- background-image:url(../images/icons/gallery.png);
299
- }
300
-
301
- .icon.galleries {
302
- background-image:url(../images/icons/galleries.png);
303
- }
304
-
305
- .icon.image {
306
- background-image:url(../images/icons/image.png);
307
- }
308
-
309
- .icon.okay {
310
- background-image:url(../images/icons/okay.png);
311
- }
312
-
313
- .icon.pages {
314
- background-image:url(../images/icons/pages.png);
315
- }
316
-
317
- .icon.posts {
318
- background-image:url(../images/icons/posts.png);
319
- }
320
-
321
- .icon.processing {
322
- background-image:url(../images/icons/processing.gif);
323
- background-position:left bottom;
324
- }
325
-
326
- .icon.upload {
327
- background-image:url(../images/icons/upload.png);
328
- }
329
-
330
- .icon.users {
331
- background-image:url(../images/icons/users.png);
332
- }
333
-
334
- h1.icon {
335
- line-height:48px;
336
- padding-left:58px;
337
- }
338
-
339
- .inset {
340
- background-color:#f5f5f5;
341
- padding:10px;
342
- -moz-border-radius:5px;
343
- -webkit-border-radius:5px;
344
- -moz-box-shadow:inset #888 0 1px 2px;
345
- -webkit-box-shadow:inset #888 0 1px 2px;
346
-
347
- .button {
348
- -moz-box-shadow:rgba(255, 255, 255, 0.6) 0 1px 0;
349
- -webkit-box-shadow:rgba(255, 255, 255, 0.6) 0 1px 0;
350
- }
351
- }
352
-
353
- .inset.icon {
354
- background-position:5px 5px;
355
- display:block;
356
- padding-left:68px;
357
- }
358
-
359
- .notification {
360
- bottom:20px;
361
- position:fixed;
362
- text-align:center;
363
- width:100%;
364
- z-index:4;
365
- }
366
-
367
- .notification .inner {
368
- background:rgba(0, 0, 0, 0.7);
369
- color:#fff;
370
- display:inline-block;
371
- font-size:24pt;
372
- margin:0 auto;
373
- padding:10px 20px;
374
- -moz-border-radius:70px;
375
- -webkit-border-radius:70px;
376
- }
377
-
378
- .progress-bar {
379
- background:url(../images/background-progress-bar.png) repeat-x left center;
380
- margin:0;
381
- padding:0 !important;
382
- width:200px;
383
-
384
- .progress {
385
- background:url(../images/background-progress.gif) repeat-x;
386
- height:11px;
387
- width:0;
388
- }
389
- }
390
-
391
- .progress-bar.complete .progress {
392
- background-image:url(../images/background-progress-complete.gif);
393
- width:100%;
394
- }
395
-
396
- .right {
397
- text-align:right;
398
- }
399
-
400
- /* Form Elements */
401
- select {
402
- padding:2px;
403
- }
404
-
405
- textarea {
406
- height:50px;
407
- }
408
-
409
- input.text, textarea {
410
- background:#fff url(../images/background-input.gif) repeat-x;
411
- border-bottom:1px solid #ddd;
412
- border-left:1px solid #c3c3c3;
413
- border-right:1px solid #c3c3c3;
414
- border-top:1px solid #7d7d7d;
415
- padding:3px;
416
- width:370px;
417
- -moz-box-sizing:border-box;
418
- -ms-box-sizing:border-box;
419
- -webkit-box-sizing:border-box;
420
- }
421
-
422
- input.text.medium {
423
- width:180px;
424
- }
425
-
426
- input.text.oversized {
427
- /* display:block;*/
428
- font-size:18px;
429
- width:100%;
430
- }
431
-
432
- input.half.text.oversized {
433
- width:183px;
434
- }
435
-
436
- input.text.small {
437
- width:94px;
438
- }
439
-
440
- input.text.tiny {
441
- width:50px;
442
- }
443
-
444
- input.replace.unedited, textarea.replace.unedited {
445
- color:#777 !important;
446
- }
447
-
448
- /* jQuery UI */
449
- .ui-tabs-hide {
450
- display:none;
451
- }
452
- }
@@ -1,30 +0,0 @@
1
- /*
2
- login.less simply contains the layout for the login page. This page is used
3
- only for logging users into the site, and is pretty basic.
4
- */
5
-
6
- #logo {
7
- left:50%;
8
- margin-left:-190px;
9
- position:absolute;
10
- top:100px;
11
- }
12
-
13
- #login {
14
- /* background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
15
- background-image:-moz-linear-gradient(top, #eee, #ddd);
16
- */
17
- border-bottom:1px solid #fff;
18
- left:50%;
19
- margin:0 0 0 -200px;
20
- position:absolute;
21
- padding:2em;
22
- top:135px;
23
- width:400px;
24
- -moz-box-sizing:border-box;
25
- -ms-box-sizing:border-box;
26
- -webkit-box-sizing:border-box;
27
- -moz-border-radius:5px;
28
- -webkit-border-radius:5px;
29
- /* -webkit-box-shadow:rgba(0, 0, 0, 0.5) 0 0 5px;*/
30
- }