mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
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
This commit is contained in:
parent
07706cb207
commit
7b5131a229
@ -30,7 +30,7 @@
|
|||||||
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>
|
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% render_custom_field_values(@project) do |custom_field, formatted| %>
|
<% render_custom_field_values(@project) do |custom_field, formatted| %>
|
||||||
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
|
<li class="cf_<%= custom_field.id %>"><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@ -477,7 +477,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
|
|||||||
}
|
}
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
assert_select 'li', :text => /Development status/
|
assert_select 'li[class=?]', 'cf_3', :text => /Development status/
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_show_should_not_display_hidden_custom_fields
|
def test_show_should_not_display_hidden_custom_fields
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user