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
<p><%= f.text_field :subject, :size => 80, :required => true %></p>
<p><%= f.text_area :description,
:value => (@issue.new_record? ? @issue.tracker.template : @issue.description),
:cols => 60,
:rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
:accesskey => accesskey(:edit),
app/views/trackers/_form.rhtml
<!--[form:tracker]-->
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.check_box :is_in_roadmap %></p>
<p><%= f.text_area :template,
:rows => 5,
:cols => 60 %></p>
<% if IssueCustomField.all.any? %>
<p>
config/locales/en.yml
field_default_value: Default value
field_comments_sorting: Display comments
field_parent_title: Parent page
field_template: Template for description
field_editable: Editable
field_watcher: Watcher
field_identity_url: OpenID URL
db/migrate/109_add_trackers_template.rb
class AddTrackersTemplate < ActiveRecord::Migration
def self.up
add_column :trackers, :template, :string, :null => true
end
def self.down
remove_column :trackers, :template
end
end
(4-4/5)