vain_routes 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/.document +5 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +21 -0
  4. data/README.rdoc +37 -0
  5. data/Rakefile +21 -0
  6. data/VERSION +1 -0
  7. data/app/controllers/vain_routes/routes_controller.rb +28 -0
  8. data/app/views/layouts/vain_routes/base.html.erb +29 -0
  9. data/app/views/vain_routes/routes/_route.html.erb +18 -0
  10. data/app/views/vain_routes/routes/index.html.erb +36 -0
  11. data/config/routes.rb +4 -0
  12. data/doc/screenshot.png +0 -0
  13. data/lib/vain_routes/engine.rb +11 -0
  14. data/lib/vain_routes.rb +1 -0
  15. data/public/vain_routes/data_tables/css/demo_page.css +93 -0
  16. data/public/vain_routes/data_tables/css/demo_table.css +538 -0
  17. data/public/vain_routes/data_tables/css/demo_table_jui.css +521 -0
  18. data/public/vain_routes/data_tables/images/Sorting icons.psd +0 -0
  19. data/public/vain_routes/data_tables/images/back_disabled.jpg +0 -0
  20. data/public/vain_routes/data_tables/images/back_enabled.jpg +0 -0
  21. data/public/vain_routes/data_tables/images/favicon.ico +0 -0
  22. data/public/vain_routes/data_tables/images/forward_disabled.jpg +0 -0
  23. data/public/vain_routes/data_tables/images/forward_enabled.jpg +0 -0
  24. data/public/vain_routes/data_tables/images/sort_asc.png +0 -0
  25. data/public/vain_routes/data_tables/images/sort_asc_disabled.png +0 -0
  26. data/public/vain_routes/data_tables/images/sort_both.png +0 -0
  27. data/public/vain_routes/data_tables/images/sort_desc.png +0 -0
  28. data/public/vain_routes/data_tables/images/sort_desc_disabled.png +0 -0
  29. data/public/vain_routes/data_tables/js/jquery.dataTables.js +6862 -0
  30. data/public/vain_routes/data_tables/js/jquery.dataTables.min.js +143 -0
  31. data/public/vain_routes/data_tables/js/jquery.dataTables.min.js.gz +0 -0
  32. data/public/vain_routes/data_tables/js/jquery.js +16 -0
  33. data/public/vain_routes/images/Sorting icons.psd +0 -0
  34. data/public/vain_routes/images/back_disabled.jpg +0 -0
  35. data/public/vain_routes/images/back_enabled.jpg +0 -0
  36. data/public/vain_routes/images/favicon.ico +0 -0
  37. data/public/vain_routes/images/forward_disabled.jpg +0 -0
  38. data/public/vain_routes/images/forward_enabled.jpg +0 -0
  39. data/public/vain_routes/images/oak_background_texture.jpg +0 -0
  40. data/public/vain_routes/images/sort_asc.png +0 -0
  41. data/public/vain_routes/images/sort_asc_disabled.png +0 -0
  42. data/public/vain_routes/images/sort_both.png +0 -0
  43. data/public/vain_routes/images/sort_desc.png +0 -0
  44. data/public/vain_routes/images/sort_desc_disabled.png +0 -0
  45. data/public/vain_routes/stylesheets/base.css +49 -0
  46. data/public/vain_routes/stylesheets/data_table_jui.css +523 -0
  47. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  48. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  49. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  50. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  51. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  52. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  53. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  54. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  55. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  56. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-icons_222222_256x240.png +0 -0
  57. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-icons_3572ac_256x240.png +0 -0
  58. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-icons_8c291d_256x240.png +0 -0
  59. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-icons_b83400_256x240.png +0 -0
  60. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-icons_fbdb93_256x240.png +0 -0
  61. data/public/vain_routes/stylesheets/jui-pepper-grinder/images/ui-icons_ffffff_256x240.png +0 -0
  62. data/public/vain_routes/stylesheets/jui-pepper-grinder/jquery-ui-1.8.11.custom.css +573 -0
  63. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  64. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  65. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  66. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  67. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  68. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  69. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  70. data/public/vain_routes/stylesheets/jui-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  71. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_217bc0_256x240.png +0 -0
  72. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  73. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_469bdd_256x240.png +0 -0
  74. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  75. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  76. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  77. data/public/vain_routes/stylesheets/jui-redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  78. data/public/vain_routes/stylesheets/jui-redmond/jquery-ui-1.8.11.custom.css +573 -0
  79. data/spec/spec.opts +1 -0
  80. data/spec/spec_helper.rb +9 -0
  81. data/spec/vain_routes_spec.rb +7 -0
  82. metadata +159 -0
@@ -0,0 +1,49 @@
1
+ html, body{
2
+ }
3
+ .main-content{
4
+ }
5
+
6
+ html, body{
7
+ /*background-color: #262B2F;*/
8
+ background-image:url('/vain_routes/images/oak_background_texture.jpg');
9
+ background-position: 0 0;
10
+
11
+ }
12
+ .main-content{
13
+ width: 960px;
14
+ margin: 0px auto;
15
+ margin-top:25px;
16
+ margin-bottom: 25px;
17
+ /*background-color: white;*/
18
+
19
+ border-radius: 20px;
20
+ -moz-border-radius: 20px;
21
+ -webkit-border-radius: 20px;
22
+ }
23
+
24
+ div.routes{
25
+
26
+ margin-left: 10px;
27
+ margin-right: 10px;
28
+ }
29
+
30
+ col.order{
31
+ width: 75px;
32
+ }
33
+ col.verb{
34
+ width: 75px;
35
+ }
36
+ col.path{
37
+ width: 350px;
38
+ overflow: auto;
39
+
40
+ }
41
+
42
+ col.controller{
43
+ text-align: left;
44
+ }
45
+
46
+ td.wrapword{
47
+
48
+ word-wrap: break-word; /* Internet Explorer 5.5+ & Chrome*/
49
+ }
@@ -0,0 +1,523 @@
1
+ /*
2
+ * File: demo_table_jui.css
3
+ * CVS: $Id$
4
+ * Description: CSS descriptions for DataTables demo pages
5
+ * Author: Allan Jardine
6
+ * Created: Tue May 12 06:47:22 BST 2009
7
+ * Modified: $Date$ by $Author$
8
+ * Language: CSS
9
+ * Project: DataTables
10
+ *
11
+ * Copyright 2009 Allan Jardine. All Rights Reserved.
12
+ *
13
+ * ***************************************************************************
14
+ * DESCRIPTION
15
+ *
16
+ * The styles given here are suitable for the demos that are used with the standard DataTables
17
+ * distribution (see www.datatables.net). You will most likely wish to modify these styles to
18
+ * meet the layout requirements of your site.
19
+ *
20
+ * Common issues:
21
+ * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
22
+ * no conflict between the two pagination types. If you want to use full_numbers pagination
23
+ * ensure that you either have "example_alt_pagination" as a body class name, or better yet,
24
+ * modify that selector.
25
+ * Note that the path used for Images is relative. All images are by default located in
26
+ * ../images/ - relative to this CSS file.
27
+ */
28
+
29
+
30
+ /*
31
+ * jQuery UI specific styling
32
+ */
33
+
34
+ .paging_two_button .ui-button {
35
+ float: left;
36
+ cursor: pointer;
37
+ * cursor: hand;
38
+ }
39
+
40
+ .paging_full_numbers .ui-button {
41
+ padding: 2px 6px;
42
+ margin: 0;
43
+ cursor: pointer;
44
+ * cursor: hand;
45
+ }
46
+
47
+ .dataTables_paginate .ui-button {
48
+ margin-right: -0.1em !important;
49
+ }
50
+
51
+ .paging_full_numbers {
52
+ width: 350px !important;
53
+ }
54
+
55
+ .dataTables_wrapper .ui-toolbar {
56
+ padding: 5px;
57
+ }
58
+
59
+ .dataTables_paginate {
60
+ width: auto;
61
+ }
62
+
63
+ .dataTables_info {
64
+ padding-top: 3px;
65
+ }
66
+
67
+ table.display thead th {
68
+ padding: 3px 0px 3px 10px;
69
+ cursor: pointer;
70
+ * cursor: hand;
71
+ }
72
+
73
+ div.dataTables_wrapper .ui-widget-header {
74
+ font-weight: normal;
75
+ }
76
+
77
+
78
+ /*
79
+ * Sort arrow icon positioning
80
+ */
81
+ table.display thead th div.DataTables_sort_wrapper {
82
+ position: relative;
83
+ padding-right: 20px;
84
+ padding-right: 20px;
85
+ }
86
+
87
+ table.display thead th div.DataTables_sort_wrapper span {
88
+ position: absolute;
89
+ top: 50%;
90
+ margin-top: -8px;
91
+ right: 0;
92
+ }
93
+
94
+
95
+
96
+
97
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
98
+ *
99
+ * Everything below this line is the same as demo_table.css. This file is
100
+ * required for 'cleanliness' of the markup
101
+ *
102
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
103
+
104
+
105
+
106
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
107
+ * DataTables features
108
+ */
109
+
110
+ .dataTables_wrapper {
111
+ position: relative;
112
+ min-height: 302px;
113
+ _height: 302px;
114
+ clear: both;
115
+ }
116
+
117
+ .dataTables_processing {
118
+ position: absolute;
119
+ top: 0px;
120
+ left: 50%;
121
+ width: 250px;
122
+ margin-left: -125px;
123
+ border: 1px solid #ddd;
124
+ text-align: center;
125
+ color: #999;
126
+ font-size: 11px;
127
+ padding: 2px 0;
128
+ }
129
+
130
+ .dataTables_length {
131
+ width: 40%;
132
+ float: left;
133
+ }
134
+
135
+ .dataTables_filter {
136
+ width: 50%;
137
+ float: right;
138
+ text-align: right;
139
+ }
140
+
141
+ .dataTables_info {
142
+ width: 50%;
143
+ float: left;
144
+ }
145
+
146
+ .dataTables_paginate {
147
+ float: right;
148
+ text-align: right;
149
+ }
150
+
151
+ /* Pagination nested */
152
+ .paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
153
+ height: 19px;
154
+ width: 19px;
155
+ margin-left: 3px;
156
+ float: left;
157
+ }
158
+
159
+ .paginate_disabled_previous {
160
+ background-image: url('../images/back_disabled.jpg');
161
+ }
162
+
163
+ .paginate_enabled_previous {
164
+ background-image: url('../images/back_enabled.jpg');
165
+ }
166
+
167
+ .paginate_disabled_next {
168
+ background-image: url('../images/forward_disabled.jpg');
169
+ }
170
+
171
+ .paginate_enabled_next {
172
+ background-image: url('../images/forward_enabled.jpg');
173
+ }
174
+
175
+
176
+
177
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
178
+ * DataTables display
179
+ */
180
+ table.display {
181
+ table-layout:fixed;
182
+ /*width: 100%;*/
183
+ width: 940px;
184
+ border-collapse: collapse;
185
+ }
186
+
187
+ table.display tfoot th {
188
+ padding: 3px 0px 3px 10px;
189
+ font-weight: bold;
190
+ font-weight: normal;
191
+ }
192
+
193
+ table.display tr.heading2 td {
194
+ border-bottom: 1px solid #aaa;
195
+ }
196
+
197
+ table.display td {
198
+ padding: 3px 10px;
199
+ }
200
+
201
+ table.display td.center {
202
+ text-align: center;
203
+ }
204
+
205
+
206
+
207
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
208
+ * DataTables sorting
209
+ */
210
+
211
+ .sorting_asc {
212
+ background: url('../images/sort_asc.png') no-repeat center right;
213
+ }
214
+
215
+ .sorting_desc {
216
+ background: url('../images/sort_desc.png') no-repeat center right;
217
+ }
218
+
219
+ .sorting {
220
+ background: url('../images/sort_both.png') no-repeat center right;
221
+ }
222
+
223
+ .sorting_asc_disabled {
224
+ background: url('../images/sort_asc_disabled.png') no-repeat center right;
225
+ }
226
+
227
+ .sorting_desc_disabled {
228
+ background: url('../images/sort_desc_disabled.png') no-repeat center right;
229
+ }
230
+
231
+
232
+
233
+
234
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
235
+ * DataTables row classes
236
+ */
237
+ table.display tr.odd.gradeA {
238
+ background-color: #ddffdd;
239
+ }
240
+
241
+ table.display tr.even.gradeA {
242
+ background-color: #eeffee;
243
+ }
244
+
245
+
246
+
247
+
248
+ table.display tr.odd.gradeA {
249
+ background-color: #ddffdd;
250
+ }
251
+
252
+ table.display tr.even.gradeA {
253
+ background-color: #eeffee;
254
+ }
255
+
256
+ table.display tr.odd.gradeC {
257
+ background-color: #ddddff;
258
+ }
259
+
260
+ table.display tr.even.gradeC {
261
+ background-color: #eeeeff;
262
+ }
263
+
264
+ table.display tr.odd.gradeX {
265
+ background-color: #ffdddd;
266
+ }
267
+
268
+ table.display tr.even.gradeX {
269
+ background-color: #ffeeee;
270
+ }
271
+
272
+ table.display tr.odd.gradeU {
273
+ background-color: #ddd;
274
+ }
275
+
276
+ table.display tr.even.gradeU {
277
+ background-color: #eee;
278
+ }
279
+
280
+
281
+ tr.odd {
282
+ background-color: #E2E4FF;
283
+ background-color: #DFD;
284
+ }
285
+
286
+ tr.even {
287
+ background-color: white;
288
+ background-color: #EFE;
289
+ }
290
+
291
+
292
+
293
+
294
+
295
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
296
+ * Misc
297
+ */
298
+ .dataTables_scroll {
299
+ clear: both;
300
+ }
301
+
302
+ .top, .bottom {
303
+ padding: 15px;
304
+ background-color: #F5F5F5;
305
+ border: 1px solid #CCCCCC;
306
+ }
307
+
308
+ .top .dataTables_info {
309
+ float: none;
310
+ }
311
+
312
+ .clear {
313
+ clear: both;
314
+ }
315
+
316
+ .dataTables_empty {
317
+ text-align: center;
318
+ }
319
+
320
+ tfoot input {
321
+ margin: 0.5em 0;
322
+ width: 100%;
323
+ color: #444;
324
+ }
325
+
326
+ tfoot input.search_init {
327
+ color: #999;
328
+ }
329
+
330
+ td.group {
331
+ background-color: #d1cfd0;
332
+ border-bottom: 2px solid #A19B9E;
333
+ border-top: 2px solid #A19B9E;
334
+ }
335
+
336
+ td.details {
337
+ background-color: #d1cfd0;
338
+ border: 2px solid #A19B9E;
339
+ }
340
+
341
+
342
+ .example_alt_pagination div.dataTables_info {
343
+ width: 40%;
344
+ }
345
+
346
+ .paging_full_numbers span.paginate_button,
347
+ .paging_full_numbers span.paginate_active {
348
+ border: 1px solid #aaa;
349
+ -webkit-border-radius: 5px;
350
+ -moz-border-radius: 5px;
351
+ padding: 2px 5px;
352
+ margin: 0 3px;
353
+ cursor: pointer;
354
+ *cursor: hand;
355
+ }
356
+
357
+ .paging_full_numbers span.paginate_button {
358
+ background-color: #ddd;
359
+ }
360
+
361
+ .paging_full_numbers span.paginate_button:hover {
362
+ background-color: #ccc;
363
+ }
364
+
365
+ .paging_full_numbers span.paginate_active {
366
+ background-color: #99B3FF;
367
+ }
368
+
369
+ table.display tr.even.row_selected td {
370
+ background-color: #B0BED9;
371
+ }
372
+
373
+ table.display tr.odd.row_selected td {
374
+ background-color: #9FAFD1;
375
+ }
376
+
377
+
378
+ /*
379
+ * Sorting classes for columns
380
+ */
381
+ /* For the standard odd/even */
382
+ tr.odd td.sorting_1 {
383
+ background-color: #C4FFC4;
384
+ }
385
+
386
+ tr.odd td.sorting_2 {
387
+ background-color: #FFC4C4;
388
+ }
389
+
390
+ tr.odd td.sorting_3 {
391
+ background-color: #E0E2FF;
392
+ }
393
+
394
+ tr.even td.sorting_1 {
395
+ background-color: #D5FFD5;
396
+ }
397
+
398
+ tr.even td.sorting_2 {
399
+ background-color: #F2F3FF;
400
+ }
401
+
402
+ tr.even td.sorting_3 {
403
+ background-color: #F9F9FF;
404
+ }
405
+
406
+
407
+ /* For the Conditional-CSS grading rows */
408
+ /*
409
+ Colour calculations (based off the main row colours)
410
+ Level 1:
411
+ dd > c4
412
+ ee > d5
413
+ Level 2:
414
+ dd > d1
415
+ ee > e2
416
+ */
417
+ tr.odd.gradeA td.sorting_1 {
418
+ background-color: #c4ffc4;
419
+ }
420
+
421
+ tr.odd.gradeA td.sorting_2 {
422
+ background-color: #d1ffd1;
423
+ }
424
+
425
+ tr.odd.gradeA td.sorting_3 {
426
+ background-color: #d1ffd1;
427
+ }
428
+
429
+ tr.even.gradeA td.sorting_1 {
430
+ background-color: #d5ffd5;
431
+ }
432
+
433
+ tr.even.gradeA td.sorting_2 {
434
+ background-color: #e2ffe2;
435
+ }
436
+
437
+ tr.even.gradeA td.sorting_3 {
438
+ background-color: #e2ffe2;
439
+ }
440
+
441
+ tr.odd.gradeC td.sorting_1 {
442
+ background-color: #c4c4ff;
443
+ }
444
+
445
+ tr.odd.gradeC td.sorting_2 {
446
+ background-color: #d1d1ff;
447
+ }
448
+
449
+ tr.odd.gradeC td.sorting_3 {
450
+ background-color: #d1d1ff;
451
+ }
452
+
453
+ tr.even.gradeC td.sorting_1 {
454
+ background-color: #d5d5ff;
455
+ }
456
+
457
+ tr.even.gradeC td.sorting_2 {
458
+ background-color: #e2e2ff;
459
+ }
460
+
461
+ tr.even.gradeC td.sorting_3 {
462
+ background-color: #e2e2ff;
463
+ }
464
+
465
+ tr.odd.gradeX td.sorting_1 {
466
+ background-color: #ffc4c4;
467
+ }
468
+
469
+ tr.odd.gradeX td.sorting_2 {
470
+ background-color: #ffd1d1;
471
+ }
472
+
473
+ tr.odd.gradeX td.sorting_3 {
474
+ background-color: #ffd1d1;
475
+ }
476
+
477
+ tr.even.gradeX td.sorting_1 {
478
+ background-color: #ffd5d5;
479
+ }
480
+
481
+ tr.even.gradeX td.sorting_2 {
482
+ background-color: #ffe2e2;
483
+ }
484
+
485
+ tr.even.gradeX td.sorting_3 {
486
+ background-color: #ffe2e2;
487
+ }
488
+
489
+ tr.odd.gradeU td.sorting_1 {
490
+ background-color: #c4c4c4;
491
+ }
492
+
493
+ tr.odd.gradeU td.sorting_2 {
494
+ background-color: #d1d1d1;
495
+ }
496
+
497
+ tr.odd.gradeU td.sorting_3 {
498
+ background-color: #d1d1d1;
499
+ }
500
+
501
+ tr.even.gradeU td.sorting_1 {
502
+ background-color: #d5d5d5;
503
+ }
504
+
505
+ tr.even.gradeU td.sorting_2 {
506
+ background-color: #e2e2e2;
507
+ }
508
+
509
+ tr.even.gradeU td.sorting_3 {
510
+ background-color: #e2e2e2;
511
+ }
512
+
513
+
514
+ /*
515
+ * Row highlighting example
516
+ */
517
+ .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
518
+ background-color: #ECFFB3;
519
+ }
520
+
521
+ .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
522
+ background-color: #E6FF99;
523
+ }