backlog 0.14.1 → 0.14.2

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.
@@ -1,3 +1,15 @@
1
+ == 0.14.2 2007-11-19
2
+
3
+ === Features
4
+
5
+ * Changed to allow changing of work account on already existing work records.
6
+ * Hide fields for task estimate when editing work records.
7
+ * Made detours from weekly work sheet return to the weekly work sheet.
8
+
9
+ === Fixes
10
+
11
+ * Fixed bug in Work form.
12
+
1
13
  == 0.14.1 2007-11-19
2
14
 
3
15
  === Features
@@ -72,6 +72,7 @@ class WorksController < ApplicationController
72
72
  @work = Work.find(params[:id])
73
73
  @work.attributes = params[:work]
74
74
  @estimate = Estimate.new(params[:estimate])
75
+ @work_accounts = WorkAccount.find(:all)
75
76
  @tasks = Task.find_open
76
77
  @users = User.find(:all)
77
78
  end
@@ -1,12 +1,11 @@
1
1
  <!--[form:work]-->
2
2
 
3
3
  <p><%=l :work_account%>:<br/>
4
- <% if @work.work_account %>
5
- <h4><%=link_to @work.work_account.name, :controller => 'work_accounts', :action => :edit, :id => @work.work_account_id %></h4></p>
6
- <%= hidden_field 'work', 'work_account_id' %>
7
- <% else %>
8
- <%= select 'work', 'work_account_id', @work_accounts.map{|wa| [wa.name, wa.id]}.sort %></p>
9
- <% end %>
4
+ <%= select 'work', 'work_account_id', @work_accounts.map{|wa| [wa.name, wa.id]}.sort %>
5
+ <% if @work.work_account -%>
6
+ <%=image_detour_to('work_account.png', "#{l(:work_account)} #{@work.work_account.name}", {:controller => 'work_accounts', :action => :edit, :id => @work.work_account}, {:class => 'image-submit', :style => 'vertical-align: bottom'}) %>
7
+ <% end -%>
8
+ </p>
10
9
 
11
10
  <p><%=l :task%>:<br/>
12
11
  <% if @work.task %>
@@ -72,6 +71,7 @@
72
71
 
73
72
  <br clear="all"/>
74
73
 
74
+ <% if params[:estimate] %>
75
75
  <% if @work.task.nil? || @work.task.track_todo?%>
76
76
  <p><label for="estimate_todo"><%=l :todo%></label><br/>
77
77
  <%= text_field 'estimate', 'todo', :class => :task_hours %>
@@ -88,6 +88,7 @@
88
88
  <br clear="all" />
89
89
  </p>
90
90
  <% end %>
91
+ <% end %>
91
92
 
92
93
  <!--[eoform:work]-->
93
94
 
@@ -55,10 +55,10 @@ end %>]
55
55
  <% day_totals[day] += @work.hours %>
56
56
  <% week_total += @work.hours %>
57
57
  <td>
58
- <%=link_to(h(@work.task.period.name), :controller => 'periods', :action => :show, :id => @work.task.period) if @work.task && @work.task.period %>
59
- <%=link_to(h(@work.task.root_task.backlog.name), :controller => 'backlogs', :action => :show, :id => @work.task.root_task.backlog) if @work.task %>
60
- <%=link_to(h(@work.task.description), :controller => 'periods', :action => :show, :id => @work.task.period, :task_id => @work.task.id) if @work.task%>
61
- <%=link_to(l(:edit), :controller => 'works', :action => :edit, :id => @work.id) %>
58
+ <%=image_detour_to('hammer.png', l(:edit), {:style => "float: right;"}, :controller => 'works', :action => :edit, :id => @work.id) %>
59
+ <%=detour_to(h(@work.task.period.name), :controller => 'periods', :action => :show, :id => @work.task.period) if @work.task && @work.task.period %>
60
+ <%=detour_to(h(@work.work_account.name), :controller => 'work_accounts', :action => :show, :id => @work.work_account_id) %>:
61
+ <%=detour_to(h(@work.task.description), :controller => 'tasks', :action => :edit, :id => @work.task_id) if @work.task_id%>
62
62
  </td>
63
63
  <% if invoicing %>
64
64
  <td id="invoice_<%=@work.id%>">
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.14.1
6
+ version: 0.14.2
7
7
  date: 2007-11-19 00:00:00 +01:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths: