OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/cells/versions/table_cell.rb

23 lines
581 B

module Versions
class TableCell < ::TableCell
columns :name, :project, :start_date, :effective_date, :description, :status, :sharing, :wiki_page_title
def sortable?
false
end
def headers
columns.reject { |col| col == :wiki_page_title }.map do |name|
[name.to_s, header_options(name)]
end + [wiki_page_header_options]
end
def header_options(name)
{ caption: Version.human_attribute_name(name) }
end
def wiki_page_header_options
['wiki_page_title', { caption: WikiPage.model_name.human }]
end
end
end