backlog 0.34.2 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/#SearchRequest.xml# +3443 -0
  2. data/History.txt +24 -1
  3. data/Rakefile +1 -1
  4. data/app/controllers/application.rb +13 -44
  5. data/app/controllers/works_controller.rb +7 -3
  6. data/app/models/absence.rb +1 -1
  7. data/app/models/sidebar.rb +40 -0
  8. data/app/views/layouts/mwrt002.rhtml +2 -1
  9. data/app/views/periods/_sidebar_block.rhtml +11 -0
  10. data/app/views/tasks/_task.rhtml +4 -2
  11. data/app/views/works/list_excel.rhtml +3 -1
  12. data/etc/backlog.conf +7 -0
  13. data/jira.log +28423 -0
  14. data/public/images/ajax-loading.gif +0 -0
  15. data/public/images/arrow-down.gif +0 -0
  16. data/public/images/arrow-up.gif +0 -0
  17. data/public/images/black-70.png +0 -0
  18. data/public/images/black.png +0 -0
  19. data/public/images/nextlabel.gif +0 -0
  20. data/public/images/prevlabel.gif +0 -0
  21. data/public/javascripts/lightwindow.js +1921 -0
  22. data/public/stylesheets/lightwindow.css +376 -0
  23. data/vendor/plugins/backlog_jira/README +4 -0
  24. data/vendor/plugins/backlog_jira/Rakefile +22 -0
  25. data/vendor/plugins/backlog_jira/generators/backlog_jira/backlog_jira_generator.rb +13 -0
  26. data/vendor/plugins/backlog_jira/generators/backlog_jira/templates/migration.rb +10 -0
  27. data/vendor/plugins/backlog_jira/generators/history_model/history_model_generator.rb +39 -0
  28. data/vendor/plugins/backlog_jira/generators/history_model/templates/fixtures.yml +17 -0
  29. data/vendor/plugins/backlog_jira/generators/history_model/templates/functional_test.rb +129 -0
  30. data/vendor/plugins/backlog_jira/generators/history_model/templates/model.rb +4 -0
  31. data/vendor/plugins/backlog_jira/generators/history_model/templates/unit_test.rb +75 -0
  32. data/vendor/plugins/backlog_jira/init.rb +59 -0
  33. data/vendor/plugins/backlog_jira/install.rb +1 -0
  34. data/vendor/plugins/backlog_jira/lib/backlog_jira.rb +1 -0
  35. data/vendor/plugins/backlog_jira/tasks/backlog_jira_tasks.rake +4 -0
  36. data/vendor/plugins/backlog_jira/test/backlog_jira_test.rb +8 -0
  37. data/vendor/plugins/backlog_jira/uninstall.rb +1 -0
  38. data/vendor/plugins/lightwindow_helper/README +33 -0
  39. data/vendor/plugins/lightwindow_helper/assets/images/ajax-loading.gif +0 -0
  40. data/vendor/plugins/lightwindow_helper/assets/images/arrow-down.gif +0 -0
  41. data/vendor/plugins/lightwindow_helper/assets/images/arrow-up.gif +0 -0
  42. data/vendor/plugins/lightwindow_helper/assets/images/black-70.png +0 -0
  43. data/vendor/plugins/lightwindow_helper/assets/images/black.png +0 -0
  44. data/vendor/plugins/lightwindow_helper/assets/images/nextlabel.gif +0 -0
  45. data/vendor/plugins/lightwindow_helper/assets/images/prevlabel.gif +0 -0
  46. data/vendor/plugins/lightwindow_helper/assets/javascripts/lightwindow.js +1921 -0
  47. data/vendor/plugins/lightwindow_helper/assets/stylesheets/lightwindow.css +376 -0
  48. data/vendor/plugins/lightwindow_helper/init.rb +1 -0
  49. data/vendor/plugins/lightwindow_helper/install.rb +7 -0
  50. data/vendor/plugins/lightwindow_helper/lib/lightwindow_helper.rb +31 -0
  51. metadata +70 -3
@@ -0,0 +1,376 @@
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
+
@@ -0,0 +1,4 @@
1
+ BacklogJira
2
+ ===========
3
+
4
+ Description goes here
@@ -0,0 +1,22 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
4
+
5
+ desc 'Default: run unit tests.'
6
+ task :default => :test
7
+
8
+ desc 'Test the backlog_jira plugin.'
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'lib'
11
+ t.pattern = 'test/**/*_test.rb'
12
+ t.verbose = true
13
+ end
14
+
15
+ desc 'Generate documentation for the backlog_jira plugin.'
16
+ Rake::RDocTask.new(:rdoc) do |rdoc|
17
+ rdoc.rdoc_dir = 'rdoc'
18
+ rdoc.title = 'BacklogJira'
19
+ rdoc.options << '--line-numbers' << '--inline-source'
20
+ rdoc.rdoc_files.include('README')
21
+ rdoc.rdoc_files.include('lib/**/*.rb')
22
+ end
@@ -0,0 +1,13 @@
1
+ class BacklogJiraGenerator < Rails::Generator::NamedBase
2
+ def manifest
3
+ record do |m|
4
+ m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "create_backlog_jira"
5
+ end
6
+ end
7
+
8
+ protected
9
+ def banner
10
+ "Usage: ./script/generate backlog_jira"
11
+ end
12
+
13
+ end
@@ -0,0 +1,10 @@
1
+ class CreateBacklogJira < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :tasks, :jira_issue, :string, :limit => 16
4
+ add_index :tasks, :jira_issue
5
+ end
6
+
7
+ def self.down
8
+ remove_column :tasks, :jira_issue
9
+ end
10
+ end
@@ -0,0 +1,39 @@
1
+ class HistoryModelGenerator < Rails::Generator::NamedBase
2
+ default_options :skip_migration => false
3
+
4
+ def manifest
5
+ record do |m|
6
+ # # Check for class naming collisions.
7
+ m.class_collisions class_path, "#{class_name}History"
8
+ # m.class_collisions class_path, "#{class_name}HistoryTest"
9
+ #
10
+ # # Model, test, and fixture directories.
11
+ m.directory File.join('app/models', class_path)
12
+ # m.directory File.join('test/unit', class_path)
13
+ # m.directory File.join('test/fixtures', class_path)
14
+ #
15
+ # # Model class, unit test, and fixtures.
16
+ m.template 'model.rb', File.join('app/models', class_path, "#{file_name}_history.rb")
17
+ # m.template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_history_test.rb")
18
+ # m.template 'fixtures.yml', File.join('test/fixtures', class_path, "#{table_name}_history.yml")
19
+
20
+ m.dependency 'model', ["#{class_name}History"], :collision => :skip, :skip_migration => true
21
+
22
+ unless options[:skip_migration]
23
+ m.dependency 'history_migration', [class_name], :collision => :skip, :skip_migration => true
24
+ end
25
+ end
26
+ end
27
+
28
+ protected
29
+ def banner
30
+ "Usage: #{$0} generate ModelName"
31
+ end
32
+
33
+ def add_options!(opt)
34
+ opt.separator ''
35
+ opt.separator 'Options:'
36
+ opt.on("--skip-migration",
37
+ "Don't generate a migration file for this history model") { |v| options[:skip_migration] = v }
38
+ end
39
+ end