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
2c071314
Commit
2c071314
authored
Jan 14, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move issues sort dropdown to shared partial
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b85e4d3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
app/views/projects/issues/_issues.html.haml
app/views/projects/issues/_issues.html.haml
+1
-22
app/views/shared/_sort_dropdown.html.haml
app/views/shared/_sort_dropdown.html.haml
+22
-0
No files found.
app/views/projects/issues/_issues.html.haml
View file @
2c071314
...
...
@@ -78,28 +78,7 @@
%strong
=
milestone
.
title
%small
.light
=
milestone
.
expires_at
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%span
.light
sort:
-
if
@sort
.
present?
=
@sort
-
else
Newest
%b
.caret
%ul
.dropdown-menu
%li
=
link_to
project_filter_path
(
sort:
'newest'
)
do
Newest
=
link_to
project_filter_path
(
sort:
'oldest'
)
do
Oldest
=
link_to
project_filter_path
(
sort:
'recently_updated'
)
do
Recently updated
=
link_to
project_filter_path
(
sort:
'last_updated'
)
do
Last updated
=
link_to
project_filter_path
(
sort:
'milestone_due_soon'
)
do
Milestone due soon
=
link_to
project_filter_path
(
sort:
'milestone_due_later'
)
do
Milestone due later
=
render
'shared/sort_dropdown'
%ul
.well-list.issues-list
...
...
app/views/shared/_sort_dropdown.html.haml
0 → 100644
View file @
2c071314
.dropdown.inline.prepend-left-10
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%span
.light
sort:
-
if
@sort
.
present?
=
@sort
-
else
Newest
%b
.caret
%ul
.dropdown-menu
%li
=
link_to
project_filter_path
(
sort:
'newest'
)
do
Newest
=
link_to
project_filter_path
(
sort:
'oldest'
)
do
Oldest
=
link_to
project_filter_path
(
sort:
'recently_updated'
)
do
Recently updated
=
link_to
project_filter_path
(
sort:
'last_updated'
)
do
Last updated
=
link_to
project_filter_path
(
sort:
'milestone_due_soon'
)
do
Milestone due soon
=
link_to
project_filter_path
(
sort:
'milestone_due_later'
)
do
Milestone due later
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