Commit 2c071314 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move issues sort dropdown to shared partial

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b85e4d3c
...@@ -78,28 +78,7 @@ ...@@ -78,28 +78,7 @@
%strong= milestone.title %strong= milestone.title
%small.light= milestone.expires_at %small.light= milestone.expires_at
.dropdown.inline.prepend-left-10 = render 'shared/sort_dropdown'
%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
%ul.well-list.issues-list %ul.well-list.issues-list
......
.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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment