use li tags for completed versions in version index sidebar (#13242)

Contributed by Filou Centrinov.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11782 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-05-03 11:39:11 +00:00
parent 8d824f5088
commit 42753001ea
1 changed files with 6 additions and 4 deletions

View File

@ -68,10 +68,12 @@
<p>
<%= link_to_function l(:label_completed_versions),
'$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br />
<span id="completed-versions" style="display:none;">
<%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %>
</span>
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %>
<ul id = "completed-versions" style = "display:none;">
<% @completed_versions.each do |version| %>
<li><%= link_to(format_version_name(version), version_path(version)) %></li>
<% end %>
</ul>
</p>
<% end %>
<% end %>