interpret 0.2.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. data/.gitignore +2 -4
  2. data/Gemfile +2 -3
  3. data/README.md +1 -10
  4. data/{public/stylesheets → app/assets/images}/folder.png +0 -0
  5. data/{public → app/assets}/javascripts/interpret.js +0 -0
  6. data/{public/stylesheets/interpret_style.css → app/assets/stylesheets/interpret_style.css.erb} +1 -1
  7. data/app/controllers/interpret/base_controller.rb +1 -1
  8. data/app/controllers/interpret/search_controller.rb +8 -2
  9. data/app/controllers/interpret/tools_controller.rb +5 -5
  10. data/app/controllers/interpret/translations_controller.rb +59 -69
  11. data/app/models/interpret/translation.rb +1 -0
  12. data/app/views/interpret/missing_translations/blank.html.erb +1 -1
  13. data/app/views/interpret/missing_translations/index.html.erb +1 -1
  14. data/app/views/interpret/missing_translations/stale.html.erb +2 -2
  15. data/app/views/interpret/search/_blank_search.html.erb +1 -1
  16. data/app/views/interpret/search/_filled_search.html.erb +1 -1
  17. data/app/views/interpret/tools/index.html.erb +2 -2
  18. data/app/views/interpret/translations/_listing.html.erb +3 -3
  19. data/app/views/interpret/translations/new.html.erb +2 -2
  20. data/app/views/layouts/interpret/interpret.html.erb +55 -0
  21. data/app/views/layouts/{interpret_base.html.erb → interpret/interpret_base.html.erb} +0 -0
  22. data/config/routes.rb +19 -21
  23. data/{lib/generators/interpret/templates/migration.rb → db/migrate/20111108094329_create_translations.rb} +3 -4
  24. data/interpret.gemspec +3 -3
  25. data/lib/interpret/engine.rb +6 -4
  26. data/lib/interpret/helpers.rb +4 -53
  27. data/lib/interpret/version.rb +1 -1
  28. data/lib/interpret.rb +0 -4
  29. data/script/rails +5 -0
  30. data/spec/integration/missing_translations_spec.rb +8 -8
  31. data/spec/integration/search_spec.rb +8 -8
  32. data/spec/integration/stale_translations_spec.rb +5 -5
  33. data/spec/integration/tools_spec.rb +9 -9
  34. data/spec/integration/translations_spec.rb +2 -2
  35. data/spec/spec_helper.rb +2 -9
  36. data/spec/support/load_routes.rb +6 -0
  37. data/test_app/Gemfile +11 -6
  38. data/test_app/{public → app/assets}/images/a1.gif +0 -0
  39. data/test_app/{public → app/assets}/images/a10.jpg +0 -0
  40. data/test_app/{public → app/assets}/images/a16.gif +0 -0
  41. data/test_app/{public → app/assets}/images/a18.gif +0 -0
  42. data/test_app/{public → app/assets}/images/a22.gif +0 -0
  43. data/test_app/{public → app/assets}/images/a26.gif +0 -0
  44. data/test_app/{public → app/assets}/images/a33.gif +0 -0
  45. data/test_app/{public → app/assets}/images/a36.gif +0 -0
  46. data/test_app/{public → app/assets}/images/a38.gif +0 -0
  47. data/test_app/{public → app/assets}/images/a41.gif +0 -0
  48. data/test_app/{public → app/assets}/images/a47.gif +0 -0
  49. data/test_app/{public → app/assets}/images/a50.gif +0 -0
  50. data/test_app/{public → app/assets}/images/a8.gif +0 -0
  51. data/test_app/{public → app/assets}/images/abg.gif +0 -0
  52. data/test_app/{public → app/assets}/images/pic1.jpg +0 -0
  53. data/test_app/{public → app/assets}/images/pic2.jpg +0 -0
  54. data/test_app/{public → app/assets}/images/spacer.gif +0 -0
  55. data/test_app/{public → app/assets}/images/upbg.gif +0 -0
  56. data/test_app/app/assets/javascripts/application.js +4 -0
  57. data/test_app/{public → app/assets}/stylesheets/.gitkeep +0 -0
  58. data/test_app/{public/stylesheets/default.css → app/assets/stylesheets/default.css.erb} +16 -16
  59. data/test_app/{public → app/assets}/stylesheets/private.css +0 -0
  60. data/test_app/app/controllers/admin/dashboard_controller.rb +6 -0
  61. data/test_app/app/views/admin/dashboard/index.html.erb +1 -0
  62. data/test_app/app/views/layouts/application.html.erb +3 -13
  63. data/test_app/app/views/layouts/backoffice.html.erb +3 -4
  64. data/test_app/app/views/pages/index.html.erb +2 -2
  65. data/test_app/config/application.rb +12 -3
  66. data/test_app/config/environments/development.rb +0 -1
  67. data/test_app/config/initializers/interpret.rb +0 -1
  68. data/test_app/config/routes.rb +10 -1
  69. data/test_app/db/migrate/{20111021100344_interpret_create_translations.rb → 20111108094455_create_translations.rb} +3 -4
  70. data/test_app/db/schema.rb +3 -0
  71. metadata +60 -78
  72. data/app/views/interpret/translations/live_edit.html.erb +0 -11
  73. data/app/views/layouts/interpret.html.erb +0 -56
  74. data/lib/generators/interpret/migration_generator.rb +0 -25
  75. data/lib/generators/interpret/setup_generator.rb +0 -21
  76. data/lib/interpret/capistrano.rb +0 -18
  77. data/lib/interpret/controller_filter.rb +0 -12
  78. data/public/javascripts/facebox-1.3/closelabel.png +0 -0
  79. data/public/javascripts/facebox-1.3/facebox.css +0 -80
  80. data/public/javascripts/facebox-1.3/facebox.js +0 -309
  81. data/public/javascripts/facebox-1.3/loading.gif +0 -0
  82. data/public/stylesheets/interpret_live_edit_style.css +0 -38
  83. data/test_app/config/deploy.rb +0 -24
  84. data/test_app/config/initializers/rack_patch.rb +0 -13
  85. data/test_app/public/javascripts/application.js +0 -2
  86. data/test_app/public/javascripts/best_in_place.js +0 -456
  87. data/test_app/public/javascripts/facebox-1.3/closelabel.png +0 -0
  88. data/test_app/public/javascripts/facebox-1.3/facebox.css +0 -80
  89. data/test_app/public/javascripts/facebox-1.3/facebox.js +0 -309
  90. data/test_app/public/javascripts/facebox-1.3/loading.gif +0 -0
  91. data/test_app/public/javascripts/interpret.js +0 -4
  92. data/test_app/public/javascripts/rails.js +0 -134
  93. data/test_app/public/stylesheets/folder.png +0 -0
  94. data/test_app/public/stylesheets/interpret_live_edit_style.css +0 -38
  95. data/test_app/public/stylesheets/interpret_style.css +0 -535
