parlement 0.1 → 0.2
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 +12 -701
- data/Rakefile +61 -14
- data/app/controllers/elt_controller.rb +3 -3
- data/app/controllers/person_controller.rb +13 -0
- data/app/helpers/person_helper.rb +2 -0
- data/app/views/account/_login.rhtml +1 -1
- data/app/views/account/_show.rhtml +7 -10
- data/app/views/elt/_elt.rhtml +32 -27
- data/app/views/elt/_list.rhtml +1 -1
- data/app/views/elt/new.rhtml +2 -2
- data/app/views/elt/show.rhtml +1 -11
- data/app/views/layouts/top.rhtml +5 -11
- data/app/views/person/show.rhtml +40 -0
- data/config/environment.rb +4 -1
- data/config/routes.rb +1 -0
- data/db/ROOT/CV.txt +2 -2
- data/db/ROOT/parlement/news/release0.1.txt +8 -0
- data/db/ROOT/parlement/news.txt +2 -0
- data/db/ROOT/parlement/security/anonymity.txt +17 -0
- data/db/ROOT/parlement/security.txt +13 -8
- data/db/ROOT/parlement.txt +5 -5
- data/db/ROOT/perso.txt +1 -1
- data/db/development_structure.sql +418 -0
- data/db/schema.sql +1 -1
- data/public/stylesheets/default.css +51 -28
- data/test/functional/person_controller_test.rb +18 -0
- metadata +16 -6
- data/db/ROOT/IP.txt +0 -3
- /data/app/views/{account/_help.rhtml → _help.rhtml} +0 -0
@@ -0,0 +1,418 @@
|
|
1
|
+
--
|
2
|
+
-- PostgreSQL database dump
|
3
|
+
--
|
4
|
+
|
5
|
+
SET client_encoding = 'UNICODE';
|
6
|
+
SET check_function_bodies = false;
|
7
|
+
|
8
|
+
SET search_path = public, pg_catalog;
|
9
|
+
|
10
|
+
--
|
11
|
+
-- TOC entry 5 (OID 51832)
|
12
|
+
-- Name: people_id_seq; Type: SEQUENCE; Schema: public; Owner: manu
|
13
|
+
--
|
14
|
+
|
15
|
+
CREATE SEQUENCE people_id_seq
|
16
|
+
INCREMENT BY 1
|
17
|
+
NO MAXVALUE
|
18
|
+
NO MINVALUE
|
19
|
+
CACHE 1;
|
20
|
+
|
21
|
+
|
22
|
+
--
|
23
|
+
-- TOC entry 10 (OID 51834)
|
24
|
+
-- Name: people; Type: TABLE; Schema: public; Owner: manu
|
25
|
+
--
|
26
|
+
|
27
|
+
CREATE TABLE people (
|
28
|
+
id text DEFAULT nextval('public.people_id_seq'::text) NOT NULL,
|
29
|
+
created_on timestamp with time zone DEFAULT now() NOT NULL,
|
30
|
+
name text,
|
31
|
+
email text
|
32
|
+
);
|
33
|
+
|
34
|
+
|
35
|
+
--
|
36
|
+
-- TOC entry 11 (OID 51848)
|
37
|
+
-- Name: usersold; Type: TABLE; Schema: public; Owner: manu
|
38
|
+
--
|
39
|
+
|
40
|
+
CREATE TABLE usersold (
|
41
|
+
id serial NOT NULL,
|
42
|
+
person_id text NOT NULL,
|
43
|
+
salted_password text,
|
44
|
+
salt text,
|
45
|
+
verified integer DEFAULT 0,
|
46
|
+
new_email text,
|
47
|
+
security_token text
|
48
|
+
);
|
49
|
+
|
50
|
+
|
51
|
+
--
|
52
|
+
-- TOC entry 12 (OID 51865)
|
53
|
+
-- Name: users; Type: TABLE; Schema: public; Owner: manu
|
54
|
+
--
|
55
|
+
|
56
|
+
CREATE TABLE users (
|
57
|
+
id serial NOT NULL,
|
58
|
+
login text NOT NULL,
|
59
|
+
salted_password character varying(40) NOT NULL,
|
60
|
+
email character varying(60),
|
61
|
+
firstname character varying(40),
|
62
|
+
lastname character varying(40),
|
63
|
+
salt character(40) NOT NULL,
|
64
|
+
verified integer DEFAULT 0,
|
65
|
+
role character varying(40),
|
66
|
+
security_token character(40),
|
67
|
+
token_expiry timestamp without time zone,
|
68
|
+
deleted integer DEFAULT 0,
|
69
|
+
delete_after timestamp without time zone
|
70
|
+
);
|
71
|
+
|
72
|
+
|
73
|
+
--
|
74
|
+
-- TOC entry 6 (OID 51879)
|
75
|
+
-- Name: elts_id_seq; Type: SEQUENCE; Schema: public; Owner: manu
|
76
|
+
--
|
77
|
+
|
78
|
+
CREATE SEQUENCE elts_id_seq
|
79
|
+
INCREMENT BY 1
|
80
|
+
NO MAXVALUE
|
81
|
+
NO MINVALUE
|
82
|
+
CACHE 1;
|
83
|
+
|
84
|
+
|
85
|
+
--
|
86
|
+
-- TOC entry 13 (OID 51881)
|
87
|
+
-- Name: elts; Type: TABLE; Schema: public; Owner: manu
|
88
|
+
--
|
89
|
+
|
90
|
+
CREATE TABLE elts (
|
91
|
+
id text DEFAULT nextval('public.elts_id_seq'::text) NOT NULL,
|
92
|
+
parent_id text,
|
93
|
+
"position" double precision,
|
94
|
+
created_on timestamp with time zone DEFAULT now() NOT NULL,
|
95
|
+
person_id text,
|
96
|
+
subject text,
|
97
|
+
body text
|
98
|
+
);
|
99
|
+
|
100
|
+
|
101
|
+
--
|
102
|
+
-- TOC entry 7 (OID 51899)
|
103
|
+
-- Name: mails_id_seq; Type: SEQUENCE; Schema: public; Owner: manu
|
104
|
+
--
|
105
|
+
|
106
|
+
CREATE SEQUENCE mails_id_seq
|
107
|
+
START WITH 1
|
108
|
+
INCREMENT BY 1
|
109
|
+
NO MAXVALUE
|
110
|
+
NO MINVALUE
|
111
|
+
CACHE 1;
|
112
|
+
|
113
|
+
|
114
|
+
--
|
115
|
+
-- TOC entry 14 (OID 51901)
|
116
|
+
-- Name: mails; Type: TABLE; Schema: public; Owner: manu
|
117
|
+
--
|
118
|
+
|
119
|
+
CREATE TABLE mails (
|
120
|
+
id text DEFAULT nextval('public.mails_id_seq'::text) NOT NULL,
|
121
|
+
elt_id text NOT NULL,
|
122
|
+
message text,
|
123
|
+
mail_parents text,
|
124
|
+
file text
|
125
|
+
);
|
126
|
+
|
127
|
+
|
128
|
+
--
|
129
|
+
-- TOC entry 8 (OID 51913)
|
130
|
+
-- Name: attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: manu
|
131
|
+
--
|
132
|
+
|
133
|
+
CREATE SEQUENCE attachments_id_seq
|
134
|
+
START WITH 1
|
135
|
+
INCREMENT BY 1
|
136
|
+
NO MAXVALUE
|
137
|
+
NO MINVALUE
|
138
|
+
CACHE 1;
|
139
|
+
|
140
|
+
|
141
|
+
--
|
142
|
+
-- TOC entry 15 (OID 51915)
|
143
|
+
-- Name: attachments; Type: TABLE; Schema: public; Owner: manu
|
144
|
+
--
|
145
|
+
|
146
|
+
CREATE TABLE attachments (
|
147
|
+
id text DEFAULT nextval('attachments_id_seq'::text) NOT NULL,
|
148
|
+
elt_id text NOT NULL,
|
149
|
+
created_on timestamp with time zone DEFAULT now() NOT NULL,
|
150
|
+
content_type text,
|
151
|
+
file text
|
152
|
+
);
|
153
|
+
|
154
|
+
|
155
|
+
--
|
156
|
+
-- TOC entry 9 (OID 51928)
|
157
|
+
-- Name: subscribers_id_seq; Type: SEQUENCE; Schema: public; Owner: manu
|
158
|
+
--
|
159
|
+
|
160
|
+
CREATE SEQUENCE subscribers_id_seq
|
161
|
+
INCREMENT BY 1
|
162
|
+
NO MAXVALUE
|
163
|
+
NO MINVALUE
|
164
|
+
CACHE 1;
|
165
|
+
|
166
|
+
|
167
|
+
--
|
168
|
+
-- TOC entry 16 (OID 51930)
|
169
|
+
-- Name: subscribers; Type: TABLE; Schema: public; Owner: manu
|
170
|
+
--
|
171
|
+
|
172
|
+
CREATE TABLE subscribers (
|
173
|
+
id text DEFAULT nextval('public.subscribers_id_seq'::text) NOT NULL,
|
174
|
+
elt_id text NOT NULL,
|
175
|
+
email text,
|
176
|
+
confirmed boolean DEFAULT false NOT NULL
|
177
|
+
);
|
178
|
+
|
179
|
+
|
180
|
+
--
|
181
|
+
-- TOC entry 17 (OID 51944)
|
182
|
+
-- Name: choices; Type: TABLE; Schema: public; Owner: manu
|
183
|
+
--
|
184
|
+
|
185
|
+
CREATE TABLE choices (
|
186
|
+
elt_id text NOT NULL,
|
187
|
+
person_id text NOT NULL
|
188
|
+
);
|
189
|
+
|
190
|
+
|
191
|
+
--
|
192
|
+
-- TOC entry 18 (OID 51959)
|
193
|
+
-- Name: delegations; Type: TABLE; Schema: public; Owner: manu
|
194
|
+
--
|
195
|
+
|
196
|
+
CREATE TABLE delegations (
|
197
|
+
elt_id text NOT NULL,
|
198
|
+
person_id text NOT NULL,
|
199
|
+
"temporary" boolean DEFAULT false NOT NULL,
|
200
|
+
delegate_to text NOT NULL
|
201
|
+
);
|
202
|
+
|
203
|
+
|
204
|
+
--
|
205
|
+
-- TOC entry 20 (OID 51841)
|
206
|
+
-- Name: people_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
207
|
+
--
|
208
|
+
|
209
|
+
ALTER TABLE ONLY people
|
210
|
+
ADD CONSTRAINT people_pkey PRIMARY KEY (id);
|
211
|
+
|
212
|
+
|
213
|
+
--
|
214
|
+
-- TOC entry 19 (OID 51843)
|
215
|
+
-- Name: people_name_key; Type: CONSTRAINT; Schema: public; Owner: manu
|
216
|
+
--
|
217
|
+
|
218
|
+
ALTER TABLE ONLY people
|
219
|
+
ADD CONSTRAINT people_name_key UNIQUE (name);
|
220
|
+
|
221
|
+
|
222
|
+
--
|
223
|
+
-- TOC entry 22 (OID 51855)
|
224
|
+
-- Name: usersold_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
225
|
+
--
|
226
|
+
|
227
|
+
ALTER TABLE ONLY usersold
|
228
|
+
ADD CONSTRAINT usersold_pkey PRIMARY KEY (id);
|
229
|
+
|
230
|
+
|
231
|
+
--
|
232
|
+
-- TOC entry 21 (OID 51857)
|
233
|
+
-- Name: usersold_person_id_key; Type: CONSTRAINT; Schema: public; Owner: manu
|
234
|
+
--
|
235
|
+
|
236
|
+
ALTER TABLE ONLY usersold
|
237
|
+
ADD CONSTRAINT usersold_person_id_key UNIQUE (person_id);
|
238
|
+
|
239
|
+
|
240
|
+
--
|
241
|
+
-- TOC entry 23 (OID 51873)
|
242
|
+
-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
243
|
+
--
|
244
|
+
|
245
|
+
ALTER TABLE ONLY users
|
246
|
+
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
|
247
|
+
|
248
|
+
|
249
|
+
--
|
250
|
+
-- TOC entry 24 (OID 51888)
|
251
|
+
-- Name: elts_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
252
|
+
--
|
253
|
+
|
254
|
+
ALTER TABLE ONLY elts
|
255
|
+
ADD CONSTRAINT elts_pkey PRIMARY KEY (id);
|
256
|
+
|
257
|
+
|
258
|
+
--
|
259
|
+
-- TOC entry 25 (OID 51907)
|
260
|
+
-- Name: mails_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
261
|
+
--
|
262
|
+
|
263
|
+
ALTER TABLE ONLY mails
|
264
|
+
ADD CONSTRAINT mails_pkey PRIMARY KEY (id);
|
265
|
+
|
266
|
+
|
267
|
+
--
|
268
|
+
-- TOC entry 26 (OID 51922)
|
269
|
+
-- Name: attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
270
|
+
--
|
271
|
+
|
272
|
+
ALTER TABLE ONLY attachments
|
273
|
+
ADD CONSTRAINT attachments_pkey PRIMARY KEY (id);
|
274
|
+
|
275
|
+
|
276
|
+
--
|
277
|
+
-- TOC entry 27 (OID 51937)
|
278
|
+
-- Name: subscribers_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
279
|
+
--
|
280
|
+
|
281
|
+
ALTER TABLE ONLY subscribers
|
282
|
+
ADD CONSTRAINT subscribers_pkey PRIMARY KEY (id);
|
283
|
+
|
284
|
+
|
285
|
+
--
|
286
|
+
-- TOC entry 28 (OID 51949)
|
287
|
+
-- Name: choices_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
288
|
+
--
|
289
|
+
|
290
|
+
ALTER TABLE ONLY choices
|
291
|
+
ADD CONSTRAINT choices_pkey PRIMARY KEY (elt_id, person_id);
|
292
|
+
|
293
|
+
|
294
|
+
--
|
295
|
+
-- TOC entry 29 (OID 51965)
|
296
|
+
-- Name: delegations_pkey; Type: CONSTRAINT; Schema: public; Owner: manu
|
297
|
+
--
|
298
|
+
|
299
|
+
ALTER TABLE ONLY delegations
|
300
|
+
ADD CONSTRAINT delegations_pkey PRIMARY KEY (elt_id, person_id);
|
301
|
+
|
302
|
+
|
303
|
+
--
|
304
|
+
-- TOC entry 30 (OID 51859)
|
305
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
306
|
+
--
|
307
|
+
|
308
|
+
ALTER TABLE ONLY usersold
|
309
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (person_id) REFERENCES people(id);
|
310
|
+
|
311
|
+
|
312
|
+
--
|
313
|
+
-- TOC entry 31 (OID 51875)
|
314
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
315
|
+
--
|
316
|
+
|
317
|
+
ALTER TABLE ONLY users
|
318
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (login) REFERENCES people(name);
|
319
|
+
|
320
|
+
|
321
|
+
--
|
322
|
+
-- TOC entry 32 (OID 51890)
|
323
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
324
|
+
--
|
325
|
+
|
326
|
+
ALTER TABLE ONLY elts
|
327
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (parent_id) REFERENCES elts(id);
|
328
|
+
|
329
|
+
|
330
|
+
--
|
331
|
+
-- TOC entry 33 (OID 51894)
|
332
|
+
-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
333
|
+
--
|
334
|
+
|
335
|
+
ALTER TABLE ONLY elts
|
336
|
+
ADD CONSTRAINT "$2" FOREIGN KEY (person_id) REFERENCES people(id);
|
337
|
+
|
338
|
+
|
339
|
+
--
|
340
|
+
-- TOC entry 34 (OID 51909)
|
341
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
342
|
+
--
|
343
|
+
|
344
|
+
ALTER TABLE ONLY mails
|
345
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (elt_id) REFERENCES elts(id);
|
346
|
+
|
347
|
+
|
348
|
+
--
|
349
|
+
-- TOC entry 35 (OID 51924)
|
350
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
351
|
+
--
|
352
|
+
|
353
|
+
ALTER TABLE ONLY attachments
|
354
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (elt_id) REFERENCES elts(id);
|
355
|
+
|
356
|
+
|
357
|
+
--
|
358
|
+
-- TOC entry 36 (OID 51939)
|
359
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
360
|
+
--
|
361
|
+
|
362
|
+
ALTER TABLE ONLY subscribers
|
363
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (elt_id) REFERENCES elts(id);
|
364
|
+
|
365
|
+
|
366
|
+
--
|
367
|
+
-- TOC entry 37 (OID 51951)
|
368
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
369
|
+
--
|
370
|
+
|
371
|
+
ALTER TABLE ONLY choices
|
372
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (elt_id) REFERENCES elts(id);
|
373
|
+
|
374
|
+
|
375
|
+
--
|
376
|
+
-- TOC entry 38 (OID 51955)
|
377
|
+
-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
378
|
+
--
|
379
|
+
|
380
|
+
ALTER TABLE ONLY choices
|
381
|
+
ADD CONSTRAINT "$2" FOREIGN KEY (person_id) REFERENCES people(id);
|
382
|
+
|
383
|
+
|
384
|
+
--
|
385
|
+
-- TOC entry 39 (OID 51967)
|
386
|
+
-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
387
|
+
--
|
388
|
+
|
389
|
+
ALTER TABLE ONLY delegations
|
390
|
+
ADD CONSTRAINT "$1" FOREIGN KEY (elt_id) REFERENCES elts(id);
|
391
|
+
|
392
|
+
|
393
|
+
--
|
394
|
+
-- TOC entry 40 (OID 51971)
|
395
|
+
-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
396
|
+
--
|
397
|
+
|
398
|
+
ALTER TABLE ONLY delegations
|
399
|
+
ADD CONSTRAINT "$2" FOREIGN KEY (person_id) REFERENCES people(id);
|
400
|
+
|
401
|
+
|
402
|
+
--
|
403
|
+
-- TOC entry 41 (OID 51975)
|
404
|
+
-- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: manu
|
405
|
+
--
|
406
|
+
|
407
|
+
ALTER TABLE ONLY delegations
|
408
|
+
ADD CONSTRAINT "$3" FOREIGN KEY (delegate_to) REFERENCES people(id);
|
409
|
+
|
410
|
+
|
411
|
+
--
|
412
|
+
-- TOC entry 3 (OID 2200)
|
413
|
+
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
|
414
|
+
--
|
415
|
+
|
416
|
+
COMMENT ON SCHEMA public IS 'Standard public schema';
|
417
|
+
|
418
|
+
|
data/db/schema.sql
CHANGED
@@ -22,17 +22,23 @@ img {
|
|
22
22
|
blockquote { font-style:italic; }
|
23
23
|
|
24
24
|
h1, h2 {
|
25
|
-
text-align:left;
|
26
25
|
margin:0px;
|
27
|
-
padding-top:1.1em;
|
28
26
|
padding-left:1%;
|
29
|
-
padding-bottom:
|
27
|
+
padding-bottom:1%; }
|
28
|
+
h1 { padding-top:0.7em; }
|
30
29
|
h2 {
|
31
30
|
background:#ddd;
|
32
|
-
|
31
|
+
/* Trouble for ie: */
|
32
|
+
/*margin-top:1em;*/
|
33
|
+
padding-top:1.2em;
|
33
34
|
font-size:larger;
|
34
35
|
font-weight:normal; }
|
35
36
|
|
37
|
+
a:link, a:visited { color:#369; }
|
38
|
+
a:hover, a:active {
|
39
|
+
color:#060;
|
40
|
+
background:#ff8; }
|
41
|
+
|
36
42
|
|
37
43
|
.notice, .warning, .error {
|
38
44
|
font-size:larger;
|
@@ -42,11 +48,6 @@ h2 {
|
|
42
48
|
.warning { color:#f84; }
|
43
49
|
.error { color:#f00; }
|
44
50
|
|
45
|
-
.version {
|
46
|
-
color:#888;
|
47
|
-
font-size:smaller;
|
48
|
-
float:right; }
|
49
|
-
|
50
51
|
.login {
|
51
52
|
margin-top:1em;
|
52
53
|
margin-left:2em; }
|
@@ -60,6 +61,7 @@ h2 {
|
|
60
61
|
font-style:italic;
|
61
62
|
padding-left:1%;
|
62
63
|
padding-right:1%; }
|
64
|
+
.helpLink { cursor:help; }
|
63
65
|
.helpLinkClose { text-decoration:line-through; }
|
64
66
|
|
65
67
|
.help {
|
@@ -74,21 +76,9 @@ h2 {
|
|
74
76
|
font-weight:bolder; }
|
75
77
|
|
76
78
|
|
77
|
-
.parent {
|
78
|
-
text-align:center;
|
79
|
-
font-size:smaller;
|
80
|
-
font-weight:normal;
|
81
|
-
font-style:italic;
|
82
|
-
margin:0px;
|
83
|
-
padding-right:2em; }
|
84
|
-
|
85
|
-
a:link, a:visited { color:#369; }
|
86
|
-
a:hover, a:active {
|
87
|
-
color:#060;
|
88
|
-
background:#ff8; }
|
89
|
-
|
90
79
|
.sidebar {
|
91
80
|
float:right;
|
81
|
+
clear:right;
|
92
82
|
font-size:smaller;
|
93
83
|
padding-left:1em;
|
94
84
|
width:30%;
|
@@ -101,7 +91,10 @@ a:hover, a:active {
|
|
101
91
|
letter-spacing:0.3em; }
|
102
92
|
|
103
93
|
.box {
|
104
|
-
|
94
|
+
/* Due to IE, I recode the outset effet */
|
95
|
+
border:solid 2px #668;
|
96
|
+
border-top-color:#ccd;
|
97
|
+
border-left-color:#ccd;
|
105
98
|
background:#ccc;
|
106
99
|
margin-top:1em;
|
107
100
|
padding-bottom:1em; }
|
@@ -131,21 +124,39 @@ a:hover, a:active {
|
|
131
124
|
font-weight:bold;
|
132
125
|
text-align:right; }
|
133
126
|
|
127
|
+
|
128
|
+
.parent {
|
129
|
+
text-align:center;
|
130
|
+
font-size:smaller;
|
131
|
+
font-style:italic;
|
132
|
+
padding-bottom:1.4em; /* To make sure no following author gest garbled */ }
|
133
|
+
|
134
134
|
.author {
|
135
|
-
margin-right:0.5em;
|
136
135
|
font-style:italic;
|
137
136
|
float:left; }
|
137
|
+
/* Because of a discrepancy with ie: */
|
138
|
+
.author:after {
|
139
|
+
content:" ";
|
140
|
+
white-space:pre; }
|
138
141
|
|
139
142
|
.eltInfo {
|
140
143
|
float:right;
|
141
|
-
margin-left:
|
144
|
+
margin-left:0.5em; }
|
145
|
+
|
146
|
+
.created_on {
|
147
|
+
margin-right:0.5em;
|
148
|
+
font-size:smaller;
|
149
|
+
font-weight:normal;
|
150
|
+
float:right; }
|
142
151
|
|
143
152
|
.eltBody { padding-left:1%; }
|
144
153
|
|
145
154
|
.eltSub, .help {
|
155
|
+
border-bottom:solid 1px white; /* Or IE would add strange vertical lines in
|
156
|
+
the close part */
|
146
157
|
margin-left:2%;
|
147
|
-
border-left:solid 2px #
|
148
|
-
padding-left:
|
158
|
+
border-left:solid 2px #bbb;
|
159
|
+
padding-left:2%; }
|
149
160
|
|
150
161
|
.pageCount {
|
151
162
|
margin-left:2em;
|
@@ -153,7 +164,19 @@ a:hover, a:active {
|
|
153
164
|
font-size:smaller;
|
154
165
|
letter-spacing:0.3em; }
|
155
166
|
|
156
|
-
.eltSubsClose {
|
167
|
+
.eltSubsClose {
|
168
|
+
margin-left:1%;
|
169
|
+
font-size:smaller; }
|
170
|
+
|
171
|
+
.version, .version:link, .version:visited, .version:hover, .version:active {
|
172
|
+
display:block;
|
173
|
+
text-align:right;
|
174
|
+
clear:right; /* To make sure the sidebar is not element at the bottom */
|
175
|
+
font-size:smaller;
|
176
|
+
color:#aaa;
|
177
|
+
background:transparent;
|
178
|
+
cursor:default;
|
179
|
+
text-decoration:none;
|
157
180
|
|
158
181
|
/*
|
159
182
|
.link {
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
require 'person_controller'
|
3
|
+
|
4
|
+
# Re-raise errors caught by the controller.
|
5
|
+
class PersonController; def rescue_action(e) raise e end; end
|
6
|
+
|
7
|
+
class PersonControllerTest < Test::Unit::TestCase
|
8
|
+
def setup
|
9
|
+
@controller = PersonController.new
|
10
|
+
@request = ActionController::TestRequest.new
|
11
|
+
@response = ActionController::TestResponse.new
|
12
|
+
end
|
13
|
+
|
14
|
+
# Replace this with your real tests.
|
15
|
+
def test_truth
|
16
|
+
assert true
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: parlement
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2005-
|
8
|
-
summary:
|
6
|
+
version: "0.2"
|
7
|
+
date: 2005-12-04 00:00:00 +01:00
|
8
|
+
summary: Trusted Direct Democracy on a forum
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: emmanuel.charpentier@free.fr
|
@@ -40,8 +40,10 @@ files:
|
|
40
40
|
- app/controllers/application.rb
|
41
41
|
- app/controllers/elt_controller.rb
|
42
42
|
- app/controllers/account_controller.rb
|
43
|
+
- app/controllers/person_controller.rb
|
43
44
|
- app/helpers/application_helper.rb
|
44
45
|
- app/helpers/elt_helper.rb
|
46
|
+
- app/helpers/person_helper.rb
|
45
47
|
- app/helpers/live_tree.rb
|
46
48
|
- app/helpers/mailman.rb
|
47
49
|
- app/helpers/account_helper.rb
|
@@ -56,6 +58,8 @@ files:
|
|
56
58
|
- app/views/elt
|
57
59
|
- app/views/account
|
58
60
|
- app/views/notifier
|
61
|
+
- app/views/person
|
62
|
+
- app/views/_help.rhtml
|
59
63
|
- app/views/layouts/top.rhtml
|
60
64
|
- app/views/layouts/scaffold.rhtml
|
61
65
|
- app/views/elt/_elt.rhtml
|
@@ -70,8 +74,8 @@ files:
|
|
70
74
|
- app/views/account/logout.rhtml
|
71
75
|
- app/views/account/signup.rhtml
|
72
76
|
- app/views/account/_show.rhtml
|
73
|
-
- app/views/account/_help.rhtml
|
74
77
|
- app/views/notifier/changeEmail.rhtml
|
78
|
+
- app/views/person/show.rhtml
|
75
79
|
- config/environments
|
76
80
|
- config/database.yml
|
77
81
|
- config/routes.rb
|
@@ -82,17 +86,21 @@ files:
|
|
82
86
|
- config/environments/test.rb
|
83
87
|
- config/environments/user_environment.rb
|
84
88
|
- db/schema.sql
|
85
|
-
- db/
|
89
|
+
- db/development_structure.sql
|
86
90
|
- db/ROOT
|
87
91
|
- db/ROOT/perso
|
88
92
|
- db/ROOT/parlement.txt
|
89
93
|
- db/ROOT/perso.txt
|
90
94
|
- db/ROOT/CV.txt
|
91
|
-
- db/ROOT/IP.txt
|
92
95
|
- db/ROOT/parlement
|
93
96
|
- db/ROOT/parleR.txt
|
94
97
|
- db/ROOT/parlement/security.txt
|
95
98
|
- db/ROOT/parlement/test.txt
|
99
|
+
- db/ROOT/parlement/security
|
100
|
+
- db/ROOT/parlement/news
|
101
|
+
- db/ROOT/parlement/news.txt
|
102
|
+
- db/ROOT/parlement/security/anonymity.txt
|
103
|
+
- db/ROOT/parlement/news/release0.1.txt
|
96
104
|
- lib/localization.rb
|
97
105
|
- lib/tasks
|
98
106
|
- lib/file_column_helper.rb
|
@@ -122,6 +130,7 @@ files:
|
|
122
130
|
- public/images/live_tree_branch_expanded_icon.gif
|
123
131
|
- public/images/live_tree_leaf_icon.gif
|
124
132
|
- public/images/live_tree_loading_spinner.gif
|
133
|
+
- public/images/image
|
125
134
|
- public/images/webfeed.gif
|
126
135
|
- public/javascripts/prototype.js
|
127
136
|
- public/javascripts/effects.js
|
@@ -170,6 +179,7 @@ files:
|
|
170
179
|
- test/fixtures/notifier
|
171
180
|
- test/functional/elt_controller_test.rb
|
172
181
|
- test/functional/account_controller_test.rb
|
182
|
+
- test/functional/person_controller_test.rb
|
173
183
|
- test/mocks/development
|
174
184
|
- test/mocks/test
|
175
185
|
- test/mocks/test/user_notify.rb
|
data/db/ROOT/IP.txt
DELETED
File without changes
|