Commit 55fff85f authored by maeda's avatar maeda

Add CSS class to user custom fields (#30985).

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17935 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3cbfd445
......@@ -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>
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment