Replaces 'th' by 'td' elements

pull/818/head
Hagen Schink 11 years ago
parent 735935295a
commit b1fa7ce729
  1. 4
      app/assets/stylesheets/work_packages.css
  2. 4
      app/helpers/work_packages_helper.rb

@ -30,3 +30,7 @@ See doc/COPYRIGHT.rdoc for more details.
#work-packages-query-selection .select2-container {
margin-left: 5px;
}
.issue .attributes td.work_package_attribute_header {
font-weight: bold;
}

@ -352,7 +352,9 @@ module WorkPackagesHelper
def work_package_show_table_row(attribute, klass = nil, &block)
klass = attribute.to_s.dasherize if klass.nil?
content = content_tag(:th, :class => klass) { "#{WorkPackage.human_attribute_name(attribute)}:" }
content = content_tag(:td, :class => [:work_package_attribute_header, klass]) do
"#{WorkPackage.human_attribute_name(attribute)}:"
end
content << content_tag(:td, :class => klass, &block)
WorkPackageAttribute.new(attribute, content)

Loading…
Cancel
Save