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
Léo-Paul Géneau
gitlab-ce
Commits
1c5a5065
Commit
1c5a5065
authored
Dec 27, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename sort method
parent
713e8cf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/commit_status.rb
app/models/commit_status.rb
+1
-1
app/views/projects/stage/_graph.html.haml
app/views/projects/stage/_graph.html.haml
+1
-1
No files found.
app/models/commit_status.rb
View file @
1c5a5065
...
...
@@ -138,7 +138,7 @@ class CommitStatus < ActiveRecord::Base
.
fabricate!
end
def
natsort
_name
def
sortable
_name
name
.
split
(
/(\d+)/
).
map
do
|
v
|
v
=~
/\d+/
?
v
.
to_i
:
v
end
...
...
app/views/projects/stage/_graph.html.haml
View file @
1c5a5065
-
stage
=
local_assigns
.
fetch
(
:stage
)
-
statuses
=
stage
.
statuses
.
latest
-
status_groups
=
statuses
.
sort_by
(
&
:
natsort
_name
).
group_by
(
&
:group_name
)
-
status_groups
=
statuses
.
sort_by
(
&
:
sortable
_name
).
group_by
(
&
:group_name
)
%li
.stage-column
.stage-name
%a
{
name:
stage
.
name
}
...
...
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