Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
cc9a5c3b
Commit
cc9a5c3b
authored
May 01, 2012
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/dashboard/codereview: preserve CL ordering.
R=r CC=golang-dev
https://golang.org/cl/6136056
parent
86a91539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
front.go
misc/dashboard/codereview/dashboard/front.go
+2
-1
No files found.
misc/dashboard/codereview/dashboard/front.go
View file @
cc9a5c3b
...
...
@@ -78,7 +78,8 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
for
i
:=
len
(
tbl
.
CLs
)
-
1
;
i
>=
0
;
i
--
{
cl
:=
tbl
.
CLs
[
i
]
if
cl
.
Author
==
currentPerson
||
cl
.
Reviewer
==
currentPerson
{
tbl
.
CLs
[
i
]
=
tbl
.
CLs
[
len
(
tbl
.
CLs
)
-
1
]
// Preserve order.
copy
(
tbl
.
CLs
[
i
:
],
tbl
.
CLs
[
i
+
1
:
])
tbl
.
CLs
=
tbl
.
CLs
[
:
len
(
tbl
.
CLs
)
-
1
]
}
}
...
...
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