Commit c803e78f authored by Robert Speicher's avatar Robert Speicher

Use VersionSorter on the Project > Tags page

parent 884390de
...@@ -8,7 +8,8 @@ class Projects::TagsController < Projects::ApplicationController ...@@ -8,7 +8,8 @@ class Projects::TagsController < Projects::ApplicationController
before_filter :authorize_admin_project!, only: [:destroy] before_filter :authorize_admin_project!, only: [:destroy]
def index def index
@tags = Kaminari.paginate_array(@repository.tags.reverse).page(params[:page]).per(30) sorted = VersionSorter.rsort(@repository.tag_names)
@tags = Kaminari.paginate_array(sorted).page(params[:page]).per(30)
end end
def create def create
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
New tag New tag
%p %p
Tags give ability to mark specific points in history as being important Tags give the ability to mark specific points in history as being important
%hr %hr
- unless @tags.empty? - unless @tags.empty?
%ul.bordered-list %ul.bordered-list
- @tags.each do |tag| - @tags.each do |tag|
= render 'tag', tag: tag = render 'tag', tag: @repository.find_tag(tag)
= paginate @tags, theme: 'gitlab' = paginate @tags, theme: 'gitlab'
......
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