parlement 0.14 → 0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. data/CHANGES +41 -1
  2. data/MEMORY +66 -5
  3. data/README +10 -5
  4. data/Rakefile +15 -23
  5. data/app/controllers/account_controller.rb +48 -43
  6. data/app/controllers/{application.rb → application_controller.rb} +15 -12
  7. data/app/controllers/elt_controller.rb +77 -32
  8. data/app/controllers/subscriber_controller.rb +11 -10
  9. data/app/helpers/application_helper.rb +14 -1
  10. data/app/helpers/elt_helper.rb +9 -7
  11. data/app/models/elt.rb +25 -24
  12. data/app/models/mail.rb +44 -47
  13. data/app/models/person_notify.rb +2 -2
  14. data/app/models/user.rb +128 -2
  15. data/app/models/user_notify.rb +15 -15
  16. data/app/views/account/_login.rhtml +39 -39
  17. data/app/views/account/_show.rhtml +22 -30
  18. data/app/views/account/signup.rhtml +2 -2
  19. data/app/views/elt/_choice.rhtml +6 -6
  20. data/app/views/elt/_elt.rhtml +27 -32
  21. data/app/views/elt/choices.rhtml +16 -18
  22. data/app/views/elt/list/_byDate.rhtml +14 -14
  23. data/app/views/elt/list/_byVote.rhtml +15 -15
  24. data/app/views/elt/list/_children.rhtml +48 -40
  25. data/app/views/elt/list/_subscribers.rhtml +1 -1
  26. data/app/views/elt/new.rhtml +22 -21
  27. data/app/views/elt/rss.rxml +4 -11
  28. data/app/views/elt/show.rhtml +65 -61
  29. data/app/views/elt/vote_rss.rxml +4 -11
  30. data/app/views/layouts/top.rhtml +39 -50
  31. data/app/views/person/_listElts.rhtml +1 -1
  32. data/app/views/person/show.rhtml +1 -1
  33. data/{vendor/plugins/login_engine/app → app}/views/user_notify/change_password.rhtml +0 -0
  34. data/{vendor/plugins/login_engine/app → app}/views/user_notify/delete.rhtml +0 -0
  35. data/{vendor/plugins/login_engine/app → app}/views/user_notify/forgot_password.rhtml +0 -0
  36. data/{vendor/plugins/login_engine/app → app}/views/user_notify/pending_delete.rhtml +0 -0
  37. data/{vendor/plugins/login_engine/app → app}/views/user_notify/signup.rhtml +0 -0
  38. data/config/boot.rb +97 -32
  39. data/config/environment.rb +37 -35
  40. data/config/environments/development.rb +2 -3
  41. data/config/environments/production.rb +3 -0
  42. data/config/initializers/string_ruby_1.8.rb +10 -0
  43. data/config/routes.rb +17 -22
  44. data/db/schema.rb +102 -74
  45. data/lib/tasks/rspec.rake +167 -0
  46. data/public/404.html +25 -7
  47. data/public/500.html +26 -7
  48. data/public/dispatch.cgi +0 -0
  49. data/public/dispatch.fcgi +0 -0
  50. data/public/dispatch.rb +0 -0
  51. data/public/images/live_tree_branch_collapsed_icon.gif +0 -0
  52. data/public/images/live_tree_branch_expanded_icon.gif +0 -0
  53. data/public/images/live_tree_leaf_icon.gif +0 -0
  54. data/public/javascripts/application.js +258 -0
  55. data/public/javascripts/controls.js +544 -414
  56. data/public/javascripts/dragdrop.js +229 -198
  57. data/public/javascripts/effects.js +499 -459
  58. data/public/javascripts/prototype.js +2926 -1121
  59. data/public/javascripts/shadedborder.js +68 -50
  60. data/public/stylesheets/default.css +34 -34
  61. data/public/stylesheets/live_tree.css +0 -0
  62. data/public/stylesheets/scaffold.css +6 -6
  63. data/script/about +0 -0
  64. data/script/autospec +6 -0
  65. data/script/benchmarker +0 -0
  66. data/script/breakpointer +0 -0
  67. data/script/console +0 -0
  68. data/script/dbconsole +3 -0
  69. data/script/destroy +0 -0
  70. data/script/generate +0 -0
  71. data/script/plugin +0 -0
  72. data/script/profiler +0 -0
  73. data/script/runner +0 -0
  74. data/script/server +0 -0
  75. data/script/spec +10 -0
  76. data/script/spec_server +9 -0
  77. data/test/unit/attachment_test.rb +4 -4
  78. data/test/unit/choice_test.rb +1 -1
  79. data/test/unit/elt_test.rb +9 -9
  80. data/test/unit/mail_notify_test.rb +2 -2
  81. data/test/unit/mail_test.rb +18 -11
  82. data/test/unit/person_notify_test.rb +1 -1
  83. data/test/unit/person_test.rb +1 -1
  84. data/test/unit/subscriber_test.rb +1 -1
  85. data/test/unit/user_test.rb +81 -0
  86. data/test/unit/visit_test.rb +6 -6
  87. data/vendor/plugins/activerecord_foreign_key_extensions/init.rb +2 -0
  88. data/vendor/plugins/activerecord_foreign_key_extensions/lib/active_record_extensions.rb +182 -0
  89. data/vendor/plugins/activerecord_text_id_extensions/init.rb +2 -0
  90. data/vendor/plugins/activerecord_text_id_extensions/lib/active_record_extensions.rb +24 -0
  91. data/vendor/plugins/acts_as_nested_set/README +15 -0
  92. data/vendor/plugins/acts_as_nested_set/init.rb +1 -0
  93. data/vendor/plugins/acts_as_nested_set/lib/active_record/acts/nested_set.rb +210 -0
  94. data/vendor/plugins/acts_as_nested_set/test/nested_set_test.rb +269 -0
  95. data/vendor/plugins/acts_as_tree/README +26 -0
  96. data/vendor/plugins/acts_as_tree/Rakefile +22 -0
  97. data/vendor/plugins/acts_as_tree/init.rb +1 -0
  98. data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
  99. data/vendor/plugins/{output_compression/CHANGELOG → acts_as_tree/test/abstract_unit.rb} +0 -0
  100. data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
  101. data/vendor/plugins/acts_as_tree/test/database.yml +0 -0
  102. data/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
  103. data/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
  104. data/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
  105. data/vendor/plugins/classic_pagination/CHANGELOG +152 -0
  106. data/vendor/plugins/classic_pagination/README +18 -0
  107. data/vendor/plugins/{output_compression/rakefile → classic_pagination/Rakefile} +22 -22
  108. data/vendor/plugins/classic_pagination/init.rb +33 -0
  109. data/vendor/plugins/classic_pagination/install.rb +1 -0
  110. data/vendor/plugins/classic_pagination/lib/pagination.rb +405 -0
  111. data/vendor/plugins/classic_pagination/lib/pagination_helper.rb +135 -0
  112. data/vendor/plugins/classic_pagination/test/fixtures/companies.yml +24 -0
  113. data/vendor/plugins/classic_pagination/test/fixtures/company.rb +9 -0
  114. data/vendor/plugins/classic_pagination/test/fixtures/developer.rb +7 -0
  115. data/vendor/plugins/classic_pagination/test/fixtures/developers.yml +21 -0
  116. data/vendor/plugins/classic_pagination/test/fixtures/developers_projects.yml +13 -0
  117. data/vendor/plugins/classic_pagination/test/fixtures/project.rb +3 -0
  118. data/vendor/plugins/classic_pagination/test/fixtures/projects.yml +7 -0
  119. data/vendor/plugins/classic_pagination/test/fixtures/replies.yml +13 -0
  120. data/vendor/plugins/classic_pagination/test/fixtures/reply.rb +5 -0
  121. data/vendor/plugins/classic_pagination/test/fixtures/schema.sql +42 -0
  122. data/vendor/plugins/classic_pagination/test/fixtures/topic.rb +3 -0
  123. data/vendor/plugins/classic_pagination/test/fixtures/topics.yml +22 -0
  124. data/vendor/plugins/classic_pagination/test/helper.rb +117 -0
  125. data/vendor/plugins/classic_pagination/test/pagination_helper_test.rb +38 -0
  126. data/vendor/plugins/classic_pagination/test/pagination_test.rb +177 -0
  127. data/vendor/plugins/file_column/lib/file_column.rb +1 -1
  128. data/vendor/plugins/file_column/test/file_column_test.rb +0 -0
  129. metadata +151 -197
  130. data/app/helpers/live_tree.rb +0 -238
  131. data/app/views/elt/_form.rhtml +0 -31
  132. data/app/views/elt/show_tree.rhtml +0 -8
  133. data/config/environments/user_environment.rb +0 -1
  134. data/db/ROOT/Titemagli.txt +0 -3
  135. data/db/ROOT/titemagli.txt +0 -9
  136. data/public/javascripts/behaviour.js +0 -254
  137. data/public/javascripts/ie7-load.htc +0 -1
  138. data/public/javascripts/ie7.js +0 -6
  139. data/public/javascripts/live_tree.js +0 -749
  140. data/public/javascripts/mybehaviour.js +0 -225
  141. data/public/javascripts/scriptaculous.js +0 -47
  142. data/public/javascripts/slider.js +0 -283
  143. data/public/stylesheets/blue.css +0 -471
  144. data/vendor/plugins/engines/CHANGELOG +0 -241
  145. data/vendor/plugins/engines/MIT-LICENSE +0 -21
  146. data/vendor/plugins/engines/README +0 -64
  147. data/vendor/plugins/engines/Rakefile +0 -32
  148. data/vendor/plugins/engines/UPGRADING +0 -93
  149. data/vendor/plugins/engines/about.yml +0 -7
  150. data/vendor/plugins/engines/generators/plugin_migration/USAGE +0 -45
  151. data/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb +0 -79
  152. data/vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.erb +0 -13
  153. data/vendor/plugins/engines/init.rb +0 -40
  154. data/vendor/plugins/engines/install.rb +0 -32
  155. data/vendor/plugins/engines/lib/engines.rb +0 -323
  156. data/vendor/plugins/engines/lib/engines/deprecated_config_support.rb +0 -135
  157. data/vendor/plugins/engines/lib/engines/plugin.rb +0 -214
  158. data/vendor/plugins/engines/lib/engines/plugin_list.rb +0 -31
  159. data/vendor/plugins/engines/lib/engines/plugin_migrator.rb +0 -60
  160. data/vendor/plugins/engines/lib/engines/rails_extensions.rb +0 -6
  161. data/vendor/plugins/engines/lib/engines/rails_extensions/active_record.rb +0 -19
  162. data/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb +0 -143
  163. data/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb +0 -155
  164. data/vendor/plugins/engines/lib/engines/rails_extensions/public_asset_helpers.rb +0 -116
  165. data/vendor/plugins/engines/lib/engines/rails_extensions/rails.rb +0 -20
  166. data/vendor/plugins/engines/lib/engines/rails_extensions/rails_initializer.rb +0 -86
  167. data/vendor/plugins/engines/lib/engines/rails_extensions/routing.rb +0 -77
  168. data/vendor/plugins/engines/lib/engines/rails_extensions/templates.rb +0 -140
  169. data/vendor/plugins/engines/lib/engines/testing.rb +0 -87
  170. data/vendor/plugins/engines/tasks/engines.rake +0 -149
  171. data/vendor/plugins/login_engine/CHANGELOG +0 -22
  172. data/vendor/plugins/login_engine/README +0 -344
  173. data/vendor/plugins/login_engine/app/controllers/user_controller.rb +0 -262
  174. data/vendor/plugins/login_engine/app/helpers/user_helper.rb +0 -88
  175. data/vendor/plugins/login_engine/app/models/user.rb +0 -7
  176. data/vendor/plugins/login_engine/app/models/user_notify.rb +0 -75
  177. data/vendor/plugins/login_engine/app/views/user/_edit.rhtml +0 -11
  178. data/vendor/plugins/login_engine/app/views/user/_password.rhtml +0 -9
  179. data/vendor/plugins/login_engine/app/views/user/change_password.rhtml +0 -17
  180. data/vendor/plugins/login_engine/app/views/user/edit.rhtml +0 -23
  181. data/vendor/plugins/login_engine/app/views/user/forgot_password.rhtml +0 -18
  182. data/vendor/plugins/login_engine/app/views/user/home.rhtml +0 -7
  183. data/vendor/plugins/login_engine/app/views/user/login.rhtml +0 -17
  184. data/vendor/plugins/login_engine/app/views/user/logout.rhtml +0 -8
  185. data/vendor/plugins/login_engine/app/views/user/signup.rhtml +0 -17
  186. data/vendor/plugins/login_engine/db/migrate/001_initial_schema.rb +0 -25
  187. data/vendor/plugins/login_engine/init_engine.rb +0 -11
  188. data/vendor/plugins/login_engine/install.rb +0 -4
  189. data/vendor/plugins/login_engine/lib/login_engine.rb +0 -62
  190. data/vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb +0 -113
  191. data/vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb +0 -155
  192. data/vendor/plugins/login_engine/public/stylesheets/login_engine.css +0 -81
  193. data/vendor/plugins/login_engine/test/fixtures/users.yml +0 -41
  194. data/vendor/plugins/login_engine/test/functional/user_controller_test.rb +0 -536
  195. data/vendor/plugins/login_engine/test/mocks/mail.rb +0 -14
  196. data/vendor/plugins/login_engine/test/mocks/time.rb +0 -19
  197. data/vendor/plugins/login_engine/test/test_helper.rb +0 -11
  198. data/vendor/plugins/login_engine/test/unit/user_test.rb +0 -114
  199. data/vendor/plugins/output_compression/MIT-LICENSE +0 -20
  200. data/vendor/plugins/output_compression/README +0 -4
  201. data/vendor/plugins/output_compression/init.rb +0 -1
  202. data/vendor/plugins/output_compression/lib/output_compression.rb +0 -84
  203. data/vendor/plugins/output_compression/test/output_test.rb +0 -11
  204. data/vendor/plugins/output_compression/test/test_controller.rb +0 -3
  205. data/vendor/plugins/output_compression/test/test_helper.rb +0 -14
