backlog 0.36.2 → 0.37.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. data/Gemfile +16 -4
  2. data/Gemfile.lock +130 -0
  3. data/History.txt +17 -0
  4. data/README.txt +0 -2
  5. data/Rakefile +17 -7
  6. data/app/controllers/absences_controller.rb +1 -2
  7. data/app/controllers/application_controller.rb +13 -14
  8. data/app/controllers/application_controller.rb.rails2 +186 -0
  9. data/app/controllers/estimates_controller.rb +1 -1
  10. data/app/controllers/groups_controller.rb +3 -1
  11. data/app/controllers/periods_controller.rb +61 -50
  12. data/app/controllers/{backlogs_controller.rb → projects_controller.rb} +35 -35
  13. data/app/controllers/search_controller.rb +2 -2
  14. data/app/controllers/tasks_controller.rb +11 -11
  15. data/app/controllers/user_controller.rb +6 -4
  16. data/app/controllers/welcome_controller.rb +4 -4
  17. data/app/controllers/work_locks_controller.rb +2 -2
  18. data/app/controllers/works_controller.rb +31 -31
  19. data/app/helpers/application_helper.rb +2 -2
  20. data/app/helpers/application_helper.rb.rails2 +118 -0
  21. data/app/helpers/periods_helper.rb +3 -3
  22. data/app/helpers/{backlogs_helper.rb → projects_helper.rb} +5 -5
  23. data/app/helpers/user_helper.rb +2 -2
  24. data/app/{models → mailers}/user_notify.rb +1 -0
  25. data/app/models/absence.rb +2 -2
  26. data/{lib → app/models}/clock.rb +0 -0
  27. data/app/models/estimate.rb +2 -2
  28. data/app/models/party.rb +1 -2
  29. data/app/models/period.rb +17 -18
  30. data/app/models/{backlog.rb → project.rb} +2 -2
  31. data/app/models/sidebar.rb +2 -2
  32. data/app/models/task.rb +28 -28
  33. data/app/models/user.rb +5 -4
  34. data/app/models/work.rb +29 -23
  35. data/app/models/work_lock_nagger.rb +1 -1
  36. data/app/models/works_report_filter.rb +4 -4
  37. data/app/views/customers/_name_list.rhtml +1 -1
  38. data/app/views/layouts/_headers.rhtml +2 -1
  39. data/app/views/layouts/_left_top.rhtml +32 -29
  40. data/app/views/layouts/_shortcuts.rhtml +15 -9
  41. data/app/views/layouts/_shortcuts_js.rhtml +4 -4
  42. data/app/views/layouts/mwrt002.html.erb +44 -0
  43. data/app/views/periods/_burn_down_chart.rhtml +1 -1
  44. data/app/views/periods/_show_active.rhtml +3 -3
  45. data/app/views/periods/_title.rhtml +1 -1
  46. data/app/views/{backlogs → projects}/_buttons.rhtml +4 -4
  47. data/app/views/projects/_form.rhtml +44 -0
  48. data/app/views/projects/_name_list.rhtml +5 -0
  49. data/app/views/projects/edit.rhtml +14 -0
  50. data/app/views/{backlogs → projects}/finish_task.rjs +0 -0
  51. data/app/views/projects/list.rhtml +16 -0
  52. data/app/views/{backlogs → projects}/move_task_to_period.rjs +0 -0
  53. data/app/views/{backlogs → projects}/new.rhtml +1 -1
  54. data/app/views/{backlogs → projects}/reopen_task.rjs +0 -0
  55. data/app/views/{backlogs → projects}/show.rhtml +6 -6
  56. data/app/views/search/results.rhtml +3 -3
  57. data/app/views/tasks/_backlog_header.rhtml +4 -4
  58. data/app/views/tasks/_completed.rhtml +2 -2
  59. data/app/views/tasks/_form.rhtml +13 -13
  60. data/app/views/tasks/_task.rhtml +10 -10
  61. data/app/views/tasks/edit.rhtml +1 -1
  62. data/app/views/tasks/list.rhtml +3 -3
  63. data/app/views/tasks/list_started.rhtml +4 -4
  64. data/app/views/tasks/start_work.rjs +1 -1
  65. data/app/views/user/login.rhtml +1 -1
  66. data/app/views/user/signup.rhtml +1 -1
  67. data/app/views/user/welcome.rhtml +1 -1
  68. data/app/views/works/_description_list.rhtml +1 -1
  69. data/app/views/works/_form.rhtml +5 -5
  70. data/app/views/works/_new_row.rhtml +8 -8
  71. data/app/views/works/_row.rhtml +1 -1
  72. data/app/views/works/_task_id_list.rhtml +1 -1
  73. data/app/views/works/daily_work_sheet.rhtml +1 -1
  74. data/app/views/works/list.rhtml +5 -5
  75. data/app/views/works/list_excel.rhtml +2 -2
  76. data/app/views/works/timeliste.rhtml +14 -14
  77. data/app/views/works/weekly_work_sheet.rhtml +5 -5
  78. data/app/views/works/weekly_work_sheet_details.rhtml +5 -5
  79. data/backlog.gemspec +44 -0
  80. data/bin/backlog +5 -1
  81. data/config.ru +4 -0
  82. data/config/application.rb +10 -0
  83. data/config/boot.rb +12 -116
  84. data/config/database.yml +3 -6
  85. data/config/database.yml~ +17 -0
  86. data/config/environment.rb +28 -49
  87. data/config/environments/development.rb +24 -20
  88. data/config/environments/development.rb.rails2 +26 -0
  89. data/config/environments/production.rb +26 -22
  90. data/config/environments/test.rb +20 -15
  91. data/config/environments/user_environment.rb +1 -1
  92. data/config/initializers/backtrace_silencers.rb +7 -0
  93. data/config/initializers/inflections.rb +10 -0
  94. data/config/initializers/jdbc.rb +1 -1
  95. data/config/initializers/mime_types.rb +5 -0
  96. data/config/initializers/secret_token.rb +7 -0
  97. data/config/initializers/session_store.rb +8 -0
  98. data/config/locales/en.yml +22 -11
  99. data/config/locales/no.yml +1 -0
  100. data/config/routes.rb +4 -5
  101. data/cruise_build.sh +6 -2
  102. data/db/migrate/004_add_period.rb +22 -22
  103. data/db/migrate/015_add_user_option.rb +5 -19
  104. data/db/migrate/017_increase_backlog_name_limit.rb +10 -0
  105. data/db/migrate/021_create_work_accounts.rb +0 -2
  106. data/db/migrate/20101006092700_rename_backlogs_to_projects.rb +22 -0
  107. data/db/migrate/20101006092700_rename_backlogs_to_projects.rb~ +22 -0
  108. data/db/schema.rb +27 -30
  109. data/db/seeds.rb +7 -0
  110. data/lib/array_helper.rb +0 -8
  111. data/lib/class_table_inheritance.rb +8 -7
  112. data/lib/tasks/backup.rake +3 -3
  113. data/lib/tasks/jdbc.rake +2 -2
  114. data/lib/version_from_history.rb +1 -1
  115. data/public/404.html +23 -7
  116. data/public/422.html +26 -0
  117. data/public/500.html +23 -6
  118. data/public/images/rails.png +0 -0
  119. data/public/javascripts/controls.js +5 -3
  120. data/public/javascripts/dragdrop.js +7 -6
  121. data/public/javascripts/effects.js +8 -13
  122. data/public/javascripts/prototype.js +3381 -1700
  123. data/public/javascripts/rails.js +175 -0
  124. data/public/robots.txt +5 -1
  125. data/script/rails +6 -0
  126. data/test/client/login.rb +0 -2
  127. data/test/client/login_test.rb +1 -1
  128. data/test/client/setup.rb +25 -24
  129. data/test/fixtures/{backlogs.yml → projects.yml} +2 -2
  130. data/test/fixtures/tasks.yml +9 -9
  131. data/test/fixtures/work_lock_subscriptions.yml +2 -2
  132. data/test/fixtures/works.yml +7 -7
  133. data/test/functional/periods_controller_test.rb +1 -1
  134. data/test/functional/{backlogs_controller_test.rb → projects_controller_test.rb} +22 -21
  135. data/test/functional/search_controller_test.rb +1 -1
  136. data/test/functional/tasks_controller_test.rb +17 -17
  137. data/test/functional/user_controller_test.rb +16 -21
  138. data/test/functional/welcome_controller_test.rb +4 -3
  139. data/test/functional/works_controller_test.rb +5 -5
  140. data/test/integration/user_system_test.rb +1 -1
  141. data/test/mocks/test/clock.rb +1 -1
  142. data/test/performance/browsing_test.rb +9 -0
  143. data/test/performance/common.rb +1 -1
  144. data/test/test_helper.rb +23 -6
  145. data/test/test_helper.rb~ +121 -0
  146. data/test/unit/user_test.rb +3 -3
  147. data/test/unit/work_test.rb +7 -7
  148. data/vendor/plugins/assert_cookie/lib/assert_cookie.rb +0 -2
  149. data/vendor/plugins/{foreign_key_migrations → dynamic_form}/MIT-LICENSE +1 -1
  150. data/vendor/plugins/dynamic_form/README +13 -0
  151. data/vendor/plugins/dynamic_form/Rakefile +10 -0
  152. data/vendor/plugins/dynamic_form/dynamic_form.gemspec +12 -0
  153. data/vendor/plugins/dynamic_form/init.rb +1 -0
  154. data/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +300 -0
  155. data/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +8 -0
  156. data/vendor/plugins/dynamic_form/lib/dynamic_form.rb +5 -0
  157. data/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +42 -0
  158. data/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +370 -0
  159. data/vendor/plugins/dynamic_form/test/test_helper.rb +9 -0
  160. data/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
  161. data/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
  162. data/vendor/plugins/rails_time/test/debug.log +1 -0
  163. data/vendor/plugins/{redhillonrails_core → verification}/MIT-LICENSE +1 -1
  164. data/vendor/plugins/verification/README +34 -0
  165. data/vendor/plugins/verification/Rakefile +22 -0
  166. data/vendor/plugins/verification/init.rb +3 -0
  167. data/vendor/plugins/verification/lib/action_controller/verification.rb +132 -0
  168. data/vendor/plugins/verification/test/test_helper.rb +18 -0
  169. data/vendor/plugins/verification/test/verification_test.rb +270 -0
  170. data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +1 -1
  171. metadata +115 -134
  172. data/Gemfile~ +0 -4
  173. data/History.txt~ +0 -961
  174. data/LICENSE_LOCALIZATION +0 -20
  175. data/README_LOCALIZATION +0 -61
  176. data/README_RAILS +0 -180
  177. data/app/views/backlogs/_form.rhtml +0 -44
  178. data/app/views/backlogs/_name_list.rhtml +0 -5
  179. data/app/views/backlogs/edit.rhtml +0 -14
  180. data/app/views/backlogs/list.rhtml +0 -16
  181. data/app/views/layouts/mwrt002.rhtml +0 -43
  182. data/config/initializers/mongrel.rb +0 -83
  183. data/config/preinitializer.rb +0 -20
  184. data/config/warble.rb~ +0 -84
  185. data/db/migrate/017_insert_datek_projects.rb +0 -98
  186. data/lib/change_column_null_migration_fix.rb +0 -15
  187. data/no_test.rb~ +0 -6
  188. data/public/dispatch.cgi +0 -10
  189. data/public/dispatch.fcgi +0 -24
  190. data/public/dispatch.rb +0 -10
  191. data/script/about +0 -3
  192. data/script/breakpointer +0 -3
  193. data/script/console +0 -3
  194. data/script/dbconsole +0 -3
  195. data/script/destroy +0 -3
  196. data/script/generate +0 -3
  197. data/script/performance/benchmarker +0 -3
  198. data/script/performance/profiler +0 -3
  199. data/script/plugin +0 -3
  200. data/script/process/inspector +0 -3
  201. data/script/process/reaper +0 -3
  202. data/script/process/spawner +0 -3
  203. data/script/runner +0 -3
  204. data/script/server +0 -3
  205. data/test/client/login.rb~ +0 -33
  206. data/test/mocks/test/user_notify.rb +0 -16
  207. data/vendor/plugins/foreign_key_migrations/CHANGELOG +0 -103
  208. data/vendor/plugins/foreign_key_migrations/README +0 -87
  209. data/vendor/plugins/foreign_key_migrations/about.yml +0 -5
  210. data/vendor/plugins/foreign_key_migrations/init.rb +0 -1
  211. data/vendor/plugins/foreign_key_migrations/install.rb +0 -1
  212. data/vendor/plugins/foreign_key_migrations/lib/foreign_key_migrations.rb +0 -3
  213. data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/base.rb +0 -22
  214. data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/abstract_adapter.rb +0 -22
  215. data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/table_definition.rb +0 -28
  216. data/vendor/plugins/lightwindow_helper/README +0 -33
  217. data/vendor/plugins/lightwindow_helper/assets/images/ajax-loading.gif +0 -0
  218. data/vendor/plugins/lightwindow_helper/assets/images/arrow-down.gif +0 -0
  219. data/vendor/plugins/lightwindow_helper/assets/images/arrow-up.gif +0 -0
  220. data/vendor/plugins/lightwindow_helper/assets/images/black-70.png +0 -0
  221. data/vendor/plugins/lightwindow_helper/assets/images/black.png +0 -0
  222. data/vendor/plugins/lightwindow_helper/assets/images/nextlabel.gif +0 -0
  223. data/vendor/plugins/lightwindow_helper/assets/images/prevlabel.gif +0 -0
  224. data/vendor/plugins/lightwindow_helper/assets/javascripts/lightwindow.js +0 -1921
  225. data/vendor/plugins/lightwindow_helper/assets/stylesheets/lightwindow.css +0 -376
  226. data/vendor/plugins/lightwindow_helper/init.rb +0 -1
  227. data/vendor/plugins/lightwindow_helper/install.rb +0 -7
  228. data/vendor/plugins/lightwindow_helper/lib/lightwindow_helper.rb +0 -31
  229. data/vendor/plugins/redhillonrails_core/CHANGELOG +0 -150
  230. data/vendor/plugins/redhillonrails_core/README +0 -124
  231. data/vendor/plugins/redhillonrails_core/init.rb +0 -19
  232. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/base.rb +0 -54
  233. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/abstract_adapter.rb +0 -31
  234. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb +0 -21
  235. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/foreign_key_definition.rb +0 -26
  236. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/index_definition.rb +0 -11
  237. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/mysql_adapter.rb +0 -74
  238. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/mysql_column.rb +0 -8
  239. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/postgresql_adapter.rb +0 -99
  240. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/schema_statements.rb +0 -16
  241. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/sqlite3_adapter.rb +0 -9
  242. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/table_definition.rb +0 -27
  243. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb +0 -27
  244. data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema_dumper.rb +0 -47
  245. data/vendor/plugins/transactional_migrations/CHANGELOG +0 -9
  246. data/vendor/plugins/transactional_migrations/MIT-LICENSE +0 -20
  247. data/vendor/plugins/transactional_migrations/README +0 -15
  248. data/vendor/plugins/transactional_migrations/about.yml +0 -5
  249. data/vendor/plugins/transactional_migrations/init.rb +0 -1
  250. data/vendor/plugins/transactional_migrations/lib/red_hill_consulting/transactional_migrations/active_record/migration.rb +0 -19
