parlement 0.13 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/CHANGES +15 -0
  2. data/Rakefile +1 -1
  3. data/app/controllers/account_controller.rb +20 -20
  4. data/app/controllers/application.rb +18 -17
  5. data/app/controllers/elt_controller.rb +92 -71
  6. data/app/controllers/subscriber_controller.rb +1 -1
  7. data/app/helpers/elt_helper.rb +2 -1
  8. data/app/models/elt.rb +3 -1
  9. data/app/models/mail.rb +0 -3
  10. data/app/views/_help.rhtml +2 -0
  11. data/app/views/account/_login.rhtml +39 -37
  12. data/app/views/account/_show.rhtml +24 -18
  13. data/app/views/elt/_choice.rhtml +22 -22
  14. data/app/views/elt/_elt.rhtml +73 -64
  15. data/app/views/elt/choices.rhtml +22 -18
  16. data/app/views/elt/list/_byDate.rhtml +71 -0
  17. data/app/views/elt/list/_byVote.rhtml +71 -0
  18. data/app/views/elt/{_list.rhtml → list/_children.rhtml} +3 -3
  19. data/app/views/{subscriber/_list.rhtml → elt/list/_subscribers.rhtml} +0 -0
  20. data/app/views/elt/{_listVisitors.rhtml → list/_visitors.rhtml} +0 -0
  21. data/app/views/elt/{_listByVote.rhtml → list/byVote.rhtml} +3 -2
  22. data/app/views/elt/new.rhtml +26 -11
  23. data/app/views/elt/show.rhtml +32 -31
  24. data/app/views/layouts/_title.rhtml +10 -0
  25. data/app/views/layouts/top.rhtml +41 -23
  26. data/app/views/person/_listElts.rhtml +1 -1
  27. data/app/views/person/show.rhtml +19 -16
  28. data/config/boot.rb +2 -2
  29. data/config/environment.rb +1 -1
  30. data/db/ROOT/perso.txt +214 -0
  31. data/db/development_structure.sql +1 -1
  32. data/public/javascripts/mybehaviour.js +21 -21
  33. data/public/javascripts/prototype.js +1 -1
  34. data/public/javascripts/shadedborder.js +249 -0
  35. data/public/stylesheets/blue.css +471 -0
  36. data/public/stylesheets/default.css +165 -310
  37. data/vendor/plugins/engines/README +2 -0
  38. data/vendor/plugins/engines/Rakefile +18 -0
  39. data/vendor/plugins/engines/lib/engines/testing.rb +0 -1
  40. data/vendor/plugins/engines/tasks/engines.rake +4 -2
  41. data/vendor/plugins/login_engine/app/controllers/user_controller.rb +2 -1
  42. metadata +13 -7
  43. data/app/views/elt/_listByDate.rhtml +0 -76
