diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-09 15:07:36 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-09 15:07:36 +0000 |
commit | 12968c0843970676c4c1eb60d0d82f4dbaca5caa (patch) | |
tree | 91e2a01270a55c6006b04f1565a868a47d252f48 | |
parent | 33522bf2e88026d0ca4f3d304d016dddf5966044 (diff) | |
download | redmine-12968c0843970676c4c1eb60d0d82f4dbaca5caa.tar.gz redmine-12968c0843970676c4c1eb60d0d82f4dbaca5caa.zip |
Add CSS class to user custom fields (#30985).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17935 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/users/show.html.erb | 2 | ||||
-rw-r--r-- | test/functional/users_controller_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 488e4b93a..7092518d2 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -13,7 +13,7 @@ <% end %> <% @user.visible_custom_field_values.each do |custom_value| %> <% if !custom_value.value.blank? %> - <li><%= custom_value.custom_field.name %>: <%= show_value(custom_value) %></li> + <li class="cf_<%= custom_value.custom_field.id %>"><%= custom_value.custom_field.name %>: <%= show_value(custom_value) %></li> <% end %> <% end %> <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li> diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 1160ec764..603b7b9e2 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -118,7 +118,7 @@ class UsersControllerTest < Redmine::ControllerTest get :show, :params => {:id => 2} assert_response :success - assert_select 'li', :text => /Phone number/ + assert_select 'li[class=?]', 'cf_4', :text => /Phone number/ end def test_show_should_not_display_hidden_custom_fields |