@@ -1,376 +0,0 @@
1
- #lightwindow_overlay {
2
- /* REQUIRED */
3
- display: none;
4
- visibility: hidden;
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- width: 100%;
9
- height: 100px;
10
- z-index: 500;
11
- /* REQUIRED */
12
- }
13
-
14
- #lightwindow {
15
- /* REQUIRED */
16
- /* Of Note - The height and width of this element are set to 0px */
17
- display: none;
18
- visibility: hidden;
19
- position: absolute;
20
- z-index: 999;
21
- line-height: 0px;
22
- /* REQUIRED */
23
- }
24
-
25
- #lightwindow_container {
26
- /* REQUIRED */
27
- display: none;
28
- visibility: hidden;
29
- position: absolute;
30
- /* REQUIRED */
31
- padding: 0 0 0 0;
32
- margin: 0 0 0 0;
33
- }
34
-
35
- /* IE6 needs this or it messes with our positioning */
36
- * html #lightwindow_container {
37
- overflow: hidden;
38
- }
39
-
40
- #lightwindow_contents {
41
- overflow: hidden;
42
- z-index: 0;
43
- position: relative;
44
- border: 10px solid #ffffff;
45
- background-color: #ffffff;
46
- }
47
-
48
- #lightwindow_loading {
49
- /* REQUIRED */
50
- height: 100%;
51
- width: 100%;
52
- top: 0px;
53
- left: 0px;
54
- z-index: 9999;
55
- position: absolute;
56
- /* REQUIRED */
57
- background-color: #f0f0f0;
58
- padding: 10px;
59
- }
60
-
61
- #lightwindow_loading_shim {
62
- display: none;
63
- left: 0px;
64
- position: absolute;
65
- top: 0px;
66
- width: 100%;
67
- height: 100%;
68
- }
69
-
70
- #lightwindow_loading span {
71
- font-size: 12px;
72
- line-height: 32px;
73
- color: #444444;
74
- float: left;
75
- padding: 0 10px 0 0;
76
- }
77
-
78
- #lightwindow_loading span a,
79
- #lightwindow_loading span a:link,
80
- #lightwindow_loading span a:visited {
81
- color: #09F;
82
- text-decoration: none;
83
- cursor: pointer;
84
- }
85
-
86
- #lightwindow_loading span a:hover,
87
- #lightwindow_loading span a:active {
88
- text-decoration: underline;
89
- }
90
-
91
-
92
- #lightwindow_loading img {
93
- float: left;
94
- margin: 0 10px 0 0;
95
- }
96
-
97
-
98
- /*-----------------------------------------------------------------------------------------------
99
- I liked the Navigation so much from http://www.huddletogether.com/projects/lightbox2/
100
- I mean let's face it, it works really well and is very easy to figure out.
101
- -----------------------------------------------------------------------------------------------*/
102
-
103
- #lightwindow_navigation {
104
- /* REQUIRED */
105
- position: absolute;
106
- top: 0px;
107
- left: 0px;
108
- display: none;
109
- /* REQUIRED */
110
- }
111
- /* We need to shim the navigation for IE, though its more of a sub-floor */
112
- #lightwindow_navigation_shim {
113
- /* REQUIRED */
114
- display: none;
115
- left: 0px;
116
- position: absolute;
117
- top: 0px;
118
- width: 100%;
119
- height: 100%;
120
- /* REQUIRED */
121
- }
122
-
123
- #lightwindow_navigation a,
124
- #lightwindow_navigation a:link,
125
- #lightwindow_navigation a:visited,
126
- #lightwindow_navigation a:hover,
127
- #lightwindow_navigation a:active {
128
- /* REQUIRED */
129
- outline: none;
130
- /* REQUIRED */
131
- }
132
-
133
- #lightwindow_previous,
134
- #lightwindow_next {
135
- width: 49%;
136
- height: 100%;
137
- background: transparent url(../images/blank.gif) no-repeat; /* Trick IE into showing hover */
138
- display: block;
139
- }
140
-
141
- #lightwindow_previous {
142
- float: left;
143
- left: 0px;
144
- }
145
-
146
- #lightwindow_next {
147
- float: right;
148
- right: 0px;
149
- }
150
-
151
- #lightwindow_previous:hover,
152
- #lightwindow_previous:active {
153
- background: url(../images/prevlabel.gif) left 15% no-repeat;
154
- }
155
-
156
- #lightwindow_next:hover,
157
- #lightwindow_next:active {
158
- background: url(../images/nextlabel.gif) right 15% no-repeat;
159
- }
160
-
161
- #lightwindow_previous_title,
162
- #lightwindow_next_title {
163
- display: none;
164
- }
165
-
166
- #lightwindow_galleries {
167
- width: 100%;
168
- position: absolute;
169
- z-index: 50;
170
- display: none;
171
- overflow: hidden;
172
- margin: 0 0 0 10px;
173
- bottom: 0px;
174
- left: 0px;
175
- }
176
-
177
- #lightwindow_galleries_tab_container {
178
- width: 100%;
179
- height: 0px;
180
- overflow: hidden;
181
- }
182
-
183
- a#lightwindow_galleries_tab,
184
- a:link#lightwindow_galleries_tab,
185
- a:visited#lightwindow_galleries_tab {
186
- display: block;
187
- height: 20px;
188
- width: 77px;
189
- float: right;
190
- line-height: 22px;
191
- color: #ffffff;
192
- text-decoration: none;
193
- font-weight: bold;
194
- cursor: pointer;
195
- font-size: 11px;
196
- color: #ffffbe;
197
- background: url(../images/black-70.png) repeat 0 0 transparent;
198
- }
199
-
200
- * html a#lightwindow_galleries_tab,
201
- * html a:link#lightwindow_galleries_tab,
202
- * html a:visited#lightwindow_galleries_tab {
203
- background: none;
204
- background-color: #000000;
205
- opacity: .70;
206
- filter: alpha(opacity=70);
207
- }
208
-
209
- a:hover#lightwindow_galleries_tab,
210
- a:active#lightwindow_galleries_tab {
211
- color: #ffffbe;
212
-
213
- }
214
-
215
- #lightwindow_galleries_tab_span {
216
- display: block;
217
- height: 20px;
218
- width: 63px;
219
- padding: 0 7px 0 7px;
220
- }
221
-
222
- #lightwindow_galleries_tab .up {
223
- background: url(../images/arrow-up.gif) no-repeat 60px 5px transparent;
224
- }
225
-
226
- #lightwindow_galleries_tab .down {
227
- background: url(../images/arrow-down.gif) no-repeat 60px 6px transparent;
228
- }
229
-
230
- #lightwindow_galleries_list {
231
- background: url(../images/black-70.png) repeat 0 0 transparent;
232
- overflow: hidden;
233
- height: 0px;
234
- }
235
-
236
- * html #lightwindow_galleries_list {
237
- background: none;
238
- background-color: #000000;
239
- opacity: .70;
240
- filter: alpha(opacity=70);
241
- }
242
-
243
- .lightwindow_galleries_list {
244
- width: 200px;
245
- float: left;
246
- margin: 0 0 10px 0;
247
- padding: 10px;
248
- }
249
-
250
- .lightwindow_galleries_list h1 {
251
- color: #09F;
252
- text-decoration: none;
253
- font-weight: bold;
254
- cursor: pointer;
255
- padding: 10px 0 5px 0;
256
- font-size: 16px;
257
- }
258
-
259
- .lightwindow_galleries_list li {
260
- margin: 5px 0 5px 0;
261
- list-style-type: none;
262
- }
263
-
264
- .lightwindow_galleries_list a,
265
- .lightwindow_galleries_list a:link,
266
- .lightwindow_galleries_list a:visited {
267
- display: block;
268
- line-height: 22px;
269
- color: #ffffff;
270
- text-decoration: none;
271
- font-weight: bold;
272
- cursor: pointer;
273
- padding: 0 0 0 10px;
274
- font-size: 11px;
275
- }
276
-
277
- .lightwindow_galleries_list a:hover,
278
- .lightwindow_galleries_list a:active {
279
- background: #000000;
280
- color: #ffffbe;
281
- border-left: 3px solid #ffffbe;
282
- padding: 0 0 0 7px;
283
- }
284
-
285
- #lightwindow_data {
286
- /* REQUIRED */
287
- position: absolute;
288
- /* REQUIRED */
289
- }
290
-
291
- #lightwindow_data_slide {
292
- /* REQUIRED */
293
- position: relative;
294
- /* REQUIRED */
295
- }
296
-
297
- #lightwindow_data_slide_inner {
298
- background-color: #ffffff;
299
- padding: 0 10px 10px 10px;
300
- }
301
-
302
- #lightwindow_data_caption {
303
- padding: 10px 0 0 0;
304
- color: #666666;
305
- line-height: 25px;
306
- background-color: #ffffff;
307
- clear: both;
308
- }
309
-
310
- #lightwindow_data_details {
311
- background-color: #f0f0f0;
312
- padding: 0 10px 0 10px;
313
- height: 20px;
314
- }
315
-
316
- #lightwindow_data_author_container {
317
- width: 40%;
318
- text-align: right;
319
- color: #666666;
320
- font-style: italic;
321
- font-size: 10px;
322
- line-height: 20px;
323
- float: right;
324
- overflow: hidden;
325
- }
326
-
327
- #lightwindow_data_gallery_container {
328
- font-size: 10px;
329
- width: 40%;
330
- text-align: left;
331
- color: #666666;
332
- line-height: 20px;
333
- float: left;
334
- overflow: hidden;
335
- }
336
-
337
- #lightwindow_title_bar {
338
- height: 25px;
339
- overflow: hidden;
340
- }
341
-
342
- #lightwindow_title_bar_title {
343
- color: #ffffbe;
344
- font-size: 14px;
345
- line-height: 25px;
346
- text-align: left;
347
- float: left;
348
- }
349
-
350
- a#lightwindow_title_bar_close_link,
351
- a:link#lightwindow_title_bar_close_link,
352
- a:visited#lightwindow_title_bar_close_link {
353
- float: right;
354
- text-align: right;
355
- cursor: pointer;
356
- color: #ffffbe;
357
- line-height: 25px;
358
- padding: 0;
359
- margin: 0;
360
- }
361
-
362
- a:hover#lightwindow_title_bar_close_link,
363
- a:active#lightwindow_title_bar_close_link {
364
- color: #ffffff;
365
- }
366
-
367
- /*-----------------------------------------------------------------------------------------------
368
- Theme styling stuff
369
- -----------------------------------------------------------------------------------------------*/
370
-
371
- #lightwindow p {
372
- color: #000000;
373
- padding-right: 10px;
374
- }
375
-
376
-
@@ -1 +0,0 @@
1
- require 'lightwindow_helper'
@@ -1,7 +0,0 @@
1
- require 'fileutils'
2
- %w(stylesheets images javascripts).each do |type|
3
- dir = File.join(File.dirname(__FILE__), 'assets', type)
4
- dest = File.join(File.dirname(__FILE__), '/../../../public')
5
- FileUtils.cp_r(dir, dest) #if !File.exist?(dir)
6
- end
7
- puts IO.read(File.join(File.dirname(__FILE__), 'README'))
@@ -1,31 +0,0 @@
1
- # Author:: Carlo Bertini (WaYdotNET)
2
- # WebSite:: http://blogs.ugidotnet.org/carlitoway
3
- # Based on LightBoxHelper
4
- # Many thx to Davide D'Agostino (DAddYE)
5
- require 'action_view'
6
-
7
- module ActionView
8
- module Helpers
9
- module LightWindowHelper
10
- def self.included(base)
11
- base.class_eval do
12
- include InstanceMethods
13
- end
14
- end
15
- module InstanceMethods
16
- def lightwindow_link_to(name, options = {}, html_options = {}, *parameters_for_method_reference)
17
- html_options.merge!(:class => "lightwindow") unless html_options[:class]
18
- # url_for(options) it's hack to resolve this problem
19
- # http://railsforum.com/viewtopic.php?pid=46594 (thx to DAddYE)
20
- link_to(name, url_for(options) + "/", html_options, *parameters_for_method_reference)
21
- end
22
- end
23
- end
24
- end
25
- end
26
-
27
- ActionView::Base.class_eval do
28
- include ActionView::Helpers::LightWindowHelper
29
- end
30
-
31
- ActionView::Helpers::AssetTagHelper.register_javascript_include_default 'lightwindow'
@@ -1,150 +0,0 @@
1
- [REVISION 20070905]
2
-
3
- [NEW] Explicitly ignore add_foreign_key() and remove_foreign_key() when running under SQLite. This solves issues when migrating schema from other databases.
4
-
5
- [REVISION 20070707]
6
-
7
- [NEW] Make the table name in table definition accessible.
8
-
9
- [REVISION 20070529]
10
-
11
- [FIXED] Undefined constant errors when patching connection adapters. Rails now only loads the connection adapter for the specified database (it used to load them all).
12
-
13
- [REVISION 20070503]
14
-
15
- [NEW] Support for SQL92 [NOT] DEFERRABLE on foreign keys.
16
- [CHANGED] Foreign key names are now assigned by the database unless an explicit name is given (using :name).
17
-
18
- [REVISION 20070221]
19
-
20
- [NEW] Where possible, determine if a column is case sensitive (or not) based on the presence of case-insensitive indexes.
21
-
22
- [REVISION 20070220]
23
-
24
- [CHANGED] :ignore_case => true option when creating indexes change to :case_sensitive => false in keeping with the new Rails 1.2 option of the same name on validates_uniqueness_of. You may need to re-create your schema.rb (by using rake db:schema:dump) to pickup the new syntax.
25
-
26
- [FIXED] Multi-column, case-insensitive indexes only selecting one of the columns!
27
-
28
- [REVISION 20070219]
29
-
30
- [FIXED] Can't drop table referenced in a foreign-key. All reverse foreign keys are now dropped before dropping the table.
31
-
32
- [CHANGED] Upgrade to Rails 1.2.2.
33
-
34
- [REVISION 20070217]
35
-
36
- [NEW] Support reverse_foreign_keys for MySQL using the (typically bastardised) MySQL flavour of information_schema.
37
-
38
- [CHANGED] Merged ForiegnKey and ForeignKeyDefinition as they were practically the same.
39
-
40
- [REVISION 20070214]
41
-
42
- [NEW] :name option when creating foreign keys.
43
-
44
- [FIXED] Foreign key names are preserved in schema dumps. This means they will be copied from one database to another rather than leaving it up to the target database to make one up.
45
-
46
- [NEW] Foreign keys are automatically assigned a name (fkey_<tablename>_col1_and_col2_and_col3) if none is specified.
47
-
48
- [REVISION 20061206]
49
-
50
- [NEW] Added :ignore_case option to add_index in PostgreSQL to support case-insensitive indexes. The generated indexes are actually expression indexes of the form: lower(column_name).
51
-
52
- [REVISION 20061206]
53
-
54
- [NEW] reverse_foreign_keys methods.
55
-
56
- [REVISION 20061202]
57
-
58
- [CHANGED] Use Rails 1.2 alias_method_chain.
59
-
60
- [CHANGED] Separate modules into individual files.
61
-
62
- [REVISION 20061129]
63
-
64
- [FIXED] Foreign-key ON DELETE and ON UPDATE flipped in schema dump.
65
-
66
- [REVISION 20061121]
67
-
68
- [FIXED] MySQL doesn't support SQL92 'DROP CONSTRAINT SYNTAX'; use 'DROP FOREIGN KEY' instead.
69
-
70
- [REVISION 20061116]
71
-
72
- [FIXED] 'DROP FOREIGN KEY' should be 'DROP CONSTRAINT'.
73
-
74
- [REVISION 20061114]
75
-
76
- [CHANGED] Removed Column.required as it didn't handle updates correctly. Instead we now have Column.required_on which returns an appropriate event (nil, :save, :update).
77
-
78
- [REVISION 20061110]
79
-
80
- [FIXED] MySQL driver uses single AND double quotes around identifiers.
81
-
82
- [REVISION 20061028]
83
-
84
- [FIXED] Syntax error when generating schema under MySQL when a foreign key specifies both ON UPDATE and ON DELETE.
85
-
86
- [REVISION 20061024]
87
-
88
- [FIXED] Foreign key associations for key-word table-names are quoted in postgresql.
89
-
90
- [REVISION 20061011]
91
-
92
- [NEW] ActiveRecord::Base.base_class? returns true if the class is a base class; false otherwise.
93
-
94
- [REVISION 20061009]
95
-
96
- [NEW] ActiveRecord::Base.abstract_class? returns true if class name starts with 'Abstract'; false otherwise.
97
-
98
- [REVISION 20061001]
99
-
100
- [NEW] remove_foreign_key for completeness.
101
-
102
- [FIXED] MySQL barfs when attempting to drop a column that participates in a foreign key constraint.
103
-
104
- [REVISION 20060921]
105
-
106
- [FIXED] add_foreign_key doesn't support on_delete or on_update--It doesn't do anything with the options hash.
107
-
108
- [REVISION 20060919]
109
-
110
- [CHANGED] Column.unique is now derived based on the presence of Column.unique_scope (which is an empty array for single column unique indexes).
111
-
112
- [REVISION 20060915]
113
-
114
- [NEW] Unique columns contain scoping meta-data for multi-column unique indexes. The column to be marked as unique is either the last column not ending in '_id' or simply the last column. This follows the typical composite unique index column ordering where the scoping is specified first but will attempt to find the last non-foreign-key column just-in-case. Eg, both add_index :states, [:country_id, :name] and add_index :states, [:name, :country_id] would result in the name column marked as unique with a scope of [:country_id].
115
-
116
- [REVISION 20060913]
117
-
118
- [NEW] Column.required: returns true if a column is marked as not allowing null and has no default.
119
-
120
- [REVISION 20060911]
121
-
122
- [NEW] Patch rails MysqlColumn so that empty string defaults are treated as nil when a column is marked as NOT NULL. This primarily affects schema dumps incorrectly assigning a default of 0 to numbers and '' to strings when none was originally specified.
123
-
124
- [REVISION 20060909]
125
-
126
- [CHANGED] Renamed from Foreign Key Support.
127
-
128
- [NEW] ActiveRecord::Base.indexes.
129
-
130
- [REVISION 20060906]
131
-
132
- [FIXED] :on_update with :on_delete producing invalid SQL.
133
-
134
- [REVISION 20060905]
135
-
136
- [NEW] Schema dumper outputs foreign keys when available.
137
-
138
- [NEW] Foreign-key meta-data for: PostgreSQL; and MySQL. (Still needs a bit of DRY-ing up but it works which is the first step.)
139
-
140
- [REVISION 20060901]
141
-
142
- [FIXED] Incorrect generation of ON UPDATE/ON DELETE clauses.
143
-
144
- [NEW] Support :restrict in ON UPDATE/ON DELETE clauses.
145
-
146
- [NEW] Preliminary support for querying foreign-keys in PostgreSQL.
147
-
148
- [REVISION 20060831]
149
-
150
- [NEW] Initial version.