@@ -0,0 +1,471 @@
1
+ /*
2
+ ____ _ _
3
+ | _ \ __ _ _ __| | ___ _ __ ___ ___ _ __ | |_
4
+ | |_) / _` | '__| |/ _ \ '_ ` _ \ / _ \ '_ \| __|
5
+ | __/ (_| | | | | __/ | | | | | __/ | | | |_
6
+ |_| \__,_|_| |_|\___|_| |_| |_|\___|_| |_|\__|
7
+ */
8
+
9
+ html {
10
+ border: none;
11
+ background: url("/images/Sleep-Deprivation-5.JPG"); }
12
+
13
+ body {
14
+ color: black;
15
+ padding: 0 3%;
16
+ background: white;
17
+ font-size: smaller;
18
+ margin: 3em 4% 4% 4%; }
19
+
20
+ /* _ _ _ _ _
21
+ ___| | __ _ ___ ___(_) ___ | |__ | |_ _ __ ___ | |
22
+ / __| |/ _` / __/ __| |/ __| | '_ \| __| '_ ` _ \| |
23
+ | (__| | (_| \__ \__ \ | (__ | | | | |_| | | | | | |
24
+ \___|_|\__,_|___/___/_|\___| |_| |_|\__|_| |_| |_|_| */
25
+ form {
26
+ margin: 0;
27
+ padding: 0;
28
+ display: inline; }
29
+
30
+ input, textarea {
31
+ color: inherit;
32
+ max-width: 100%;
33
+ font-size: inherit;
34
+ font-weight: inherit;
35
+ background: transparent; }
36
+
37
+ img {
38
+ border: none;
39
+ max-width: 50%;
40
+ _max-width: none;
41
+ width: expression((offsetWidth > document.body.offsetWidth*0.5) ? "50%" : offsetWidth); }
42
+ textarea { width: 60%; }
43
+ select { background: transparent; }
44
+ input[type='button'], input[type='submit'] { font-weight: bolder; }
45
+
46
+ pre { overflow: auto; }
47
+
48
+ /* _ _
49
+ | |__ ___ __ _ __| | ___ _ __
50
+ | '_ \ / _ \/ _` |/ _` |/ _ \ '__|
51
+ | | | | __/ (_| | (_| | __/ |
52
+ |_| |_|\___|\__,_|\__,_|\___|_| */
53
+ h1, h2 {
54
+ margin: 0;
55
+ padding: 1%;
56
+ font-weight: bolder; }
57
+ body > ul > .elt > * > h1 { letter-spacing: 0.2em; }
58
+ .elt .elt h1 {
59
+ font-size: larger;
60
+ _background: #eef; }
61
+ h3 { margin: 0px; }
62
+
63
+ h1 input {
64
+ width: 90%;
65
+ _font-size: medium;
66
+ _font-weight: bolder; }
67
+
68
+ #elt_parlement > form > .created_on, #elt_parlement > .knobOpened,
69
+ #elt_parlement > * > h1 a, #elt_fr > form > .created_on, #elt_fr > .knobOpened,
70
+ #elt_fr > * > h1 a { display: none; }
71
+
72
+ legend, a:link, select, input[type='Button'], input[type='submit'] { color: #3b76ae; }
73
+ a:visited { color: #1b568e; }
74
+ a:hover, a:active, select:hover, input[type='Button']:hover, input[type='submit']:hover { color: purple; }
75
+ a:active, input[type='Button']:active, input[type='submit']:active { color: orange; }
76
+
77
+ .notice, .warning, .error {
78
+ font-weight: bolder;
79
+ text-align: center;
80
+ font-size: larger; }
81
+ .error { color: #f00; }
82
+ .notice { color: #080; }
83
+ .warning { color: #f84; }
84
+
85
+ /* _ _
86
+ | | ___ __ _(_)_ __
87
+ | |/ _ \ / _` | | '_ \
88
+ | | (_) | (_| | | | | |
89
+ |_|\___/ \__, |_|_| |_|
90
+ |___/ */
91
+ .choicesToUpdate {
92
+ font-size: smaller;
93
+ color: #ddd;
94
+ float: left; }
95
+ .login {
96
+ color: white;
97
+ margin: 0.5em;
98
+ padding: 0.3em;
99
+ background: red;
100
+ font-size: larger;
101
+ font-weight: bolder; }
102
+ .logout {
103
+ float: right;
104
+ padding-right: 1em;
105
+ font-weight: bolder;
106
+ font-family: sans-serif; }
107
+
108
+ /* _ _
109
+ | |__ ___| |_ __
110
+ | '_ \ / _ \ | '_ \
111
+ | | | | __/ | |_) |
112
+ |_| |_|\___|_| .__/
113
+ |_| */
114
+ .helpLink, .helpLinkClose, .subscribeLink {
115
+ font-weight: bolder;
116
+ font-size: larger; }
117
+ .helpLink { cursor: help; }
118
+ .helpLinkClose { text-decoration: line-through; }
119
+
120
+ .help {
121
+ padding: 1em;
122
+ text-align: left; }
123
+ h1 .help {
124
+ font-size: smaller;
125
+ font-weight: normal; }
126
+
127
+ .helpTitle, .helpTitle:link, .helpTitle:visited {
128
+ font-weight: bolder;
129
+ font-size: larger; }
130
+
131
+
132
+
133
+ /* _ _ _
134
+ ___(_) __| | ___| |__ __ _ _ __
135
+ / __| |/ _` |/ _ \ '_ \ / _` | '__|
136
+ \__ \ | (_| | __/ |_) | (_| | |
137
+ |___/_|\__,_|\___|_.__/ \__,_|_| */
138
+ #spinner img {
139
+ position: absolute;
140
+ right: 4.5%;
141
+ top: 3em; }
142
+ .sidebar, .links {
143
+ text-align: center;
144
+ background: white;
145
+ width: 30%; }
146
+ .links {
147
+ position: absolute;
148
+ background: white;
149
+ margin-top: -3em;
150
+ height: 3em;
151
+ right: 4%; }
152
+ .links #fr {
153
+ width: 1em;
154
+ color: white;
155
+ background: white;
156
+ border-left: 1em blue solid;
157
+ border-right: 1em red solid; }
158
+ .sidebar {
159
+ float: right;
160
+ padding-left: 2%;
161
+ margin-right: -1%; }
162
+ /* Big hack for ie */
163
+ * html .links {
164
+ width: 33%;
165
+ margin-right: -1px; }
166
+
167
+ .title {
168
+ display: block;
169
+ font-size: larger;
170
+ font-weight: bolder;
171
+ letter-spacing: 0.5em; }
172
+ .signets { font-size: smaller; }
173
+
174
+ .box {
175
+ background: #ccc;
176
+ font-size: smaller;
177
+ margin-bottom: 1em;
178
+ padding-bottom: 0.5em;
179
+ border: outset thin #ccc;
180
+ border-top: none; }
181
+ .boxTitle {
182
+ color: #ff4;
183
+ text-align: left;
184
+ font-size: medium;
185
+ font-weight: bolder;
186
+ padding: 0.1em 0.6em;
187
+ background: #3b76ae url(/images/Sleep-Deprivation-5.JPG); }
188
+ .feed {
189
+ width: 14px;
190
+ height: 14px;
191
+ float: right;
192
+ margin: 5px; }
193
+ .feed img { max-width: 100%; }
194
+ .boxLine {
195
+ text-align: left;
196
+ margin-left: 1em; }
197
+ .boxLineR {
198
+ text-align: right;
199
+ padding-right: 1em; }
200
+ .boxMore {
201
+ text-align: right;
202
+ font-weight: bolder; }
203
+ .box .filter { display: none; }
204
+ .box:hover .filter { display: inline; }
205
+
206
+ .identity form { display: block; }
207
+ .identity #edit, .identity iframe { display: none; }
208
+ .identity:hover #edit { display: block; }
209
+ .identity fieldset#edit {
210
+ border: solid thin yellow;
211
+ padding: 0.5em 0;
212
+ margin: 0.5em 0; }
213
+ .identity fieldset#edit label { color: #3b76ae; }
214
+ img.avatar {
215
+ float: left;
216
+ width: auto;
217
+ max-width: 30%;
218
+ _max-width: none;
219
+ margin-right: 1em; }
220
+ .identity img.avatar {
221
+ float: none;
222
+ margin: 0 auto;
223
+ display: block;
224
+ max-width: 90%;
225
+ _max-width: none;
226
+ width: expression((offsetWidth > document.body.offsetWidth*0.3) ? "100%" : offsetWidth); }
227
+ .elt .identity img.avatar { float: left; }
228
+
229
+ #filter {
230
+ font-size: larger;
231
+ font-weight: bolder;
232
+ padding-bottom: 0.1em; }
233
+ #filter select {
234
+ border: none;
235
+ font-size: larger;
236
+ text-align: center;
237
+ font-weight: bolder; }
238
+ form#filterForm a {
239
+ font-size: larger;
240
+ font-weight: bolder; }
241
+ form#filterForm input[type='submit'] { display: none; }
242
+
243
+ #listByDate ul, #listByVote ul {
244
+ margin: 0 3px;
245
+ padding: 0; }
246
+ #listByDate ul li.boxLine, #listByVote ul li.boxLine {
247
+ background: none;
248
+ border-bottom: solid 1px #fd8; }
249
+ #listByDate .created_on, #listByVote .created_on { display: none; }
250
+ #listByDate .author, #listByVote .author { font-size: smaller; }
251
+ #listByDate .result, #listByVote .result {
252
+ font-weight: bolder;
253
+ float: right;
254
+ color: blue; }
255
+
256
+ div#listSubscribers .boxLineR { font-size: smaller; }
257
+
258
+ .box h4 {
259
+ margin: 0;
260
+ padding: 0;
261
+ color: #333;
262
+ font-style: italic; }
263
+
264
+ /* _ _
265
+ ___| | |_
266
+ / _ \ | __|
267
+ | __/ | |_
268
+ \___|_|\__| */
269
+ body > ul {
270
+ margin: 0;
271
+ padding: 0;
272
+ background: white; }
273
+
274
+ body > ul > .elt { background: none; }
275
+
276
+ .parent {
277
+ left: 4%;
278
+ margin-top: -2em;
279
+ position: absolute;
280
+ font-style: italic;
281
+ font-weight: bolder; }
282
+ .parent a:link, .parent a:visited { color: white; background: transparent; }
283
+ .parent a:hover, .parent a:active { color: #ffa500; background: transparent; }
284
+
285
+ .elt {
286
+ margin: 0;
287
+ clear: left;
288
+ width: 100%;
289
+ _width: auto;
290
+ margin-top: 1px;
291
+ list-style-type: none;
292
+ background: url(/images/eltBackground.jng) repeat-x;
293
+ /* So that IE doesn't go into some strange mode */
294
+ _background: none; }
295
+
296
+ .titled { margin-top: 1em; }
297
+
298
+ .author {
299
+ color: #888;
300
+ font-style: italic;
301
+ font-weight: bolder; }
302
+
303
+ .created_on {
304
+ float: right;
305
+ font-size: smaller; }
306
+
307
+ .position { display: none; }
308
+ #form:hover .position { display: inline; }
309
+
310
+ a.readMore { font-style: italic; }
311
+ div.tooLarge { display: none; }
312
+ body > ul > .elt > form a.readMore { display: none; }
313
+ body > ul > .elt > form div.tooLarge { display: block; }
314
+
315
+ /* _
316
+ _ __ ___ _ __ | |_ _
317
+ | '__/ _ \ '_ \| | | | |
318
+ | | | __/ |_) | | |_| |
319
+ |_| \___| .__/|_|\__, |
320
+ |_| |___/ */
321
+ blockquote {
322
+ margin: 0 1%;
323
+ padding: 0 1%;
324
+ font-size: smaller;
325
+ border-left: solid 4px #aaf;
326
+ background: #ddd url("/images/eltBackground.jng") repeat-x;
327
+ /* So that IE doesn't go into some strange mode */
328
+ _background: #ddd; }
329
+
330
+ blockquote > p {
331
+ margin: 0;
332
+ padding: 0.5em 0; }
333
+
334
+ /* To make sure it is still readable */
335
+ blockquote blockquote blockquote { font-size: x-small; }
336
+
337
+ .eltQuickAdd { margin-left: 1em; }
338
+
339
+ /* _ _
340
+ ___| |__ ___ (_) ___ ___
341
+ / __| '_ \ / _ \| |/ __/ _ \
342
+ | (__| | | | (_) | | (_| __/
343
+ \___|_| |_|\___/|_|\___\___| */
344
+ .choice {
345
+ float: right;
346
+ text-align: right;
347
+ margin-top: -1.2em;
348
+ padding-right: 64px;
349
+ _padding-right: 0px;
350
+ white-space: nowrap; }
351
+ .choice form { display: inline; }
352
+ /* Important, no "display: none", or IE can't manage event */
353
+ .choice input {
354
+ position: absolute;
355
+ left: -100em; }
356
+ .choice label { cursor: pointer; }
357
+ .choice img { margin-bottom: -4px; }
358
+ .result { color: blue; }
359
+ label.selected, .choice label:hover { border: solid 3px; }
360
+ .choice label:hover { border-color: cyan; }
361
+ .choice label.selected { border-color: yellow; }
362
+ .choice label.selected:hover { border-color: magenta; }
363
+ .choices {
364
+ right: 0;
365
+ z-index: 10;
366
+ background: white;
367
+ position: absolute;
368
+ border: solid 5px pink; }
369
+ .closeChoices {
370
+ font-size: larger;
371
+ font-weight: bolder;
372
+ font-family: sans-serif; }
373
+ .choices .created_on, .choices caption { display: none; }
374
+ .personalChoice { display: inline; margin-right: 1em; }
375
+
376
+ /* _
377
+ ___ _ _| |__
378
+ / __| | | | '_ \
379
+ \__ \ |_| | |_) |
380
+ |___/\__,_|_.__/ */
381
+ .eltSub, .eltNew {
382
+ margin-left: 1%;
383
+ padding-left: 1%;
384
+ border-left: solid 0.4em #ffc;
385
+ border-bottom: solid 1px #fd8; }
386
+
387
+ .eltMore {
388
+ display: block;
389
+ margin-left: 3%; }
390
+
391
+ li.pager {
392
+ text-align: center;
393
+ list-style-type: none; }
394
+
395
+ .icon {
396
+ color: orange;
397
+ margin-right: 0.5em;
398
+ font-weight: bolder;
399
+ letter-spacing: -5px;
400
+ text-decoration: none; }
401
+ .icon:hover, .icon:active { color: #f0f; }
402
+
403
+ .pageCount { margin: 0 2em; }
404
+
405
+ .eltNew {
406
+ background: url("/images/eltBackground.jng") repeat-x;
407
+ /* So that IE doesn't go into some strange mode */
408
+ _background: none; }
409
+ .eltNewButtons { text-align: right; }
410
+
411
+ /* _
412
+ __ _____ _ __ ___(_) ___ _ __
413
+ \ \ / / _ \ '__/ __| |/ _ \| '_ \
414
+ \ V / __/ | \__ \ | (_) | | | |
415
+ \_/ \___|_| |___/_|\___/|_| |_| */
416
+ .version {
417
+ /* To make sure the sidebar is not the last element at the bottom */
418
+ clear: right;
419
+ text-align: center; }
420
+ .version > * + * { display: none; }
421
+ .version:hover > * + * { display: inline; }
422
+ .version > a {
423
+ color: #aaa;
424
+ font-size: smaller; }
425
+
426
+ /* _ _
427
+ | | ___ __ ___ | |__
428
+ | |/ / '_ \ / _ \| '_ \
429
+ | <| | | | (_) | |_) |
430
+ |_|\_\_| |_|\___/|_.__/ */
431
+ .knobOpened, .knobClosed {
432
+ font-family: sans-serif;
433
+ border: solid 1px #fd8;
434
+ text-decoration: none;
435
+ font-weight: bolder;
436
+ background: white; }
437
+ .knobOpened {
438
+ margin-left: -16px;
439
+ position: absolute; }
440
+ .knobOpened:link, .knobOpened:visited, .knobClosed:link, .knobClosed:visited {
441
+ color: orange; }
442
+
443
+ .closed .knobOpened, .elt .knobClosed,
444
+ .closed form, .closed ul.eltSub, .closed ul.eltNew, .closed .eltSubsClose { display: none; }
445
+
446
+ .closed, .closed .knobClosed {
447
+ position: relative;
448
+ background: white;
449
+ display: inline;
450
+ right: 8px; }
451
+
452
+ /* _ _
453
+ _ __ ___ ___ ____ | |__ ___ _ __ __| | ___ _ __
454
+ | '_ ` _ \ / _ \_ /____| '_ \ / _ \| '__/ _` |/ _ \ '__|
455
+ | | | | | | (_) / /_____| |_) | (_) | | | (_| | __/ |
456
+ |_| |_| |_|\___/___| |_.__/ \___/|_| \__,_|\___|_| */
457
+ body { -moz-border-radius: 1em 0 1em 1em; }
458
+ input, textarea {
459
+ -moz-border-radius: 1em 0 0 1em; }
460
+ input[type='button'], input[type='submit'], blockquote {
461
+ -moz-border-radius: 0 1em 1em 0; }
462
+ .links { -moz-border-radius: 1em 1em 0 0; }
463
+ .box, .sidebar, .choices { -moz-border-radius: 0 0 1em 1em; }
464
+ .login { -moz-border-radius: 1em; }
465
+ .eltSub { -moz-border-radius: 0 0 0 1em; }
466
+ .choice label { -moz-border-radius: 1em; }
467
+
468
+ /* _
469
+ |_)_.._| _ ._ _ _ .__|_
470
+ | (_|| |(/_| | |(/_| ||_ */
471
+