@@ -1,5 +1,5 @@
1
1
  /**
2
- * RUZEE.ShadedBorder 0.2
2
+ * RUZEE.ShadedBorder 0.6.1
3
3
  * (c) 2006 Steffen Rusitschka
4
4
  *
5
5
  * RUZEE.ShadedBorder is freely distributable under the terms of an MIT-style license.
@@ -12,6 +12,7 @@ RUZEE.ShadedBorder = {
12
12
 
13
13
  create: function(opts) {
14
14
  var isie = /msie/i.test(navigator.userAgent) && !window.opera;
15
+ var isie6 = isie && !window.XMLHttpRequest;
15
16
  function sty(el, h) {
16
17
  for(k in h) {
17
18
  if (/ie_/.test(k)) {
@@ -27,18 +28,15 @@ create: function(opts) {
27
28
  }
28
29
  function op(v) {
29
30
  v = v<0 ? 0 : v;
30
- v = v>0.99999 ? 0.99999 : v;
31
- if (isie) {
32
- return " filter:alpha(opacity=" + (v*100) + ");";
33
- } else {
34
- return " opacity:" + v + ';';
35
- }
31
+ if (v>0.99999) return "";
32
+ return isie ? " filter:alpha(opacity=" + (v*100) + ");" : " opacity:" + v + ';';
36
33
  }
37
34
 
38
35
  var sr = opts.shadow || 0;
39
36
  var r = opts.corner || 0;
40
37
  var bor = 0;
41
38
  var bow = opts.border || 0;
39
+ var boo = opts.borderOpacity || 1;
42
40
  var shadow = sr != 0;
43
41
  var lw = r > sr ? r : sr;
44
42
  var rw = lw;
@@ -61,27 +59,27 @@ create: function(opts) {
61
59
  if (!/r/i.test(edges)) rw=0;
62
60
 
63
61
  var p = { position:"absolute", left:"0", top:"0", width:lw + "px", height:th + "px",
64
- ie_fontSize:"1px", overflow:"hidden" }; var tl = crdiv(p);
62
+ ie_fontSize:"1px", overflow:"hidden", margin:"0", padding:"0" }; var tl = crdiv(p);
65
63
  delete p.left; p.right="0"; p.width=rw + "px"; var tr = crdiv(p);
66
64
  delete p.top; p.bottom="0"; p.height=bh + "px"; var br = crdiv(p);
67
65
  delete p.right; p.left="0"; p.width=lw + "px"; var bl = crdiv(p);
68
66
 
69
67
  var tw = crdiv({ position:"absolute", width:"100%", height:th + "px", ie_fontSize:"1px",
70
- top:"0", left:"0", overflow:"hidden" });
71
- var t = crdiv({ position:"relative", height:th + "px", ie_fontSize:"1px", marginLeft:lw + "px",
72
- marginRight:rw + "px", overflow:"hidden" });
68
+ top:"0", left:"0", overflow:"hidden", margin:"0", padding:"0" });
69
+ var t = crdiv({ position:"relative", height:th + "px", ie_fontSize:"1px",
70
+ margin:"0 "+ rw + "px 0 " + lw + "px", overflow:"hidden", padding:"0" });
73
71
  tw.appendChild(t);
74
72
 
75
73
  var bw = crdiv({ position:"absolute", left:"0", bottom:"0", width:"100%", height:bh + "px",
76
- ie_fontSize:"1px", overflow:"hidden" });
74
+ ie_fontSize:"1px", overflow:"hidden", margin:"0", padding:"0" });
77
75
 
78
- var b = crdiv({ position:"relative", height:bh + "px", ie_fontSize:"1px", marginLeft:lw + "px",
79
- marginRight:rw + "px", overflow:"hidden" });
76
+ var b = crdiv({ position:"relative", height:bh + "px", ie_fontSize:"1px",
77
+ margin:"0 "+ rw + "px 0 " + lw + "px", overflow:"hidden", padding:"0" });
80
78
 
81
79
  bw.appendChild(b);
82
80
 
83
81
  var mw = crdiv({ position:"absolute", top:(-bh)+"px", left:"0", width:"100%", height:"100%",
84
- overflow:"hidden", ie_fontSize:"1px" });
82
+ overflow:"hidden", ie_fontSize:"1px", padding:"0", margin:"0" });
85
83
 
86
84
  function corner(el,t,l) {
87
85
  var w = l ? lw : rw;
@@ -91,10 +89,11 @@ create: function(opts) {
91
89
 
92
90
  var xp=0; var xd=1; if (l) { xp=w-1; xd=-1; }
93
91
  for (var x=0; x<w; ++x) {
94
- var yp=0; var yd=1; if (t) { yp=h-1; yd=-1; }
95
- for (var y=0; y<h; ++y) {
92
+ var yp=h-1; var yd=-1; if (t) { yp=0; yd=1; }
93
+ var finished=false;
94
+ for (var y=h-1; y>=0 && !finished; --y) {
96
95
  var div = '<div style="position:absolute; top:' + yp + 'px; left:' + xp + 'px; ' +
97
- 'width:1px; height:1px; overflow:hidden;';
96
+ 'width:1px; height:1px; overflow:hidden; margin:0; padding:0;';
98
97
 
99
98
  var xc = x - cx; var yc = y - cy - s;
100
99
  var d = Math.sqrt(xc*xc+yc*yc);
@@ -103,28 +102,36 @@ create: function(opts) {
103
102
  if (r > 0) {
104
103
  // draw border
105
104
  if (xc < 0 && yc < bor && yc >= r || yc < 0 && xc < bor && xc >= r) {
106
- dsb.push(div + '" class="' + bclass + '"></div>');
105
+ dsb.push(div + op(boo) + '" class="' + bclass + '"></div>');
107
106
  } else
108
107
  if (d<bor && d>=r-1 && xc>=0 && yc>=0) {
109
108
  var dd = div;
110
109
  if (d>=bor-1) {
111
- dd += op(bor-d);
110
+ dd += op((bor-d)*boo);
112
111
  doShadow = true;
113
- }
112
+ } else dd += op(boo);
114
113
  dsb.push(dd + '" class="' + bclass + '"></div>');
115
114
  }
116
115
 
117
116
  // draw inner
118
- var dd = div + ' z-index:2;';
119
- if (xc < 0 && yc < r || yc < 0 && xc < r) {
117
+ var dd = div + ' z-index:2;' + (t ? 'background-position:0 -' + (r-yc-1) + 'px;' : 'background-image:none;');
118
+ var finish = function() {
119
+ if (!t) dd = dd.replace(/top\:\d+px/, "top:0px");
120
+ dd = dd.replace(/height\:1px/, "height:" + (y+1) + "px");
120
121
  dsi.push(dd + '" class="' + iclass + '"></div>');
122
+ finished = true;
123
+ };
124
+ if (xc < 0 && yc < r || yc < 0 && xc < r) {
125
+ finish();
121
126
  } else
122
127
  if (d<r && xc>=0 && yc>=0) {
123
128
  if (d>=r-1) {
124
129
  dd += op(r-d);
125
130
  doShadow = true;
131
+ dsi.push(dd + '" class="' + iclass + '"></div>');
132
+ } else {
133
+ finish();
126
134
  }
127
- dsi.push(dd + '" class="' + iclass + '"></div>');
128
135
  } else doShadow = true;
129
136
  } else doShadow = true;
130
137
 
@@ -145,25 +152,28 @@ create: function(opts) {
145
152
  function mid(mw) {
146
153
  var ds = [];
147
154
 
148
- ds.push('<div style="position:relative; top:' + (th+bh) + 'px;' +
149
- ' height:10000px; margin-left:' + (lw-r-cx) + 'px;' +
150
- ' margin-right:' + (rw-r-cx) + 'px; overflow:hidden;"' +
155
+ ds.push('<div style="position:relative; top:' + (th+bh) + 'px; height:28048px; ' +
156
+ ' margin:0 ' + (rw-r-cx) + 'px 0 ' + (lw-r-cx) + 'px; ' +
157
+ ' padding:0; overflow:hidden;' +
158
+ ' background-position:0 ' + (th > 0 ? -(r+cy+cs) : '0') + 'px;"' +
151
159
  ' class="' + iclass + '"></div>');
152
160
 
153
161
  var dd = '<div style="position:absolute; width:1px;' +
154
- ' top:' + (th+bh) + 'px; height:10000px;';
155
- for (var x=0; x<lw-r-cx; ++x) {
156
- ds.push(dd + ' left:' + x + 'px;' + op((x+1.0)/lw) +
157
- '" class="' + sclass + '"></div>');
158
- }
162
+ ' top:' + (th+bh) + 'px; height:28048px; padding:0; margin:0;';
163
+ if (sr>0) {
164
+ for (var x=0; x<lw-r-cx; ++x) {
165
+ ds.push(dd + ' left:' + x + 'px;' + op((x+1.0)/lw) +
166
+ '" class="' + sclass + '"></div>');
167
+ }
159
168
 
160
- for (var x=0; x<rw-r-cx; ++x) {
161
- ds.push(dd + ' right:' + x + 'px;' + op((x+1.0)/rw) +
162
- '" class="' + sclass + '"></div>');
169
+ for (var x=0; x<rw-r-cx; ++x) {
170
+ ds.push(dd + ' right:' + x + 'px;' + op((x+1.0)/rw) +
171
+ '" class="' + sclass + '"></div>');
172
+ }
163
173
  }
164
174
 
165
175
  if (bow > 0) {
166
- var su = ' width:' + bow + 'px;' + '" class="' + bclass + '"></div>';
176
+ var su = ' width:' + bow + 'px;' + op(boo) + '" class="' + bclass + '"></div>';
167
177
  ds.push(dd + ' left:' + (lw-bor-cx) + 'px;' + su);
168
178
  ds.push(dd + ' right:' + (rw-bor-cx) + 'px;' + su);
169
179
  }
@@ -174,19 +184,20 @@ create: function(opts) {
174
184
  function tb(el, t) {
175
185
  var ds = [];
176
186
  var h = t ? th : bh;
177
- var dd = '<div style="height:1px; overflow:hidden; position:absolute;' +
187
+ var dd = '<div style="height:1px; overflow:hidden; position:absolute; margin:0; padding:0;' +
178
188
  ' width:100%; left:0px; ';
179
189
  var s = t ? cs : -cs;
180
190
  for (var y=0; y<h-s-cy-r; ++y) {
181
- ds.push(dd + (t ? 'top:' : 'bottom:') + y + 'px;' + op((y+1)*1.0/h) +
191
+ if (sr>0) ds.push(dd + (t ? 'top:' : 'bottom:') + y + 'px;' + op((y+1)*1.0/h) +
182
192
  '" class="' + sclass + '"></div>');
183
193
  }
184
194
  if (y >= bow) {
185
- ds.push(dd + (t ? 'top:' : 'bottom:') + (y - bow) + 'px;' +
195
+ ds.push(dd + (t ? 'top:' : 'bottom:') + (y - bow) + 'px;' + op(boo) +
186
196
  ' height:' + bow + 'px;" class="' + bclass + '"></div>');
187
197
  }
188
198
 
189
- ds.push(dd + (t ? 'top:' : 'bottom:') + y + 'px;' +
199
+ ds.push(dd + (t ? 'background-position-y:0; top:' :
200
+ 'background-image:none; bottom:') + y + 'px;' +
190
201
  ' height:' + (r+cy+s) + 'px;" class="' + iclass + '"></div>');
191
202
 
192
203
  el.innerHTML = ds.join('');
@@ -203,6 +214,9 @@ create: function(opts) {
203
214
  for (var i=0; i<el.length; ++i) this.render(el[i]);
204
215
  return;
205
216
  }
217
+ el.className += " sb";
218
+ sty(el, { position:"relative", background:"transparent" });
219
+
206
220
  // remove generated children
207
221
  var node = el.firstChild;
208
222
  while (node) {
@@ -223,6 +237,10 @@ create: function(opts) {
223
237
  el.insertBefore(twc, iel); el.insertBefore(mwc, iel);
224
238
  el.insertBefore(bwc, iel);
225
239
 
240
+ if (isie6) {
241
+ el.onmouseover=function() { this.className+=" hover"; }
242
+ el.onmouseout=function() { this.className=this.className.replace(/ hover/,""); }
243
+ }
226
244
  if (isie) {
227
245
  function resize() {
228
246
  twc.style.width = bwc.style.width = mwc.style.width = el.offsetWidth + "px";
@@ -237,13 +255,13 @@ create: function(opts) {
237
255
  }
238
256
 
239
257
  // add our styles to the document
240
- document.write(
241
- '<style type="text/css">' +
242
- '.sb, .sbi, .sb *, .sbi * { position:relative; z-index:1; }' +
243
- '* html .sb, * html .sbi { height:1%; }' +
244
- '.sbi { display:inline-block; }' +
245
- '.sb-inner { background:#ddd; }' +
246
- '.sb-shadow { background:#000; }' +
247
- '.sb-border { background:#bbb; }' +
248
- '</style>'
249
- );
258
+ document.write('\
259
+ <style type="text/css">\
260
+ .sb, .sbi, .sb *, .sbi * { position:relative; z-index:1; }\
261
+ * html .sb, * html .sbi { height:1%; }\
262
+ .sbi { display:inline-block; }\
263
+ .sb-inner { background:#ddd; }\
264
+ .sb-shadow { background:#000; }\
265
+ .sb-border { background:#bbb; }\
266
+ </style>\
267
+ ');
@@ -5,13 +5,13 @@
5
5
  | __/ (_| | | | | __/ | | | | | __/ | | | |_
6
6
  |_| \__,_|_| |_|\___|_| |_| |_|\___|_| |_|\__|
7
7
  */
8
-
9
- html {
8
+ html, body {
9
+ margin: 0;
10
+ padding: 0;
10
11
  border: none;
11
- background: url("/images/Sleep-Deprivation-5.JPG"); }
12
-
13
- body { margin: 3em 3%; }
14
- body .sb-inner, body .sb-border { background: white; }
12
+ background: url("/images/Sleep-Deprivation-5.JPG") #3C79B2; }
13
+ body { padding: 3em 3% 0; }
14
+ #rounded, #rounded .sb-inner, #rounded .sb-border { background: white; }
15
15
 
16
16
  /* _ _ _ _ _
17
17
  ___| | __ _ ___ ___(_) ___ | |__ | |_ _ __ ___ | |
@@ -19,7 +19,7 @@ body .sb-inner, body .sb-border { background: white; }
19
19
  | (__| | (_| \__ \__ \ | (__ | | | | |_| | | | | | |
20
20
  \___|_|\__,_|___/___/_|\___| |_| |_|\__|_| |_| |_|_| */
21
21
  img { border: none; }
22
- pre { overflow: auto; }
22
+ pre, textarea { overflow: auto; }
23
23
 
24
24
  legend, a:link, select { color: #3b76ae; }
25
25
  a:visited { color: #1b568e; }
@@ -80,7 +80,7 @@ a:hover { text-decoration: underline; }
80
80
  padding: 1em;
81
81
  font-size: smaller;
82
82
  margin: -3em -3% 1em 1em; }
83
- #sidebar .sb-inner, #sidebar .sb-border { background: #ddf; }
83
+ #sidebar, #sidebar .sb-inner, #sidebar .sb-border { background: #ddf; }
84
84
 
85
85
  #sidebar h2 {
86
86
  margin: 0;
@@ -123,8 +123,12 @@ a.feed img {
123
123
  .identity fieldset {
124
124
  border: none;
125
125
  padding: 0; }
126
- .identity #edit, .identity iframe { display: none; }
127
- .identity:hover #edit { display: block; }
126
+ .identity #identityEdition, .identity iframe {
127
+ visibility: hidden;
128
+ height: 0; }
129
+ .identity:hover #identityEdition {
130
+ visibility: visible;
131
+ height: auto; }
128
132
  #sidebar img.avatar {
129
133
  display: block;
130
134
  max-width: 30%;
@@ -154,10 +158,9 @@ body.anon #listVisitors, body.anon #listSubscribers { display: none; }
154
158
  ul.top {
155
159
  padding-left: 0;
156
160
  margin-right: 3px;
157
- margin-left: 1.2em; }
158
- ul.top * {
159
- z-index: auto;
160
- position: auto; }
161
+ background: white;
162
+ margin-left: 1.2em;
163
+ margin-bottom: 1.2em; }
161
164
  h3.parent {
162
165
  margin-top: -2em;
163
166
  position: absolute; }
