backlog 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.5.7 2007-08-06
2
+
3
+ * Fixed bug when linking from a task after drag-and-drop reordering.
4
+
1
5
  == 0.5.6 2007-08-06
2
6
 
3
7
  * Improved the list of started tasks
@@ -7,17 +7,23 @@ module ApplicationHelper
7
7
  def image_button_to(image_source, title, options)
8
8
  html = ''
9
9
  html += image_submit_tag image_source, :class => 'image-submit', :alt => title, :title => title,
10
- :id => "#{title}_#{options[:id]}", :name => title,
11
- :onclick => "form.action='#{url_for(options)}'"
10
+ :id => "#{title}_#{options[:id]}", :name => title,
11
+ :onclick => "form.action='#{url_for(options)}'"
12
12
  end
13
-
13
+
14
14
  def detour_to(title, options, html_options = nil)
15
15
  link_to title, options_for_detour(options), html_options
16
16
  end
17
17
 
18
18
  def options_for_detour(options)
19
19
  detour_options = {:detour => params.reject {|k, v| [:detour, :return_from_detour].include? k.to_sym}}.update(options)
20
- detour_options[:detour].update({:action => params[:action] + '_no_layout'}) if (not options[:layout].nil?) && params[:action] !~ /_no_layout$/
20
+ if options[:layout]== false
21
+ if params[:action] !~ /_no_layout$/
22
+ detour_options[:detour].update({:action => params[:action] + '_no_layout'})
23
+ end
24
+ elsif params[:action] =~ /_no_layout$/
25
+ detour_options[:detour].update({:action => params[:action][0..-11]})
26
+ end
21
27
  detour_options
22
28
  end
23
29
 
@@ -30,11 +36,11 @@ module ApplicationHelper
30
36
  def back_or_link_to(title, options)
31
37
  if session[:detours]
32
38
  options = {:return_from_detour => true}.update(session[:detours].last)
33
- puts "linked return from detour: #{options}"
39
+ puts "linked return from detour: #{options}"
34
40
  end
35
41
  link_to title, options
36
42
  end
37
-
43
+
38
44
  def t(time_as_float)
39
45
  "#{time_as_float.to_i}:#{'%02d' % (time_as_float.frac * 60).to_i}"
40
46
  end
@@ -46,5 +52,5 @@ puts "linked return from detour: #{options}"
46
52
  super object
47
53
  end
48
54
  end
49
-
55
+
50
56
  end
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.5.6
6
+ version: 0.5.7
7
7
  date: 2007-08-06 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths: