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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
c803e78f
Commit
c803e78f
authored
Apr 14, 2014
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use VersionSorter on the Project > Tags page
parent
884390de
Changes
2
Show 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 @
c803e78f
...
...
@@ -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 @
c803e78f
...
...
@@ -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