backlog 0.5.10 → 0.6.0

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,8 @@
1
+ == 0.6.0 2007-08-07
2
+
3
+ * Added backlog list view
4
+
5
+
1
6
  == 0.5.10 2007-08-06
2
7
 
3
8
  * Made burn down graph show progress made on the first day
@@ -17,6 +17,10 @@ class BacklogsController < ApplicationController
17
17
  redirect_to :controller => 'periods', :action => :index
18
18
  end
19
19
 
20
+ def list
21
+ @backlogs = Backlog.find(:all, :order => 'name')
22
+ end
23
+
20
24
  def show
21
25
  if params[:id]
22
26
  @backlog = Backlog.find(params[:id])
@@ -1,4 +1,3 @@
1
- # Methods added to this helper will be available to all templates in the application.
2
1
  require 'localization'
3
2
 
4
3
  module ApplicationHelper
@@ -33,6 +32,12 @@ module ApplicationHelper
33
32
  detour_to image_tag(image_source, image_options), url_options, post ? {:method => :post} : nil
34
33
  end
35
34
 
35
+ def image_link_to(image_source, title, url_options, image_options = nil, post = false)
36
+ image_options ||= {:class => 'image-submit'}
37
+ image_options.update :alt => title, :title => title
38
+ link_to image_tag(image_source, image_options), url_options, post ? {:method => :post} : nil
39
+ end
40
+
36
41
  def back_or_link_to(title, options)
37
42
  if session[:detours]
38
43
  options = {:return_from_detour => true}.update(session[:detours].last)
@@ -1,5 +1,6 @@
1
1
  <div class="mainblock">
2
2
  <div class="btitle">
3
+ <%=image_link_to 'arrow_up.png', l(:backlogs), :action => :list %>
3
4
  <h4><%=l :tasks%></h4>
4
5
  </div>
5
6
 
@@ -0,0 +1,16 @@
1
+ <% @page_title = "#{l(:listing)} #{l(:backlogs)}" %>
2
+
3
+ <div id="spotlight">
4
+ <div class="btitle">
5
+ <h4><%=l :backlogs%></h4>
6
+ </div>
7
+
8
+ <table>
9
+ <% i = 0 %>
10
+ <% for @backlog in @backlogs %>
11
+ <tr>
12
+ <td><%=link_to @backlog.name, :action => :edit, :id => @backlog.id%></td>
13
+ </tr>
14
+ <% end %>
15
+ </table>
16
+ </div>
@@ -31,6 +31,7 @@ function handlePageEvent(event) {
31
31
  <% else %>
32
32
  <%= detour_to l(:log_in), :controller => 'user', :action => :login %>
33
33
  <% end %>
34
+ | <%= link_to l(:backlogs), :controller => 'backlogs', :action => :list %>
34
35
  <!-- | <%= link_to l(:administration), :controller => 'administration', :action => :index %> -->
35
36
  <% if user? %>| <%=user.email%><% end %>
36
37
  </div>
@@ -6,7 +6,7 @@
6
6
  <%= submit_tag l(:save), :style => 'display: none' %>
7
7
  <%= render :partial => 'form' %>
8
8
  <%= submit_tag l(:save) %>
9
- <%= link_to l(:back), :action => 'list' %>
9
+ <%= back_or_link_to l(:back), :action => 'list' %>
10
10
  <% end %>
11
11
 
12
12
  </div>
data/lang/en.yaml CHANGED
@@ -7,6 +7,7 @@ assigned_to: Assigned to
7
7
  back: Back
8
8
  backlog: Backlog
9
9
  backlog_description: Task list with ordering and status tracking
10
+ backlogs: Backlogs
10
11
  burn_down_chart: Burn Down Chart
11
12
  change_password: Change Password
12
13
  complete: Complete
data/lang/no.yaml CHANGED
@@ -7,6 +7,7 @@ assigned_to: Tilordnet
7
7
  back: Tilbake
8
8
  backlog: Oppgaveliste
9
9
  backlog_description: Oppgaveliste med sortering og statussporing
10
+ backlogs: Oppgavelister
10
11
  burn_down_chart: Fremdriftsgraf
11
12
  change_password: Bytt Passord
12
13
  complete: Fullfør
@@ -7,6 +7,9 @@ table.input td {vertical-align: top; margin: 0; border: 0; padding: 0 1px;}
7
7
  #spotlight img.image-submit {float: none;}
8
8
  #spotlight div.btitle img.image-submit {float: right;}
9
9
  #spotlight div.btitle h4 {margin-top: 6px;}
10
+ #maincontent img.image-submit {float: none;}
11
+ #maincontent div.btitle img.image-submit {float: right;}
12
+ #maincontent div.btitle h4 {margin-top: 6px;}
10
13
  .highlight {background: yellow;}
11
14
  .tasks {cursor: move;}
12
15
  .dragable-hover {background: yellow; border: 1px solid black;}
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.5.10
7
- date: 2007-08-06 00:00:00 +02:00
6
+ version: 0.6.0
7
+ date: 2007-08-07 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
@@ -1709,6 +1709,7 @@ files:
1709
1709
  - app/views/layouts/_headers.rhtml
1710
1710
  - app/views/backlogs
1711
1711
  - app/views/backlogs/_name_list.rhtml
1712
+ - app/views/backlogs/list.rhtml
1712
1713
  - app/views/backlogs/show.rhtml
1713
1714
  - app/views/backlogs/_form.rhtml
1714
1715
  - app/views/backlogs/new.rhtml