Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-06 23:32:04 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-06 23:32:04 +0300
commit4165426725677d092275f2935a43527f130d8bcb (patch)
treeb5298db92a5ad992f9d2b1925dd20fcb1174adcc /app/views/shared/_milestones_filter.html.haml
parent560e717fd6cc4e1a6055e2d84432fe3ad60ce7eb (diff)
Restyle and refactor milestones filter
Diffstat (limited to 'app/views/shared/_milestones_filter.html.haml')
-rw-r--r--app/views/shared/_milestones_filter.html.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/shared/_milestones_filter.html.haml b/app/views/shared/_milestones_filter.html.haml
new file mode 100644
index 00000000000..8c2fd166922
--- /dev/null
+++ b/app/views/shared/_milestones_filter.html.haml
@@ -0,0 +1,16 @@
+.fixed.sidebar-expand-button.hidden-lg.hidden-md
+ %i.fa.fa-list.fa-2x
+.responsive-side.milestones-filters.append-bottom-10
+ %ul.nav.nav-pills.nav-compact
+ %li{class: ("active" if params[:state].blank? || params[:state] == 'opened')}
+ = link_to milestones_filter_path(state: 'opened') do
+ %i.fa.fa-exclamation-circle
+ Open
+ %li{class: ("active" if params[:state] == 'closed')}
+ = link_to milestones_filter_path(state: 'closed') do
+ %i.fa.fa-check-circle
+ Closed
+ %li{class: ("active" if params[:state] == 'all')}
+ = link_to milestones_filter_path(state: 'all') do
+ %i.fa.fa-compass
+ All