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.
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
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: parlement
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.13"
7
- date: 2007-06-17 00:00:00 +02:00
6
+ version: "0.14"
7
+ date: 2007-10-07 00:00:00 +02:00
8
8
  summary: Trusted Direct Democracy on a forum
9
9
  require_paths:
10
10
  - lib
@@ -37,29 +37,32 @@ files:
37
37
  - app/apis
38
38
  - app/views
39
39
  - app/views/layouts
40
+ - app/views/layouts/_title.rhtml
40
41
  - app/views/layouts/scaffold.rhtml
41
42
  - app/views/layouts/top.rhtml
42
43
  - app/views/elt
44
+ - app/views/elt/list
45
+ - app/views/elt/list/_children.rhtml
46
+ - app/views/elt/list/_visitors.rhtml
47
+ - app/views/elt/list/_subscribers.rhtml
48
+ - app/views/elt/list/_byDate.rhtml
49
+ - app/views/elt/list/_byVote.rhtml
50
+ - app/views/elt/list/byVote.rhtml
43
51
  - app/views/elt/new.rhtml
44
52
  - app/views/elt/choices.rhtml
45
- - app/views/elt/_listVisitors.rhtml
46
53
  - app/views/elt/show.rhtml
47
54
  - app/views/elt/show_tree.rhtml
48
55
  - app/views/elt/_choice.rhtml
49
- - app/views/elt/_listByVote.rhtml
50
56
  - app/views/elt/_elt.rhtml
51
57
  - app/views/elt/vote_rss.rxml
52
58
  - app/views/elt/rss.rxml
53
59
  - app/views/elt/_form.rhtml
54
- - app/views/elt/_listByDate.rhtml
55
- - app/views/elt/_list.rhtml
56
60
  - app/views/mail_notify
57
61
  - app/views/mail_notify/publish.text.plain.rhtml
58
62
  - app/views/mail_notify/publish.text.html.rhtml
59
63
  - app/views/person_notify
60
64
  - app/views/person_notify/setEmail.rhtml
61
65
  - app/views/subscriber
62
- - app/views/subscriber/_list.rhtml
63
66
  - app/views/_help.rhtml
64
67
  - app/views/account
65
68
  - app/views/account/_login.rhtml
@@ -143,6 +146,7 @@ files:
143
146
  - db/ROOT/fr.txt
144
147
  - db/ROOT/parlement.txt
145
148
  - db/ROOT/titemagli.txt
149
+ - db/ROOT/perso.txt
146
150
  - db/ROOT/perso
147
151
  - db/schema.rb
148
152
  - lib/user_system.rb
@@ -194,10 +198,12 @@ files:
194
198
  - public/javascripts/live_tree.js
195
199
  - public/javascripts/dragdrop.js
196
200
  - public/javascripts/prototype.js
201
+ - public/javascripts/shadedborder.js
197
202
  - public/javascripts/mybehaviour.js
198
203
  - public/javascripts/application.js
199
204
  - public/javascripts/slider.js
200
205
  - public/stylesheets/scaffold.css
206
+ - public/stylesheets/blue.css
201
207
  - public/stylesheets/live_tree.css
202
208
  - public/stylesheets/default.css
203
209
  - script/plugin
