From 7b5131a229b3084c1bc99ecc04b8b3ee006c0c20 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 6 Mar 2019 22:31:14 +0000 Subject: [PATCH] Add CSS class to project custom fields (#30977). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17931 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/show.html.erb | 2 +- test/functional/projects_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 923bc03e8..da1c53d98 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -30,7 +30,7 @@
  • <%=l(:field_homepage)%>: <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %>
  • <% end %> <% render_custom_field_values(@project) do |custom_field, formatted| %> -
  • <%= custom_field.name %>: <%= formatted %>
  • +
  • <%= custom_field.name %>: <%= formatted %>
  • <% end %> <% end %> diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 16f42ac4d..3c931c60b 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -477,7 +477,7 @@ class ProjectsControllerTest < Redmine::ControllerTest } assert_response :success - assert_select 'li', :text => /Development status/ + assert_select 'li[class=?]', 'cf_3', :text => /Development status/ end def test_show_should_not_display_hidden_custom_fields -- 2.39.5