@@ -186,16 +189,20 @@ ul.top h1 a, ul.top h2 a {
186
189
  ul.top h1 a { border-width: 7px; }
187
190
  ul.top h2 a { border-width: 3px; }
188
191
 
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 {
192
+ #elt_parlement .created_on, #elt_parlement h1 a,
193
+ #elt_fr .created_on, #elt_fr h1 a {
191
194
  display: none; }
195
+ #elt_parlement li.elt .created_on, #elt_parlement h1 a,
196
+ #elt_fr li.elt .created_on, #elt_fr h1 a {
197
+ display: auto; }
192
198
 
193
199
  ul.top li.elt {
194
200
  width: 100%;
195
201
  clear: left;
196
- list-style-type: none;
197
- background: url(/images/eltBackground.jng) repeat-x; }
198
- ul.top li.elt.closed, ul.top > li.elt { background: none; }
202
+ background: white;
203
+ list-style-type: none; }
204
+ ul.top li.elt li.elt { background: url(/images/eltBackground.jng) white repeat-x; }
205
+ ul.top li.elt.closed { background: transparent !important; }
199
206
 
200
207
  .created_on {
201
208
  float: right;
@@ -213,8 +220,10 @@ ul.top .attachments img {
213
220
 
214
221
  a.readMore { font-style: italic; }
215
222
  div.tooLarge { display: none; }
216
- ul.top > li.elt > p > a.readMore { display: none; }
217
- ul.top > li.elt > div.tooLarge { display: block; }
223
+ ul.top li.elt p a.readMore { display: none; }
224
+ ul.top li.elt div.tooLarge { display: block; }
225
+ ul.top li.elt li.elt p a.readMore { display: inline; }
226
+ ul.top li.elt li.elt div.tooLarge { display: none; }
218
227
 
219
228
  .nav {
220
229
  text-align: center;
@@ -244,7 +253,7 @@ blockquote blockquote blockquote { font-size: x-small; }
244
253
  .choice {
245
254
  float: right;
246
255
  font-size: large;
247
- margin-top: -1.2em;
256
+ margin-top: -1.3em;
248
257
  position: relative;
249
258
  font-weight: bolder; }
250
259
  body.anon .choice .con, body.anon .choice .result, body.anon .choice .pro {
@@ -260,13 +269,7 @@ body.anon .choice .con, body.anon .choice .result, body.anon .choice .pro {
260
269
  .choice img:hover { border-color: cyan; }
261
270
  .choice img.selected { border-color: yellow; }
262
271
  .choice img.selected:hover { border-color: magenta; }
263
- table.choices {
264
- z-index: 10;
265
- right: -10px;
266
- background: white;
267
- margin-top: -1.5em;
268
- position: absolute;
269
- border: outset 3px blue; }
272
+ .choices { margin-left: auto; }
270
273
 
271
274
  /* _
272
275
  ___ _ _| |__
@@ -276,17 +279,14 @@ table.choices {
276
279
  .eltSub, .eltNew {
277
280
  margin-left: 1%;
278
281
  padding-left: 1%;
279
- border-left: solid 0.4em #ffc;
280
- border-bottom: solid 1px #ffc; }
282
+ border-left: solid 0.4em #fdb;
283
+ border-bottom: solid 1px #fdb; }
281
284
 
282
285
  body.logged .for_anon { display: none; }
283
286
 
284
287
  .position { display: none; }
285
288
  ul.top label { font-weight: bolder; }
286
289
 
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
290
  form:hover .position { display: inline; }
291
291
 
292
292
  .eltNewButtons { text-align: center; }
File without changes
@@ -22,16 +22,16 @@ a:hover { color: #fff; background-color:#000; }
22
22
  display: table;
23
23
  }
24
24
 
25
- #ErrorExplanation {
25
+ #errorExplanation {
26
26
  width: 400px;
27
- border: 2px solid 'red';
27
+ border: 2px solid red;
28
28
  padding: 7px;
29
29
  padding-bottom: 12px;
30
30
  margin-bottom: 20px;
31
31
  background-color: #f0f0f0;
32
32
  }
33
33
 
34
- #ErrorExplanation h2 {
34
+ #errorExplanation h2 {
35
35
  text-align: left;
36
36
  font-weight: bold;
37
37
  padding: 5px 5px 5px 15px;
@@ -41,13 +41,13 @@ a:hover { color: #fff; background-color:#000; }
41
41
  color: #fff;
42
42
  }
43
43
 
44
- #ErrorExplanation p {
44
+ #errorExplanation p {
45
45
  color: #333;
46
46
  margin-bottom: 0;
47
47
  padding: 5px;
48
48
  }
49
49
 
50
- #ErrorExplanation ul li {
50
+ #errorExplanation ul li {
51
51
  font-size: 12px;
52
52
  list-style: square;
53
53
  }
@@ -62,7 +62,7 @@ div.progressBar {
62
62
 
63
63
  div.progressBar div.border {
64
64
  background-color: #fff;
65
- border: 1px solid grey;
65
+ border: 1px solid gray;
66
66
  width: 100%;
67
67
  }
68
68
 
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
3
+ ENV['RSPEC'] = 'true' # allows autotest to discover rspec
4
+ ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
5
+ system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
6
+ $stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/dbconsole'