parlement 0.13 → 0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +15 -0
- data/Rakefile +1 -1
- data/app/controllers/account_controller.rb +20 -20
- data/app/controllers/application.rb +18 -17
- data/app/controllers/elt_controller.rb +92 -71
- data/app/controllers/subscriber_controller.rb +1 -1
- data/app/helpers/elt_helper.rb +2 -1
- data/app/models/elt.rb +3 -1
- data/app/models/mail.rb +0 -3
- data/app/views/_help.rhtml +2 -0
- data/app/views/account/_login.rhtml +39 -37
- data/app/views/account/_show.rhtml +24 -18
- data/app/views/elt/_choice.rhtml +22 -22
- data/app/views/elt/_elt.rhtml +73 -64
- data/app/views/elt/choices.rhtml +22 -18
- data/app/views/elt/list/_byDate.rhtml +71 -0
- data/app/views/elt/list/_byVote.rhtml +71 -0
- data/app/views/elt/{_list.rhtml → list/_children.rhtml} +3 -3
- data/app/views/{subscriber/_list.rhtml → elt/list/_subscribers.rhtml} +0 -0
- data/app/views/elt/{_listVisitors.rhtml → list/_visitors.rhtml} +0 -0
- data/app/views/elt/{_listByVote.rhtml → list/byVote.rhtml} +3 -2
- data/app/views/elt/new.rhtml +26 -11
- data/app/views/elt/show.rhtml +32 -31
- data/app/views/layouts/_title.rhtml +10 -0
- data/app/views/layouts/top.rhtml +41 -23
- data/app/views/person/_listElts.rhtml +1 -1
- data/app/views/person/show.rhtml +19 -16
- data/config/boot.rb +2 -2
- data/config/environment.rb +1 -1
- data/db/ROOT/perso.txt +214 -0
- data/db/development_structure.sql +1 -1
- data/public/javascripts/mybehaviour.js +21 -21
- data/public/javascripts/prototype.js +1 -1
- data/public/javascripts/shadedborder.js +249 -0
- data/public/stylesheets/blue.css +471 -0
- data/public/stylesheets/default.css +165 -310
- data/vendor/plugins/engines/README +2 -0
- data/vendor/plugins/engines/Rakefile +18 -0
- data/vendor/plugins/engines/lib/engines/testing.rb +0 -1
- data/vendor/plugins/engines/tasks/engines.rake +4 -2
- data/vendor/plugins/login_engine/app/controllers/user_controller.rb +2 -1
- metadata +13 -7
- data/app/views/elt/_listByDate.rhtml +0 -76
@@ -10,74 +10,32 @@ html {
|
|
10
10
|
border: none;
|
11
11
|
background: url("/images/Sleep-Deprivation-5.JPG"); }
|
12
12
|
|
13
|
-
body {
|
14
|
-
|
15
|
-
padding: 0 3%;
|
16
|
-
background: white;
|
17
|
-
font-size: smaller;
|
18
|
-
margin: 3em 4% 4% 4%; }
|
13
|
+
body { margin: 3em 3%; }
|
14
|
+
body .sb-inner, body .sb-border { background: white; }
|
19
15
|
|
20
16
|
/* _ _ _ _ _
|
21
17
|
___| | __ _ ___ ___(_) ___ | |__ | |_ _ __ ___ | |
|
22
18
|
/ __| |/ _` / __/ __| |/ __| | '_ \| __| '_ ` _ \| |
|
23
19
|
| (__| | (_| \__ \__ \ | (__ | | | | |_| | | | | | |
|
24
20
|
\___|_|\__,_|___/___/_|\___| |_| |_|\__|_| |_| |_|_| */
|
25
|
-
|
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
|
-
|
21
|
+
img { border: none; }
|
46
22
|
pre { overflow: auto; }
|
47
23
|
|
24
|
+
legend, a:link, select { color: #3b76ae; }
|
25
|
+
a:visited { color: #1b568e; }
|
26
|
+
a:hover, a:active, select:hover, input[type='Button']:hover, input[type='submit']:hover { color: purple; }
|
27
|
+
a:active, input[type='Button']:active, input[type='submit']:active { color: orange; }
|
28
|
+
a:link, a:visited { text-decoration: none; }
|
29
|
+
a:hover { text-decoration: underline; }
|
30
|
+
|
48
31
|
/* _ _
|
49
32
|
| |__ ___ __ _ __| | ___ _ __
|
50
33
|
| '_ \ / _ \/ _` |/ _` |/ _ \ '__|
|
51
34
|
| | | | __/ (_| | (_| | __/ |
|
52
35
|
|_| |_|\___|\__,_|\__,_|\___|_| */
|
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
36
|
.notice, .warning, .error {
|
78
37
|
font-weight: bolder;
|
79
|
-
text-align: center;
|
80
|
-
font-size: larger; }
|
38
|
+
text-align: center; }
|
81
39
|
.error { color: #f00; }
|
82
40
|
.notice { color: #080; }
|
83
41
|
.warning { color: #f84; }
|
@@ -88,20 +46,8 @@ a:active, input[type='Button']:active, input[type='submit']:active { color: oran
|
|
88
46
|
| | (_) | (_| | | | | |
|
89
47
|
|_|\___/ \__, |_|_| |_|
|
90
48
|
|___/ */
|
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; }
|
49
|
+
.choicesToUpdate { display: none; }
|
102
50
|
.logout {
|
103
|
-
float: right;
|
104
|
-
padding-right: 1em;
|
105
51
|
font-weight: bolder;
|
106
52
|
font-family: sans-serif; }
|
107
53
|
|
@@ -117,194 +63,162 @@ a:active, input[type='Button']:active, input[type='submit']:active { color: oran
|
|
117
63
|
.helpLink { cursor: help; }
|
118
64
|
.helpLinkClose { text-decoration: line-through; }
|
119
65
|
|
120
|
-
.
|
121
|
-
|
122
|
-
|
123
|
-
|
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
|
-
|
66
|
+
.icon {
|
67
|
+
color: orange;
|
68
|
+
font-weight: bolder; }
|
69
|
+
.icon:hover, .icon:active { color: #f0f; }
|
132
70
|
|
133
71
|
/* _ _ _
|
134
72
|
___(_) __| | ___| |__ __ _ _ __
|
135
73
|
/ __| |/ _` |/ _ \ '_ \ / _` | '__|
|
136
74
|
\__ \ | (_| | __/ |_) | (_| | |
|
137
75
|
|___/_|\__,_|\___|_.__/ \__,_|_| */
|
138
|
-
#
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
76
|
+
#sidebar {
|
77
|
+
width: 30%;
|
78
|
+
z-index: 10;
|
79
|
+
float: right;
|
80
|
+
padding: 1em;
|
81
|
+
font-size: smaller;
|
82
|
+
margin: -3em -3% 1em 1em; }
|
83
|
+
#sidebar .sb-inner, #sidebar .sb-border { background: #ddf; }
|
84
|
+
|
85
|
+
#sidebar h2 {
|
86
|
+
margin: 0;
|
87
|
+
font-style: italic;
|
88
|
+
letter-spacing: 2px;
|
89
|
+
font-variant: small-caps; }
|
90
|
+
#sidebar ul { margin: 0; }
|
91
|
+
#sidebar ul li { list-style-type: none; }
|
92
|
+
#sidebar ul li:hover { background: #ddf; }
|
93
|
+
|
146
94
|
.links {
|
147
|
-
|
148
|
-
|
149
|
-
margin-top: -3em;
|
150
|
-
height: 3em;
|
151
|
-
right: 4%; }
|
95
|
+
background: #ddf;
|
96
|
+
text-align: center; }
|
152
97
|
.links #fr {
|
153
|
-
width:
|
98
|
+
width: 0.7em;
|
154
99
|
color: white;
|
155
100
|
background: white;
|
156
|
-
border-left:
|
157
|
-
border-right:
|
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; }
|
101
|
+
border-left: 0.7em blue solid;
|
102
|
+
border-right: 0.7em red solid; }
|
173
103
|
|
174
104
|
.box {
|
175
|
-
background: #
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
.
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
font-weight: bolder;
|
186
|
-
padding: 0.3em 0.6em;
|
187
|
-
background: #3b76ae url(/images/Sleep-Deprivation-5.JPG); }
|
188
|
-
.feed {
|
189
|
-
width: 28px;
|
190
|
-
height: 28px;
|
105
|
+
background: #ccf;
|
106
|
+
margin-top: 0.5em; }
|
107
|
+
.box h3 {
|
108
|
+
margin: 0;
|
109
|
+
color: yellow;
|
110
|
+
padding: 0.2em 0.4em;
|
111
|
+
background: url("/images/Sleep-Deprivation-5.JPG"); }
|
112
|
+
.box h4 { margin: 0; }
|
113
|
+
a.feed { z-index: 10; }
|
114
|
+
a.feed img {
|
191
115
|
float: right;
|
192
|
-
margin:
|
193
|
-
.
|
194
|
-
|
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; }
|
116
|
+
margin: 0.2em 0.2em 0 0; }
|
117
|
+
.boxLineR, .boxMore { text-align: right; }
|
118
|
+
|
203
119
|
.box .filter { display: none; }
|
204
120
|
.box:hover .filter { display: inline; }
|
205
121
|
|
206
|
-
.identity form {
|
122
|
+
.identity form { margin: 0; }
|
123
|
+
.identity fieldset {
|
124
|
+
border: none;
|
125
|
+
padding: 0; }
|
207
126
|
.identity #edit, .identity iframe { display: none; }
|
208
127
|
.identity:hover #edit { display: block; }
|
209
|
-
.
|
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;
|
128
|
+
#sidebar img.avatar {
|
223
129
|
display: block;
|
224
|
-
max-width:
|
225
|
-
|
226
|
-
width: expression((offsetWidth > document.body.offsetWidth*0.3) ? "100%" : offsetWidth); }
|
227
|
-
.elt .identity img.avatar { float: left; }
|
228
|
-
|
229
|
-
#filter select {
|
230
|
-
border: none;
|
231
|
-
text-align: center; }
|
232
|
-
form#filterForm a {
|
233
|
-
font-size: larger;
|
234
|
-
font-weight: bolder; }
|
235
|
-
form#filterForm input[type='submit'] { display: none; }
|
130
|
+
max-width: 30%;
|
131
|
+
margin: 0 auto; }
|
236
132
|
|
237
|
-
#
|
238
|
-
|
239
|
-
padding: 0; }
|
240
|
-
#listByDate ul li.boxLine, #listByVote ul li.boxLine {
|
241
|
-
background: none;
|
242
|
-
border-bottom: solid 1px #fd8; }
|
243
|
-
#listByDate .created_on, #listByVote .created_on { display: none; }
|
244
|
-
#listByDate .author, #listByVote .author { font-size: smaller; }
|
245
|
-
#listByDate .result, #listByVote .result {
|
133
|
+
form#filterForm input { display: none; }
|
134
|
+
form#filterForm, form#filterForm * {
|
246
135
|
font-weight: bolder;
|
247
|
-
|
248
|
-
|
136
|
+
text-align: center;
|
137
|
+
font-size: large;
|
138
|
+
padding: 0;
|
139
|
+
margin: 0; }
|
249
140
|
|
250
|
-
|
141
|
+
#sidebar ul { padding: 0; }
|
142
|
+
#sidebar ul li.boxLine { border-bottom: solid 1px #fd8; }
|
143
|
+
#sidebar .author, .boxLineR { font-size: smaller; }
|
144
|
+
#sidebar .created_on { display: none; }
|
145
|
+
#sidebar .result { float: right; }
|
251
146
|
|
252
|
-
.
|
253
|
-
margin: 0;
|
254
|
-
padding: 0;
|
255
|
-
color: #333;
|
256
|
-
font-style: italic; }
|
147
|
+
body.anon #listVisitors, body.anon #listSubscribers { display: none; }
|
257
148
|
|
258
149
|
/* _ _
|
259
150
|
___| | |_
|
260
151
|
/ _ \ | __|
|
261
152
|
| __/ | |_
|
262
153
|
\___|_|\__| */
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
.parent {
|
271
|
-
left: 4%;
|
154
|
+
ul.top {
|
155
|
+
padding-left: 0;
|
156
|
+
margin-right: 3px;
|
157
|
+
margin-left: 1.2em; }
|
158
|
+
ul.top * {
|
159
|
+
z-index: auto;
|
160
|
+
position: auto; }
|
161
|
+
h3.parent {
|
272
162
|
margin-top: -2em;
|
273
|
-
position: absolute;
|
274
|
-
|
275
|
-
font-weight: bolder; }
|
276
|
-
.parent a:link, .parent a:visited { color: white; background: transparent; }
|
277
|
-
.parent a:hover, .parent a:active { color: #ffa500; background: transparent; }
|
163
|
+
position: absolute; }
|
164
|
+
h3.parent a:link, h3.parent a:visited { color: #ddd; }
|
278
165
|
|
279
|
-
|
280
|
-
|
281
|
-
|
166
|
+
h1, h2 { margin-top: 0em; }
|
167
|
+
h1 {
|
168
|
+
padding-top: 1em;
|
169
|
+
_padding-top: 0em; }
|
170
|
+
|
171
|
+
h1 a, h2 a {
|
172
|
+
display: block;
|
173
|
+
color: #bbd !important;
|
174
|
+
padding: 0 0.5em 0em 0.5em; }
|
175
|
+
h1 a:after, h2 a:after {
|
176
|
+
display: block;
|
177
|
+
color: #1b568e;
|
178
|
+
margin-top: -1.3em;
|
179
|
+
_margin-top: -1.2em;
|
180
|
+
margin-left: -0.1em;
|
181
|
+
content: attr(title); }
|
182
|
+
ul.top h1 a, ul.top h2 a {
|
183
|
+
border-right: solid transparent;
|
184
|
+
border-left: solid transparent;
|
185
|
+
border-bottom: solid #3b76ae; }
|
186
|
+
ul.top h1 a { border-width: 7px; }
|
187
|
+
ul.top h2 a { border-width: 3px; }
|
188
|
+
|
189
|
+
#elt_parlement > .created_on, #elt_parlement h1 a, #elt_parlement h1:after,
|
190
|
+
#elt_fr > .created_on, #elt_fr h1 a, #elt_fr h1:after {
|
191
|
+
display: none; }
|
192
|
+
|
193
|
+
ul.top li.elt {
|
282
194
|
width: 100%;
|
283
|
-
|
284
|
-
margin-top: 1px;
|
195
|
+
clear: left;
|
285
196
|
list-style-type: none;
|
286
|
-
background: url(/images/eltBackground.jng) repeat-x;
|
287
|
-
|
288
|
-
_background: none; }
|
289
|
-
|
290
|
-
.titled { margin-top: 1em; }
|
291
|
-
|
292
|
-
.author {
|
293
|
-
color: #888;
|
294
|
-
font-style: italic;
|
295
|
-
font-weight: bolder; }
|
197
|
+
background: url(/images/eltBackground.jng) repeat-x; }
|
198
|
+
ul.top li.elt.closed, ul.top > li.elt { background: none; }
|
296
199
|
|
297
200
|
.created_on {
|
298
201
|
float: right;
|
299
202
|
font-size: smaller; }
|
300
203
|
|
301
|
-
.
|
302
|
-
|
204
|
+
ul.top img.avatar {
|
205
|
+
float: left;
|
206
|
+
z-index: 10;
|
207
|
+
margin-right: 1em; }
|
208
|
+
|
209
|
+
ul.top .attachments img {
|
210
|
+
max-width: 30%;
|
211
|
+
_max-width: none;
|
212
|
+
width: expression((offsetWidth > document.body.offsetWidth*0.5) ? "50%" : offsetWidth); }
|
303
213
|
|
304
214
|
a.readMore { font-style: italic; }
|
305
215
|
div.tooLarge { display: none; }
|
306
|
-
|
307
|
-
|
216
|
+
ul.top > li.elt > p > a.readMore { display: none; }
|
217
|
+
ul.top > li.elt > div.tooLarge { display: block; }
|
218
|
+
|
219
|
+
.nav {
|
220
|
+
text-align: center;
|
221
|
+
list-style-type: none; }
|
308
222
|
|
309
223
|
/* _
|
310
224
|
_ __ ___ _ __ | |_ _
|
@@ -315,21 +229,13 @@ body > ul > .elt > form div.tooLarge { display: block; }
|
|
315
229
|
blockquote {
|
316
230
|
margin: 0 1%;
|
317
231
|
padding: 0 1%;
|
232
|
+
background: #ddd;
|
318
233
|
font-size: smaller;
|
319
|
-
border-left: solid 4px #aaf;
|
320
|
-
background: #ddd url("/images/eltBackground.jng") repeat-x;
|
321
|
-
/* So that IE doesn't go into some strange mode */
|
322
|
-
_background: #ddd; }
|
323
|
-
|
324
|
-
blockquote > p {
|
325
|
-
margin: 0;
|
326
|
-
padding: 0.5em 0; }
|
234
|
+
border-left: solid 4px #aaf; }
|
327
235
|
|
328
236
|
/* To make sure it is still readable */
|
329
237
|
blockquote blockquote blockquote { font-size: x-small; }
|
330
238
|
|
331
|
-
.eltQuickAdd { margin-left: 1em; }
|
332
|
-
|
333
239
|
/* _ _
|
334
240
|
___| |__ ___ (_) ___ ___
|
335
241
|
/ __| '_ \ / _ \| |/ __/ _ \
|
@@ -337,35 +243,30 @@ blockquote blockquote blockquote { font-size: x-small; }
|
|
337
243
|
\___|_| |_|\___/|_|\___\___| */
|
338
244
|
.choice {
|
339
245
|
float: right;
|
340
|
-
|
246
|
+
font-size: large;
|
341
247
|
margin-top: -1.2em;
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
/* Important, no "display: none", or IE can't manage event */
|
347
|
-
.choice input {
|
248
|
+
position: relative;
|
249
|
+
font-weight: bolder; }
|
250
|
+
body.anon .choice .con, body.anon .choice .result, body.anon .choice .pro {
|
251
|
+
/* Not really hidden, or it would mess up with avatar sizing */
|
348
252
|
position: absolute;
|
349
|
-
left: -
|
350
|
-
.choice
|
351
|
-
.choice
|
352
|
-
.
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
.choice
|
357
|
-
.
|
358
|
-
|
253
|
+
margin-left: -200em; }
|
254
|
+
.choice .result { display: none; }
|
255
|
+
.choice .result.selected { display: inline; }
|
256
|
+
.choice img {
|
257
|
+
border: solid 3px transparent;
|
258
|
+
_border-color: white;
|
259
|
+
margin-bottom: -6px; }
|
260
|
+
.choice img:hover { border-color: cyan; }
|
261
|
+
.choice img.selected { border-color: yellow; }
|
262
|
+
.choice img.selected:hover { border-color: magenta; }
|
263
|
+
table.choices {
|
359
264
|
z-index: 10;
|
265
|
+
right: -10px;
|
360
266
|
background: white;
|
267
|
+
margin-top: -1.5em;
|
361
268
|
position: absolute;
|
362
|
-
border:
|
363
|
-
.closeChoices {
|
364
|
-
font-size: larger;
|
365
|
-
font-weight: bolder;
|
366
|
-
font-family: sans-serif; }
|
367
|
-
.choices .created_on, .choices caption { display: none; }
|
368
|
-
.personalChoice { display: inline; margin-right: 1em; }
|
269
|
+
border: outset 3px blue; }
|
369
270
|
|
370
271
|
/* _
|
371
272
|
___ _ _| |__
|
@@ -376,31 +277,19 @@ label.selected, .choice label:hover { border: solid 3px; }
|
|
376
277
|
margin-left: 1%;
|
377
278
|
padding-left: 1%;
|
378
279
|
border-left: solid 0.4em #ffc;
|
379
|
-
border-bottom: solid 1px #
|
280
|
+
border-bottom: solid 1px #ffc; }
|
380
281
|
|
381
|
-
.
|
382
|
-
display: block;
|
383
|
-
margin-left: 3%; }
|
282
|
+
body.logged .for_anon { display: none; }
|
384
283
|
|
385
|
-
|
386
|
-
|
387
|
-
list-style-type: none; }
|
388
|
-
|
389
|
-
.icon {
|
390
|
-
color: orange;
|
391
|
-
margin-right: 0.5em;
|
392
|
-
font-weight: bolder;
|
393
|
-
letter-spacing: -5px;
|
394
|
-
text-decoration: none; }
|
395
|
-
.icon:hover, .icon:active { color: #f0f; }
|
284
|
+
.position { display: none; }
|
285
|
+
ul.top label { font-weight: bolder; }
|
396
286
|
|
397
|
-
.
|
287
|
+
li.elt textarea { width: 64%; }
|
288
|
+
li.elt li.elt textarea { width: 62%; }
|
289
|
+
li.elt li.elt li.elt textarea { width: 60%; }
|
290
|
+
form:hover .position { display: inline; }
|
398
291
|
|
399
|
-
.
|
400
|
-
background: url("/images/eltBackground.jng") repeat-x;
|
401
|
-
/* So that IE doesn't go into some strange mode */
|
402
|
-
_background: none; }
|
403
|
-
.eltNewButtons { text-align: right; }
|
292
|
+
.eltNewButtons { text-align: center; }
|
404
293
|
|
405
294
|
/* _
|
406
295
|
__ _____ _ __ ___(_) ___ _ __
|
@@ -410,56 +299,22 @@ li.pager {
|
|
410
299
|
.version {
|
411
300
|
/* To make sure the sidebar is not the last element at the bottom */
|
412
301
|
clear: right;
|
413
|
-
text-align:
|
414
|
-
.version > * + * { display: none; }
|
415
|
-
.version:hover > * + * { display: inline; }
|
416
|
-
.version > a {
|
417
|
-
color: #aaa;
|
418
|
-
font-size: smaller; }
|
302
|
+
text-align: right; }
|
419
303
|
|
420
304
|
/* _ _
|
421
305
|
| | ___ __ ___ | |__
|
422
306
|
| |/ / '_ \ / _ \| '_ \
|
423
307
|
| <| | | | (_) | |_) |
|
424
308
|
|_|\_\_| |_|\___/|_.__/ */
|
425
|
-
.
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
background: white; }
|
431
|
-
.knobOpened {;
|
432
|
-
margin-left: -16px;
|
433
|
-
position: absolute; }
|
434
|
-
.knobOpened:link, .knobOpened:visited, .knobClosed:link, .knobClosed:visited {
|
435
|
-
color: orange; }
|
436
|
-
|
437
|
-
.closed .knobOpened, .elt .knobClosed,
|
438
|
-
.closed form, .closed ul.eltSub, .closed ul.eltNew, .closed .eltSubsClose { display: none; }
|
439
|
-
|
440
|
-
.closed, .closed .knobClosed {
|
441
|
-
position: relative;
|
309
|
+
.closed, .closed a.knobClosed { display: inline; }
|
310
|
+
a.knobClosed, .closed * { display: none; }
|
311
|
+
a.knobOpened { position: absolute; }
|
312
|
+
a.knobOpened, a.knobClosed {
|
313
|
+
border: solid thin #fd8;
|
442
314
|
background: white;
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
/* _ _
|
447
|
-
_ __ ___ ___ ____ | |__ ___ _ __ __| | ___ _ __
|
448
|
-
| '_ ` _ \ / _ \_ /____| '_ \ / _ \| '__/ _` |/ _ \ '__|
|
449
|
-
| | | | | | (_) / /_____| |_) | (_) | | | (_| | __/ |
|
450
|
-
|_| |_| |_|\___/___| |_.__/ \___/|_| \__,_|\___|_| */
|
451
|
-
body { -moz-border-radius: 1em 0 1em 1em; }
|
452
|
-
input, textarea {
|
453
|
-
-moz-border-radius: 1em 0 0 1em; }
|
454
|
-
input[type='button'], input[type='submit'], blockquote {
|
455
|
-
-moz-border-radius: 0 1em 1em 0; }
|
456
|
-
.links { -moz-border-radius: 1em 1em 0 0; }
|
457
|
-
.box, .sidebar, .choices { -moz-border-radius: 0 0 1em 1em; }
|
458
|
-
.login { -moz-border-radius: 1em; }
|
459
|
-
.eltSub { -moz-border-radius: 0 0 0 1em; }
|
460
|
-
.choice label { -moz-border-radius: 1em; }
|
315
|
+
color: orange;
|
316
|
+
left: -16px; }
|
461
317
|
|
462
318
|
/* _
|
463
319
|
|_)_.._| _ ._ _ _ .__|_
|
464
320
|
| (_|| |(/_| | |(/_| ||_ */
|
465
|
-
|
@@ -30,6 +30,8 @@ Include these files in an <tt>app</tt> directory just like you would in a normal
|
|
30
30
|
|
31
31
|
Model code can similarly be placed in an <tt>app/models/</tt> directory. Unfortunately, it's not possible to automatically override methods within a model; if your application needs to change the way a model behaves, consider creating a subclass, or replacing the model entirely within your application's <tt>app/models/</tt> directory. See Engines::RailsExtensions::Dependencies for more information.
|
32
32
|
|
33
|
+
IMPORTANT NOTE: when you load code from within plugins, it is typically not handled well by Rails in terms of unloading and reloading changes. Look here for more information - http://rails-engines.org/development/common-issues-when-overloading-code-from-plugins/
|
34
|
+
|
33
35
|
=== Routes
|
34
36
|
|
35
37
|
Include your route declarations in a <tt>routes.rb</tt> file at the root of your plugins, e.g.:
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/rdoctask'
|
3
|
+
require 'tmpdir'
|
3
4
|
|
4
5
|
task :default => :doc
|
5
6
|
|
@@ -11,4 +12,21 @@ Rake::RDocTask.new(:doc) do |doc|
|
|
11
12
|
doc.rdoc_files.include("README", "UPGRADING", "CHANGELOG", "MIT-LICENSE")
|
12
13
|
doc.rdoc_files.include('lib/**/*.rb')
|
13
14
|
doc.options << '--line-numbers' << '--inline-source'
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'Run the engine plugin tests within their test harness'
|
18
|
+
task :cruise do
|
19
|
+
# checkout the project into a temporary directory
|
20
|
+
version = "rails_1.2"
|
21
|
+
test_dir = "#{Dir.tmpdir}/engines_plugin_#{version}_test"
|
22
|
+
puts "Checking out test harness for #{version} into #{test_dir}"
|
23
|
+
`svn co http://svn.rails-engines.org/test/engines/#{version} #{test_dir}`
|
24
|
+
|
25
|
+
# run all the tests in this project
|
26
|
+
Dir.chdir(test_dir)
|
27
|
+
load 'Rakefile'
|
28
|
+
puts "Running all tests in test harness"
|
29
|
+
['db:migrate', 'test', 'test:plugins'].each do |t|
|
30
|
+
Rake::Task[t].invoke
|
31
|
+
end
|
14
32
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# This code lets us redefine existing Rake tasks, which is
|
1
|
+
# This code lets us redefine existing Rake tasks, which is extremely
|
2
2
|
# handy for modifying existing Rails rake tasks.
|
3
3
|
# Credit for this snippet of code goes to Jeremy Kemper
|
4
4
|
# http://pastie.caboo.se/9620
|
@@ -70,7 +70,9 @@ namespace :doc do
|
|
70
70
|
options << '-T html'
|
71
71
|
|
72
72
|
# Include every file in the plugin's code_paths (see Plugin#code_paths)
|
73
|
-
|
73
|
+
if Rails.plugins[plugin]
|
74
|
+
files.include("#{plugin_base}/{#{Rails.plugins[plugin].code_paths.join(",")}}/**/*.rb")
|
75
|
+
end
|
74
76
|
if File.exists?("#{plugin_base}/README")
|
75
77
|
files.include("#{plugin_base}/README")
|
76
78
|
options << "--main '#{plugin_base}/README'"
|