tracker_templates_redmine_0.9.6.diff

tracker_templates_redmine_0.9.6.diff - Pieter Smith, 2010-07-22 13:40

Download (1.87 KB)

View differences:

app/views/issues/_form.rhtml
6 6

  
7 7
<p><%= f.text_field :subject, :size => 80, :required => true %></p>
8 8
<p><%= f.text_area :description,
9
                   :value => (@issue.new_record? ? @issue.tracker.template : @issue.description),
10 9
                   :cols => 60,
11 10
                   :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
12 11
                   :accesskey => accesskey(:edit),
app/views/trackers/_form.rhtml
5 5
<!--[form:tracker]-->
6 6
<p><%= f.text_field :name, :required => true %></p>
7 7
<p><%= f.check_box :is_in_roadmap %></p>
8
<p><%= f.text_area :template,
9
                   :rows => 5,
10
                   :cols => 60 %></p>
11 8

  
12 9
<% if IssueCustomField.all.any? %>
13 10
<p>
config/locales/en.yml
270 270
  field_default_value: Default value
271 271
  field_comments_sorting: Display comments
272 272
  field_parent_title: Parent page
273
  field_template: Template for description
274 273
  field_editable: Editable
275 274
  field_watcher: Watcher
276 275
  field_identity_url: OpenID URL
db/migrate/109_add_trackers_template.rb
1
class AddTrackersTemplate < ActiveRecord::Migration
2
  def self.up
3
        add_column :trackers, :template, :string, :null => true
4
  end
5

  
6
  def self.down
7
        remove_column :trackers, :template
8
  end
9
end
10