Project

General

Profile

Patch #29406 » projects_versions.patch

Pavel Rosický, 2018-08-18 14:35

View differences:

controllers/projects_controller.rb (working copy)
176 176

  
177 177
    @version_status = params[:version_status] || 'open'
178 178
    @version_name = params[:version_name]
179
    @versions = @project.shared_versions.status(@version_status).like(@version_name)
179
    @versions = @project.shared_versions.status(@version_status).like(@version_name).sorted
180 180
  end
181 181

  
182 182
  def edit
views/projects/settings/_versions.html.erb (working copy)
25 25
    <th style="width:15%"></th>
26 26
    </tr></thead>
27 27
  <tbody>
28
<% @versions.sort.each do |version| %>
28
<% @versions.each do |version| %>
29 29
    <tr class="version <%=h version.status %> <%= 'shared' if version.project != @project %>">
30 30
    <td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td>
31 31
    <td class="tick"><%= checked_image(version.id == @project.default_version_id) %></td>
(1-1/6)