Revision 1297:0a574315af3e .svn/pristine/bd

View differences:

.svn/pristine/bd/bd122c892e2cdfabeea5c22cd41a607729e832fd.svn-base
1
# Redmine - project management software
2
# Copyright (C) 2006-2012  Jean-Philippe Lang
3
#
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License
6
# as published by the Free Software Foundation; either version 2
7
# of the License, or (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17

  
18
require File.expand_path('../../../test_helper', __FILE__)
19

  
20
class RoutingReportsTest < ActionController::IntegrationTest
21
  def test_reports
22
    assert_routing(
23
        { :method => 'get', :path => "/projects/567/issues/report" },
24
        { :controller => 'reports', :action => 'issue_report', :id => '567' }
25
      )
26
    assert_routing(
27
        { :method => 'get', :path => "/projects/567/issues/report/assigned_to" },
28
        { :controller => 'reports', :action => 'issue_report_details',
29
          :id => '567', :detail => 'assigned_to' }
30
      )
31
  end
32
end
.svn/pristine/bd/bd28ebed5ff75e171d4be4be4a90cc87c79d9d52.svn-base
1
<%= form_tag({}) do -%>
2
<%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
3
<div class="autoscroll">
4
<table class="list issues">
5
  <thead>
6
    <tr>
7
      <th class="checkbox hide-when-print">
8
        <%= link_to image_tag('toggle_check.png'), {},
9
                              :onclick => 'toggleIssuesSelection(this); return false;',
10
                              :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
11
      </th>
12
      <%= sort_header_tag('id', :caption => '#', :default_order => 'desc') %>
13
      <% query.inline_columns.each do |column| %>
14
        <%= column_header(column) %>
15
      <% end %>
16
    </tr>
17
  </thead>
18
  <% previous_group = false %>
19
  <tbody>
20
  <% issue_list(issues) do |issue, level| -%>
21
  <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
22
    <% reset_cycle %>
23
    <tr class="group open">
24
      <td colspan="<%= query.inline_columns.size + 2 %>">
25
        <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
26
        <%= group.blank? ? l(:label_none) : column_content(@query.group_by_column, issue) %> <span class="count"><%= @issue_count_by_group[group] %></span>
27
        <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}",
28
                             "toggleAllRowGroups(this)", :class => 'toggle-all') %>
29
      </td>
30
    </tr>
31
    <% previous_group = group %>
32
  <% end %>
33
  <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
34
    <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
35
    <td class="id"><%= link_to issue.id, issue_path(issue) %></td>
36
    <%= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
37
  </tr>
38
  <% @query.block_columns.each do |column|
39
       if (text = column_content(column, issue)) && text.present? -%>
40
  <tr class="<%= current_cycle %>">
41
    <td colspan="<%= @query.inline_columns.size + 2 %>" class="<%= column.css_classes %>"><%= text %></td>
42
  </tr>
43
  <% end -%>
44
  <% end -%>
45
  <% end -%>
46
  </tbody>
47
</table>
48
</div>
49
<% end -%>
.svn/pristine/bd/bd644e6d1539b3037b05096fa2a2105f3d200ef8.svn-base
1
Autotest.add_hook :initialize do |at|
2
  at.clear_mappings
3

  
4
  at.add_mapping %r%^lib/(.*)\.rb$% do |_, m|
5
    at.files_matching %r%^test/#{m[1]}_test.rb$%
6
  end
7

  
8
  at.add_mapping(%r%^test/.*\.rb$%) {|filename, _| filename }
9

  
10
  at.add_mapping %r%^test/fixtures/(.*)s.yml% do |_, _|
11
    at.files_matching %r%^test/.*\.rb$%
12
  end
13
end
.svn/pristine/bd/bd9b7f26a975c12f36f6e20ac18c6789ff909107.svn-base
1
class AddBoardsParentId < ActiveRecord::Migration
2
  def up
3
    add_column :boards, :parent_id, :integer
4
  end
5

  
6
  def down
7
    remove_column :boards, :parent_id
8
  end
9
end
.svn/pristine/bd/bdc3036c84c5c2b90538770a9b1b1626e59b6d16.svn-base
1
# Redmine - project management software
2
# Copyright (C) 2006-2012  Jean-Philippe Lang
3
#
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License
6
# as published by the Free Software Foundation; either version 2
7
# of the License, or (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17

  
18
class DocumentObserver < ActiveRecord::Observer
19
  def after_create(document)
20
    Mailer.document_added(document).deliver if Setting.notified_events.include?('document_added')
21
  end
22
end
.svn/pristine/bd/bde53e0adc79ce39deba6abf485a848292107754.svn-base
1
<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => @journal.user) %>
2

  
3
<% details_to_strings(@journal.details, true).each do |string| -%>
4
<%= string %>
5
<% end -%>
6

  
7
<% if @journal.notes? -%>
8
<%= @journal.notes %>
9

  
10
<% end -%>
11
----------------------------------------
12
<%= render :partial => 'issue', :formats => [:text], :locals => { :issue => @issue, :issue_url => @issue_url } %>

Also available in: Unified diff