backlog 0.9.0 → 0.9.1

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/History.txt CHANGED
@@ -1,3 +1,13 @@
1
+ == 0.9.1 2007-09-09
2
+
3
+ === Fixes
4
+
5
+ * Fixed loading of database config in production environment.
6
+ * Fixed misaligned columns in weekly work sheet when invoicing is disabled.
7
+ * Added "Back" link from Show Backlog view.
8
+ * Fixed focus in Edit Backlog view.
9
+ * Added navigation buttons in Edit Backlog view.
10
+
1
11
  == 0.9.0 2007-09-07
2
12
 
3
13
  === Features
data/README.txt CHANGED
@@ -32,8 +32,8 @@ If you have concrete needs, and are willing to beta test the integration, please
32
32
 
33
33
  * Install ruby
34
34
  * Install RubyGems
35
- * Install PostgreSQL
36
- * Install ImageMagick or GraphicsMagick
35
+ * Install PostgreSQL (or other database management system)
36
+ * Install ImageMagick or GraphicsMagick (only required if you want graphs)
37
37
  * run <tt>sudo gem install backlog -y</tt>
38
38
  * run <tt>sudo backlog setup_unix</tt>
39
39
  * run <tt>sudo backlog start</tt>
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ Hoe.new("backlog", APP::VERSION) do |p|
19
19
  p.author = 'Uwe Kubosch'
20
20
  p.email = 'uwe@kubosch.no'
21
21
  p.remote_rdoc_dir = '' # Release to root
22
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
22
+ p.changes = p.paragraphs_of('History.txt', 0..4).join("\n\n")
23
23
  p.rdoc_pattern = /^(app\/(controllers|helpers|models)|lib|bin)|txt$/
24
24
  p.clean_globs = ['doc']
25
25
  p.spec_extras = {
@@ -37,13 +37,17 @@ module ApplicationHelper
37
37
  image_options.update :alt => title, :title => title
38
38
  link_to image_tag(image_source, image_options), url_options, post ? {:method => :post} : nil
39
39
  end
40
+
41
+ def detour?
42
+ not session[:detours].nil?
43
+ end
40
44
 
41
- def back_or_link_to(title, options)
45
+ def back_or_link_to(title, options = nil)
42
46
  if session[:detours]
43
47
  options = {:return_from_detour => true}.update(session[:detours].last)
44
48
  logger.debug "linked return from detour: #{options}"
45
49
  end
46
- link_to title, options
50
+ link_to(title, options) if options
47
51
  end
48
52
 
49
53
  def t(time_as_float)
data/app/models/task.rb CHANGED
@@ -234,6 +234,10 @@ class Task < ActiveRecord::Base
234
234
  root_task
235
235
  end
236
236
 
237
+ def invoicing?
238
+ root_task.backlog.enable_invoicing?
239
+ end
240
+
237
241
  def track_done?
238
242
  root_task.backlog.track_done
239
243
  end
@@ -0,0 +1,3 @@
1
+ <%=image_link_to 'arrow_up.png', l(:backlogs), :action => :list %>
2
+ <%=image_detour_to('clipboard.png', l(:edit), :controller => 'backlogs', :action => :edit, :id => @backlog)%>
3
+ <%=image_detour_to('clipboard.png', l(:show), :controller => 'backlogs', :action => :show, :id => @backlog)%>
@@ -43,5 +43,5 @@
43
43
 
44
44
 
45
45
  <script type="text/JavaScript">
46
- document.forms[0].elements[0].focus();
46
+ document.getElementById('backlog_name').focus();
47
47
  </script>
@@ -1,8 +1,6 @@
1
1
  <div class="mainblock">
2
2
  <div class="btitle">
3
- <%=image_link_to 'arrow_up.png', l(:backlogs), :action => :list %>
4
- <%=image_detour_to('clipboard.png', l(:edit), :controller => 'backlogs', :action => :edit)%>
5
- <%=image_detour_to('clipboard.png', l(:show), :controller => 'backlogs', :action => :show)%>
3
+ <%=render :partial => 'buttons'%>
6
4
  <h4><%=l :tasks%></h4>
7
5
  </div>
8
6
 
@@ -19,6 +17,7 @@
19
17
  <%= render :partial => '/tasks/task/', :locals => {:task => @task, :i => i += 1, :active => true, :highlight_task => false, :update => :maincontent} %>
20
18
  <% end %>
21
19
  </table>
20
+ <%= back_or_link_to(l :back) %>
22
21
  </div>
23
22
 
24
23
  <div class="mainblock">
@@ -1,6 +1,11 @@
1
1
  <% @page_title = "#{l(:editing)} #{l(:backlog)}" %>
2
2
 
3
3
  <div id="spotlight">
4
+ <div class="btitle">
5
+ <%=render :partial => 'buttons'%>
6
+ <h4><%=@backlog.name%></h4>
7
+ </div>
8
+
4
9
  <% form_tag :action => 'update', :id => @backlog do %>
5
10
  <%= render :partial => 'form' %>
6
11
  <%= submit_tag l(:save) %>
@@ -59,9 +59,11 @@ end %>]
59
59
  <%=link_to(h(@work.task.backlog.name), :controller => 'backlogs', :action => :show, :id => @work.task.backlog) %>
