backlog 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,18 @@
1
+ == 0.12.3 2007-11-10
2
+
3
+ === Fixes
4
+
5
+ * Fix bug in update of burn down chart when updating start time for task in progress.
6
+ * Fixed wrong update of page after update in "list started" view.
7
+ * Fixed bug when finishing a task by entering 0 estimation point.
8
+ * Speed up of finish and abort tasks.
9
+ * Fixed bad layout in Safari.
10
+ * Now set focus on user name field in login dialog on Safari.
11
+
12
+ === Known bugs
13
+
14
+ * Finishing or reopening tasks makes remaining tasks show wrong priority number.
15
+
1
16
  == 0.12.2 2007-11-08
2
17
 
3
18
  ===Features
@@ -24,7 +24,7 @@ class EstimatesController < ApplicationController
24
24
  # Only necessary since we have an unecessary complex update of estimates
25
25
  @task.reload
26
26
  if @task.finished?
27
- render :template => '/tasks/finish_ajax', :layout => false
27
+ render :template => '/tasks/finish', :layout => false
28
28
  end
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  class TasksController < ApplicationController
2
- skip_before_filter :populate_layout, :only => [:create, :update, :destroy, :set_task_description, :move_to, :move_to_next_period, :move_to_period, :reopen, :start_work]
2
+ skip_before_filter :populate_layout, :only => [:create, :update, :destroy, :set_task_description, :move_to, :move_to_next_period, :move_to_period, :reopen, :start_work, :finish, :abort]
3
3
 
4
4
  verify :method => :post, :except => [ :new, :show, :edit, :list_started, :move_to_next_period],
5
5
  :redirect_to => { :controller => 'backlogs' }
@@ -56,7 +56,7 @@ module TasksHelper
56
56
  end
57
57
 
58
58
  def update_burn_down_chart(page)
59
- page['burn_down_chart'].src = url_for(:controller => 'periods', :action => :burn_down_chart_thumbnail, :id => @task.period_id, :rnd => rand)
59
+ page['burn_down_chart'].src = url_for(:controller => 'periods', :action => :burn_down_chart_thumbnail, :id => @task.period.id, :rnd => rand)
60
60
  end
61
61
 
62
62
  def record(page, script)
@@ -7,5 +7,5 @@ if @success
7
7
  page.insert_html :bottom, :completed_tasks, :partial => '/tasks/task'
8
8
  page.visual_effect :appear, "task_#{@task.id}"
9
9
  end
10
- page['burn_down_chart'].src = url_for(:controller => 'periods', :action => :burn_down_chart_thumbnail, :id => @task.period_id, :rnd => rand)
10
+ update_burn_down_chart(page)
11
11
  end
@@ -28,7 +28,7 @@
28
28
  <%=submit_tag('checkmark', :value => l(:save), :style => 'display: none')%>
29
29
  <% if @task.work_started? -%>
30
30
  <%=f.text_field 'started_at_time', :id => "work_#{@task.started_work.id}_started_at_time", :tabindex => i+1, :value => @task.started_work.started_at.strftime('%H:%M'),
31
- :class => :task_time, :maxlength => 5, :onkeypress => "handleEvent(this, event, #{@task.id})" %>
31
+ :class => :task_time, :maxlength => 5 %>
32
32
  <% elsif @task.track_times? && @task.period && @task.period.active? %>
33
33
  <%=image_link_to_remote 'hammer.png', l(:start_work), {:controller => 'tasks', :action => :start_work, :id => @task.id}, nil, true %>
34
34
  <% end -%>
@@ -50,7 +50,7 @@
50
50
  <%= submit_tag('checkmark', :value => l(:save), :style => 'display: none')%>
51
51
  <% unless @task.track_times? || @task.work_started? || @task.finished_at -%>
52
52
  <%=text_field 'work', 'hours', :tabindex => i+1, :id => "#{@task.id}_done",
53
- :class => :task_hours, :maxlength => 4, :onkeypress => "handleEvent(this, event, #{@task.id})",
53
+ :class => :task_hours, :maxlength => 4,
54
54
  :ondblclick => "form.elements[1].style.display = 'inline';this.style.display = 'none'" -%>
55
55
  <% end -%>
56
56
  <%=t @task.total_done if @task.total_done != 0%>
@@ -63,18 +63,18 @@
63
63
  <% remote_form_for(:estimate, :url => {:controller => 'estimates', :action => :create_ajax, :id => @task}) do |f| -%>
64
64
  <% if @task.track_todo? -%>
65
65
  <% if @task.period.nil? || @task.period.active_or_future? -%>
