Project

General

Profile

Patch #2931 » tracker_templates_redmine_0.9.6.diff

Tracker description templates for Redmine 0.9.6 - Pieter Smith, 2010-07-22 16:23

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),
9 10
                   :cols => 60,
10 11
                   :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
11 12
                   :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>
8 11

  
9 12
<% if IssueCustomField.all.any? %>
10 13
<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
273 274
  field_editable: Editable
274 275
  field_watcher: Watcher
275 276
  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

  
(4-4/5)