@@ -1,535 +0,0 @@
1
- /*
2
- 960 Grid System ~ Core CSS.
3
- Learn more ~ http://960.gs/
4
-
5
- Licensed under GPL and MIT.
6
- */
7
-
8
- /* =Containers
9
- --------------------------------------------------------------------------------*/
10
-
11
- #interpret_container
12
- {
13
- width: 92%;
14
- margin-left: 4%;
15
- margin-right: 4%;
16
- }
17
-
18
- /* =Grid >> Global
19
- --------------------------------------------------------------------------------*/
20
-
21
- #interpret_container .grid_1,
22
- #interpret_container .grid_2,
23
- #interpret_container .grid_3,
24
- #interpret_container .grid_4,
25
- #interpret_container .grid_5,
26
- #interpret_container .grid_6,
27
- #interpret_container .grid_7,
28
- #interpret_container .grid_8,
29
- #interpret_container .grid_9,
30
- #interpret_container .grid_10,
31
- #interpret_container .grid_11,
32
- #interpret_container .grid_12,
33
- #interpret_container .grid_13,
34
- #interpret_container .grid_14,
35
- #interpret_container .grid_15,
36
- #interpret_container .grid_16
37
- {
38
- display: inline;
39
- float: left;
40
- margin-left: 1%;
41
- margin-right: 1%;
42
- }
43
-
44
- #interpret_container .grid_4
45
- {
46
- width: 23%;
47
- }
48
-
49
- #interpret_container .grid_8
50
- {
51
- width: 48%;
52
- }
53
-
54
- #interpret_container .grid_12
55
- {
56
- width: 73%;
57
- }
58
-
59
- #interpret_container .grid_16
60
- {
61
- width: 98%;
62
- }
63
-
64
- /* =Grid >> Children (Alpha ~ First, Omega ~ Last)
65
- --------------------------------------------------------------------------------*/
66
-
67
- .alpha
68
- {
69
- margin-left: 0;
70
- }
71
-
72
- .omega
73
- {
74
- margin-right: 0;
75
- }
76
-
77
-
78
- /* =Grid >> 16 Columns
79
- --------------------------------------------------------------------------------*/
80
-
81
- #interpret_container .grid_1
82
- {
83
- width: 4.25%;
84
- }
85
-
86
- #interpret_container .grid_2
87
- {
88
- width: 10.5%;
89
- }
90
-
91
- #interpret_container .grid_3
92
- {
93
- width: 16.75%;
94
- }
95
-
96
- #interpret_container .grid_5
97
- {
98
- width: 29.25%;
99
- }
100
-
101
- #interpret_container .grid_6
102
- {
103
- width: 35.5%;
104
- }
105
-
106
- #interpret_container .grid_7
107
- {
108
- width: 41.75%;
109
- }
110
-
111
- #interpret_container .grid_9
112
- {
113
- width: 54.25%;
114
- }
115
-
116
- #interpret_container .grid_10
117
- {
118
- width: 60.5%;
119
- }
120
-
121
- #interpret_container .grid_11
122
- {
123
- width: 66.75%;
124
- }
125
-
126
- #interpret_container .grid_13
127
- {
128
- width: 79.25%;
129
- }
130
-
131
- #interpret_container .grid_14
132
- {
133
- width: 85.5%;
134
- }
135
-
136
- #interpret_container .grid_15
137
- {
138
- width: 91.75%;
139
- }
140
-
141
- /* =Prefix Extra Space >> Global
142
- --------------------------------------------------------------------------------*/
143
-
144
- #interpret_container .prefix_4
145
- {
146
- padding-left: 25%;
147
- }
148
-
149
- #interpret_container .prefix_8
150
- {
151
- padding-left: 50%;
152
- }
153
-
154
- #interpret_container .prefix_12
155
- {
156
- padding-left: 75%;
157
- }
158
-
159
- /* =Prefix Extra Space >> 16 Columns
160
- --------------------------------------------------------------------------------*/
161
-
162
- #interpret_container .prefix_1
163
- {
164
- padding-left: 6.25%;
165
- }
166
-
167
- #interpret_container .prefix_2
168
- {
169
- padding-left: 12.5%;
170
- }
171
-
172
- #interpret_container .prefix_3
173
- {
174
- padding-left: 18.75%;
175
- }
176
-
177
- #interpret_container .prefix_5
178
- {
179
- padding-left: 31.25%;
180
- }
181
-
182
- #interpret_container .prefix_6
183
- {
184
- padding-left: 37.5%;
185
- }
186
-
187
- #interpret_container .prefix_7
188
- {
189
- padding-left: 43.75%;
190
- }
191
-
192
- #interpret_container .prefix_9
193
- {
194
- padding-left: 56.25%;
195
- }
196
-
197
- #interpret_container .prefix_10
198
- {
199
- padding-left: 62.5%;
200
- }
201
-
202
- #interpret_container .prefix_11
203
- {
204
- padding-left: 68.75%;
205
- }
206
-
207
- #interpret_container .prefix_13
208
- {
209
- padding-left: 81.25%;
210
- }
211
-
212
- #interpret_container .prefix_14
213
- {
214
- padding-left: 87.5%;
215
- }
216
-
217
- #interpret_container .prefix_15
218
- {
219
- padding-left: 93.75%;
220
- }
221
-
222
- /* =Suffix Extra Space >> Global
223
- --------------------------------------------------------------------------------*/
224
-
225
- #interpret_container .suffix_4
226
- {
227
- padding-right: 25%;
228
- }
229
-
230
- #interpret_container .suffix_8
231
- {
232
- padding-right: 50%;
233
- }
234
-
235
- #interpret_container .suffix_12
236
- {
237
- padding-right: 75%;
238
- }
239
-
240
-
241
- /* =Suffix Extra Space >> 16 Columns
242
- --------------------------------------------------------------------------------*/
243
-
244
- #interpret_container .suffix_1
245
- {
246
- padding-right: 6.25%;
247
- }
248
-
249
- #interpret_container .suffix_2
250
- {
251
- padding-right: 16.5%;
252
- }
253
-
254
- #interpret_container .suffix_3
255
- {
256
- padding-right: 18.75%;
257
- }
258
-
259
- #interpret_container .suffix_5
260
- {
261
- padding-right: 31.25%;
262
- }
263
-
264
- #interpret_container .suffix_6
265
- {
266
- padding-right: 37.5%;
267
- }
268
-
269
- #interpret_container .suffix_7
270
- {
271
- padding-right: 43.75%;
272
- }
273
-
274
- #interpret_container .suffix_9
275
- {
276
- padding-right: 56.25%;
277
- }
278
-
279
- #interpret_container .suffix_10
280
- {
281
- padding-right: 62.5%;
282
- }
283
-
284
- #interpret_container .suffix_11
285
- {
286
- padding-right: 68.75%;
287
- }
288
-
289
- #interpret_container .suffix_13
290
- {
291
- padding-right: 81.25%;
292
- }
293
-
294
- #interpret_container .suffix_14
295
- {
296
- padding-right: 87.5%;
297
- }
298
-
299
- #interpret_container .suffix_15
300
- {
301
- padding-right: 93.75%;
302
- }
303
-
304
- /* =Clear Floated Elements
305
- --------------------------------------------------------------------------------*/
306
-
307
- /* http://sonspring.com/journal/clearing-floats */
308
-
309
- html body * span.clear,
310
- html body * div.clear,
311
- html body * li.clear,
312
- html body * dd.clear
313
- {
314
- background: none;
315
- border: 0;
316
- clear: both;
317
- display: block;
318
- float: none;
319
- font-size: 0;
320
- list-style: none;
321
- margin: 0;
322
- padding: 0;
323
- overflow: hidden;
324
- visibility: hidden;
325
- width: 0;
326
- height: 0;
327
- }
328
-
329
- /* http://www.positioniseverything.net/easyclearing.html */
330
-
331
- #interpret_container .clearfix:after
332
- {
333
- clear: both;
334
- content: '.';
335
- display: block;
336
- visibility: hidden;
337
- height: 0;
338
- }
339
-
340
- #interpret_container .clearfix
341
- {
342
- display: block;
343
- height: 1%;
344
- }
345
-
346
- #interpret_container {
347
- font-family: "Lucida Grande", Helvetica;
348
- }
349
-
350
- #interpret_container #header, .header {
351
- padding: 0 1em;
352
- margin-top: 1em;
353
- color: #FFF;
354
- background-color: #666;
355
- border-radius: 5px;
356
- }
357
-
358
- #interpret_container table {
359
- border-collapse:collapse;
360
- width: 100%;
361
- border-right: 1px solid #CCC;
362
- border-left: 1px solid #CCC;
363
- }
364
-
365
- #interpret_container td, th {
366
- color: #363636;
367
- padding: .4em;
368
- }
369
-
370
- #interpret_container td.key {
371
- width: 20%;
372
- }
373
-
374
- #interpret_container td.content {
375
- text-align:center;
376
- width: 80%;
377
- }
378
-
379
- #interpret_container tr {
380
- border-bottom:1px solid #CCC;
381
- cursor: hand;
382
- cursor: pointer;
383
- }
384
-
385
- #interpret_container tr:hover {
386
- background-color: #DDD;
387
- -moz-transition: background .4s linear;
388
- -o-transition: background .4s linear;
389
- -webkit-transition: background .4s linear;
390
- }
391
-
392
- #interpret_container tr.header {
393
- background-color: #555;
394
- color: white;
395
- height: 2em;
396
- cursor: default;
397
- }
398
- #interpret_container tr.header:hover {
399
- background: #555;
400
- -moz-transition: none;
401
- -o-transition: none;
402
- -webkit-transition: none;
403
- height: 2em;
404
- }
405
- #interpret_container tr.header th {;
406
- color: #EEE;
407
- }
408
-
409
- #interpret_container tbody td a {
410
- color:#363636;
411
- text-decoration:none;
412
- }
413
-
414
- #interpret_container .menu {
415
- margin-top: 10px;
416
- }
417
-
418
- #interpret_container .menu a.current {
419
- font-weight: bold;
420
- }
421
-
422
- /* Search Page */
423
-
424
- #interpret_container #search {
425
- border: 1px solid #CCC;
426
- padding-left: 3em;
427
- }
428
- #interpret_container #search label {
429
- font-size: 1.4em;
430
- }
431
-
432
- #interpret_container #search input {
433
- width: 40%;
434
- font-size: 1.2em;
435
- height: 2em;
436
- margin: 1em 0;
437
- border: .2em solid #CCC;
438
- padding-left: .4em;
439
- }
440
-
441
- #interpret_container #search input:focus {
442
- border: .2em solid #555;
443
- }
444
-
445
- #interpret_container #search input[type="submit"] {
446
- width: 15em;
447
- margin-top: 2em;
448
- margin-left: 4%;
449
- }
450
-
451
- #interpret_container #search input[type="submit"]:hover {
452
- background-color: #444;
453
- color: #FFF;
454
- cursor: hand;
455
- cursor: pointer;
456
- }
457
-
458
- /* Sidebar for Search page */
459
-
460
- #interpret_container #side_search {
461
- border: 1px solid #CCC;
462
- padding: .4em 0 .4em .8em;
463
- }
464
- #interpret_container #side_search label {
465
- font-size: .8em;
466
- }
467
-
468
- #interpret_container #side_search input {
469
- width: 90%;
470
- font-size: .9em;
471
- height: 1.5em;
472
- margin: .5em 0;
473
- border: .2em solid #CCC;
474
- padding: .2em;
475
- }
476
-
477
- #interpret_container #side_search input:focus {
478
- border: .2em solid #555;
479
- }
480
-
481
- #interpret_container #side_search input[type="submit"] {
482
- width: 94%;
483
- margin-top: 1.2em;
484
- height: 2em;
485
- }
486
-
487
- #interpret_container #side_search input[type="submit"]:hover {
488
- background-color: #444;
489
- color: #FFF;
490
- cursor: hand;
491
- cursor: pointer;
492
- }
493
-
494
- #interpret_container .best_in_place textarea {
495
- width: 100%;
496
- border: transparent;
497
- font-size: .9em;
498
- }
499
-
500
- #interpret_container #tree_sidebar ul{
501
- margin: 0;
502
- padding: .4em;
503
- }
504
- #interpret_container #tree_sidebar li {
505
- list-style-image: url("/stylesheets/folder.png");
506
- font-weight: normal;
507
- padding-bottom: 5px;
508
- letter-spacing: 1px;
509
- }
510
-
511
- #interpret_container #tree_sidebar a {
512
- text-decoration: none;
513
- color: #222;
514
- }
515
- #interpret_container #tree_sidebar a:hover {
516
- text-decoration: underline;
517
- }
518
-
519
- #interpret_container .interpret_flash {
520
- width: 95%;
521
- min-height: 0.8em;
522
- padding: 1em;
523
- margin-bottom: 0.5em;
524
- text-align: center;
525
- }
526
-
527
- #interpret_container .interpret_flash.notice {
528
- background-color: #BBFFBB;
529
- border: 1px solid #55FF55;
530
- }
531
- #interpret_container .interpret_flash.alert {
532
- background-color: #FFBBBB;
533
- border: 1px solid #FF5555;
534
- }
535
-