60
60
  <%=link_to(h(@work.task.description), :controller => 'periods', :action => :show, :id => @work.task.period, :task_id => @work.task.id) %>
61
61
  </td>
62
+ <% if invoicing %>
62
63
  <td id="invoice_<%=@work.id%>">
63
- <%=check_box(:work, :invoice, :onchange => "new Ajax.Updater('invoice_#{@work}', '#{url_for(:action => :set_work_invoice, :id => @work)}' + '?value=' + this.checked);") if @work.task.period && @work.task.period.invoice? %>
64
+ <%=check_box(:work, :invoice, :onchange => "new Ajax.Updater('invoice_#{@work}', '#{url_for(:action => :set_work_invoice, :id => @work)}' + '?value=' + this.checked);") if @work.task.invoicing? %>
64
65
  </td>
66
+ <% end %>
65
67
  <% if track_times %>
66
68
  <td align="right"><%=in_place_editor_field(:work, :started_at_time, :class => :task_time) %></td>
67
69
  <td align="right"><%=in_place_editor_field(:work, :completed_at_time, :class => :task_time) %></td>
@@ -69,7 +71,9 @@ end %>]
69
71
  <td align="right"><%=in_place_editor_field(:work, :hours, {}, :value => '%.2f' % @work.hours) %></td>
70
72
  <% else %>
71
73
  <td/>
74
+ <% if invoicing %>
72
75
  <td/>
76
+ <% end %>
73
77
  <% if track_times %>
74
78
  <td/>
75
79
  <td/>
@@ -1,6 +1,18 @@
1
1
  require 'yaml'
2
2
  require 'rbconfig'
3
3
 
4
+ # Be sure to restart your web server when you modify this file.
5
+
6
+ # Uncomment below to force Rails into production mode when
7
+ # you don't control web/app server and can't set it the proper way
8
+ # ENV['RAILS_ENV'] ||= 'production'
9
+
10
+ # Specifies gem version of Rails to use when vendor/rails is not present
11
+ # RAILS_GEM_VERSION = '1.1.4'
12
+
13
+ # Bootstrap the Rails environment, frameworks, and default configuration
14
+ require File.join(File.dirname(__FILE__), 'boot')
15
+
4
16
  # The following section has been added to load database settings from system config.
5
17
  APP_CONFIG_FILE = Config::CONFIG["sysconfdir"] + '/backlog.conf'
6
18
  if File.exists? APP_CONFIG_FILE
@@ -16,18 +28,6 @@ if File.exists? APP_CONFIG_FILE
16
28
  end
17
29
  end
18
30
 
19
- # Be sure to restart your web server when you modify this file.
20
-
21
- # Uncomment below to force Rails into production mode when
22
- # you don't control web/app server and can't set it the proper way
23
- # ENV['RAILS_ENV'] ||= 'production'
24
-
25
- # Specifies gem version of Rails to use when vendor/rails is not present
26
- # RAILS_GEM_VERSION = '1.1.4'
27
-
28
- # Bootstrap the Rails environment, frameworks, and default configuration
29
- require File.join(File.dirname(__FILE__), 'boot')
30
-
31
31
  Rails::Initializer.run do |config|
32
32
  # Settings in config/environments/* take precedence those specified here
33
33
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.0
7
- date: 2007-09-07 00:00:00 +02:00
6
+ version: 0.9.1
7
+ date: 2007-09-09 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
10
10
  - lib
@@ -1742,6 +1742,7 @@ files:
1742
1742
  - app/views/backlogs
1743
1743
  - app/views/backlogs/_name_list.rhtml
1744
1744
  - app/views/backlogs/list.rhtml
1745
+ - app/views/backlogs/_buttons.rhtml
1745
1746
  - app/views/backlogs/show.rhtml
1746
1747
  - app/views/backlogs/_form.rhtml
1747
1748
  - app/views/backlogs/new.rhtml