latest_completed_versions_first.patch

Marius BALTEANU, 2016-09-20 19:27

Download (859 Bytes)

View differences:

app/views/versions/index.html.erb
85 85
</ul>
86 86
<% if @completed_versions.present? %>
87 87
<p>
88
  <%= link_to_function l(:label_completed_versions), 
88
  <%= link_to_function l(:label_completed_versions),
89 89
                       '$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
90 90
                       :id => 'toggle-completed-versions', :class => 'collapsible collapsed' %>
91 91
  <ul id = "completed-versions" style = "display:none;">
92
    <% @completed_versions.each do |version| %>
92
    <% @completed_versions.reverse!.each do |version| %>
93 93
      <li><%= link_to_version version %></li>
94
    <% end %>  
94
    <% end %>
95 95
  </ul>
96 96
</p>
97 97
<% end %>