66
- <%=f.text_field :todo, :tabindex => i+2, :id => "#{@task.id}_todo", :value => @task.todo, :class => :task_hours, :maxlength => 4, :onkeypress => "handleEvent(this, event, #{@task.id})" %>
66
+ <%=f.text_field :todo, :tabindex => i+2, :id => "#{@task.id}_todo", :value => @task.todo, :class => :task_hours, :maxlength => 4 %>
67
67
  <% else -%>
68
68
  <%=@task.todo %>
69
69
  <% end -%>
70
70
  <% end -%>
71
71
  <% if (not @task.track_times?) && !@task.work_started? && (@task.period.nil? || @task.period.active?) %>
72
- <%= image_link_to_remote('checkmark.png', l(:complete), {:controller => 'tasks', :action => :finish, :id => @task}, nil, true)%>
72
+ <%=image_link_to_remote('checkmark.png', l(:complete), {:controller => 'tasks', :action => :finish, :id => @task}, nil, true)%>
73
73
  <% end -%>
74
74
  <% end -%>
75
75
  <% end -%>
76
76
  </td>
77
- <td align="right" nowrap="true" width="1">
77
+ <td align="right" nowrap="true" width="54">
78
78
  <% form_tag({:controller => 'tasks', :action => 'update', :id => @task}) do %>
79
79
  <% if @task.active? %>
80
80
  <% if @task.loggable? %>
@@ -50,7 +50,7 @@ function handleEvent(field, event, id) {
50
50
  <%= render :partial => '/tasks/fields_header', :locals => {:backlog => task.root_task.backlog, :active => true, :track_times => @tasks.find {|t|t.period && t.period.active?}} %>
51
51
  <% current_period = task.period %>
52
52
  <% end %>
53
- <%=render :partial => 'task', :locals => { :task => task, :i => i, :active => true, :highlight_task => (task == @selected_task), :update => :spotlight } %>
53
+ <%=render :partial => 'task', :locals => { :task => task, :i => i, :active => true, :highlight_task => (task == @selected_task), :update => :spotlight, :hidden => false } %>
54
54
  <% i += 1 %>
55
55
  <% end %>
56
56
 
@@ -64,7 +64,7 @@ function handleEvent(field, event, id) {
64
64
  document.getElementById('<%=@selected_task.id%>_description').focus();
65
65
  document.getElementById('<%=@selected_task.id%>_description').select();
66
66
  <% else %>
67
- document.links['new_task'].focus();
67
+ //document.links['new_task'].focus();
68
68
  <% end %>
69
69
  </script>
70
70
  </div>
@@ -2,30 +2,32 @@
2
2
 
3
3
  <div title="<%= title_helper %>" class="form">
4
4
  <div class="form-padding">
5
- <%= start_form_tag_helper %>
5
+ <% form_for :user do |f| %>
6
6
  <table>
7
7
  <tr class="two_columns">
8
8
  <td class="prompt"><label>Login:</label></td>
9
- <td class="value"><%= text_field 'user', 'login', :size => 30 %></td>
9
+ <td class="value"><%=f.text_field :login, :size => 30 %></td>
10
10
  </tr>
11
11
  <tr class="two_columns">
12
12
  <td class="prompt"><label>Password:</label></td>
13
- <td class="value"><%= password_field 'user', 'password', :size => 30 %></td>
13
+ <td class="value"><%=f.password_field :password, :size => 30 %></td>
14
14
  </tr>
15
15
  <tr class="two_columns">
16
16
  <td class="prompt"><label>Remember me:</label></td>
17
- <td class="value"><%= check_box 'user', 'autologin', :checked => !cookies['autologin'] %></td>
17
+ <td class="value"><%=f.check_box :autologin, :checked => !cookies['autologin'] %></td>
18
18
  </tr>
19
19
  </table>
20
20
 
21
21
  <div class="button-bar">
22
- <%= submit_tag l(:log_in) %>
23
- <%= link_to 'Register for an account', :action => 'signup' %> |
24
- <%= link_to 'Forgot my password', :action => 'forgot_password' %> </div>
25
- </form>
22
+ <%=submit_tag l(:log_in) %>
23
+ <%=link_to 'Register for an account', :action => 'signup' %> |
24
+ <%=link_to 'Forgot my password', :action => 'forgot_password' %>
25
+ </div>
26
+ <% end %>
26
27
  </div>
27
28
  </div>
28
29
 
29
- <script type="text/JavaScript">
30
- document.getElementById('user_login').select();
31
- </script>
30
+ <%=update_page_tag do |page|
31
+ page['user_login'].focus
32
+ page['user_login'].select
33
+ end %>
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.12.2
7
- date: 2007-11-09 00:00:00 +01:00
6
+ version: 0.12.3
7
+ date: 2007-11-10 00:00:00 +01:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
10
10
  - lib