lib/pt/data_table.rb in pt-0.8.6 vs lib/pt/data_table.rb in pt-0.9.0

- old
+ new

@@ -18,11 +18,14 @@ max_width = Hirb::Util.detect_terminal_size()[0] if config[:max_width] && config[:max_width] < max_width max_width = config[:max_width] end + headers = [:num] + headers += self.class.headers.present? ? self.class.headers : self.class.fields + self.class.table @rows, :fields => [:num] + self.class.fields, :change_fields => %w{num pt_id}, :unicode => true, :description => false, :max_width => max_width end @@ -39,10 +42,14 @@ def self.fields [] end + def self.headers + [] + end + end class ProjectTable < DataTable @@ -54,10 +61,14 @@ class TasksTable < DataTable def self.fields - [:name, :state, :id] + [:name, :owners, :story_type, :estimate, :state, :id] + end + + def self.headers + [:name, :owners, :type, :point, :state, :id] end end class MultiUserTasksTable < DataTable