@@ -1,76 +0,0 @@
1
- <%= link_to image_tag("/images/feed-icon-28x28.png"),
2
- { :action => 'rss', :id => @elt }, :class => 'feed' %>
3
- <h3 class="boxTitle"><%= _('Latest posts') %></h3>
4
-
5
- <%e_pages = ActionController::Pagination::Paginator.new(
6
- self, countEltsAboveFilter, LIST_LENGTH, params['page'])
7
- elts = Elt.find_by_sql " \
8
- SELECT SUM(value) AS resultLocal, elts.id, parent_id, elts.created_on, parent_id, \
9
- elts_count, position, elts.person_id, subject, body, lft, rgt \
10
- FROM elts \
11
- LEFT JOIN choices ON choices.elt_id = elts.id \
12
- WHERE lft > #{@elt.lft} AND rgt < #{@elt.rgt} \
13
- GROUP BY elts.id, parent_id, elts.created_on, parent_id, elts_count, \
14
- position, elts.person_id, subject, body, lft, rgt \
15
- HAVING SUM(value) >= #{filter||-10**10} \
16
- ORDER BY created_on DESC \
17
- LIMIT #{e_pages.items_per_page} \
18
- OFFSET #{e_pages.current.offset}" %>
19
-
20
- <% if e_pages.length > 1 %>
21
- <%= link_to_remote('|&lt;',
22
- { :update => 'listByDate',
23
- :url => { :action => 'listByDate', :id => @elt, :page => e_pages.last },
24
- :before => visual_effect(:BlindUp, 'listByDate', { :queue => 'end' }),
25
- :loaded => visual_effect(:BlindDown, 'listByDate', { :queue => 'end' }) }) \
26
- if e_pages.last != e_pages.current %>
27
- <%= link_to_remote('&lt;',
28
- { :update => 'listByDate',
29
- :url => { :action => 'listByDate', :id => @elt, :page => e_pages.current.next },
30
- :before => visual_effect(:BlindUp, 'listByDate', { :queue => 'end' }),
31
- :loaded => visual_effect(:BlindDown, 'listByDate', { :queue => 'end' }) }) \
32
- if e_pages.current.next and e_pages.current.next != e_pages.last %>
33
-
34
- <span class="pageCount"><%= e_pages.length-e_pages.current.to_i+1 %></span>
35
-
36
- <%= link_to_remote('&gt;',
37
- { :update => 'listByDate',
38
- :url => { :action => 'listByDate', :id => @elt, :page => e_pages.current.previous },
39
- :before => visual_effect(:BlindUp, 'listByDate', { :queue => 'end' }),
40
- :loaded => visual_effect(:BlindDown, 'listByDate', { :queue => 'end' }) }) \
41
- if e_pages.current.previous and e_pages.current.previous != e_pages.first %>
42
- <%= link_to_remote('&gt;|',
43
- { :update => 'listByDate',
44
- :url => { :action => 'listByDate', :id => @elt, :page => e_pages.first },
45
- :before => visual_effect(:BlindUp, 'listByDate', { :queue => 'end' }),
46
- :loaded => visual_effect(:BlindDown, 'listByDate', { :queue => 'end' }) }) \
47
- if e_pages.first != e_pages.current %>
48
- <% end %>
49
-
50
- <ul>
51
- <% elts.each do |elt| %>
52
- <li class="boxLine elt" title="<%= elt.created_on.strftime '%d/%m %H:%M' %>">
53
- <span class="created_on"><%= elt.created_on.strftime '%d/%m %H:%M' %></span>
54
- <span>
55
- <%= link_to_remote("%+d" % elt.resultlocal,
56
- { :update => 'resultList_'+elt.id,
57
- :position => :top,
58
- :url => { :action => 'choices', :id => elt } },
59
- { :class => 'result', :id => "resultList_#{ elt.id}",
60
- :href => url_for(:controller => 'elt', :action => 'choices', :id => elt) }
61
- ) if elt.resultlocal %>
62
- </span>
63
-
64
- <% if elt.person %>
65
- <span class="author">
66
- &lt;<%= link_to elt.person.name, :controller => 'person', :action => 'show', :id => elt.person %>&gt;
67
- </span>
68
- <% elsif not displayTitle? elt %>
69
- <span class="author">&lt;<%= ANONYMOUS_POSTER %>&gt;</span>
70
- <% end %>
71
-
72
- <%= link_to elt.subject.gsub(/\[.*\]/, ''), :action => 'show', :id => elt %>
73
- </li>
74
- <% end %>
75
- </ul>
76
-