Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
9c7a9d92
Commit
9c7a9d92
authored
Apr 15, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6773 from tsigo/rs-tag-page-sorting
Use VersionSorter on the Project > Tags page
parents
6be82c5e
c803e78f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app/controllers/projects/tags_controller.rb
app/controllers/projects/tags_controller.rb
+2
-1
app/views/projects/tags/index.html.haml
app/views/projects/tags/index.html.haml
+2
-2
No files found.
app/controllers/projects/tags_controller.rb
View file @
9c7a9d92
...
...
@@ -8,7 +8,8 @@ class Projects::TagsController < Projects::ApplicationController
before_filter
:authorize_admin_project!
,
only:
[
:destroy
]
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
def
create
...
...
app/views/projects/tags/index.html.haml
View file @
9c7a9d92
...
...
@@ -7,13 +7,13 @@
New tag
%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
-
unless
@tags
.
empty?
%ul
.bordered-list
-
@tags
.
each
do
|
tag
|
=
render
'tag'
,
tag:
tag
=
render
'tag'
,
tag:
@repository
.
find_tag
(
tag
)
=
paginate
@tags
,
theme:
'gitlab'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment