summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-24 18:59:00 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-24 18:59:00 +0000
commit16ea2ec1894da1077ccd7b0e39a50b3cedd1fe2a (patch)
treeed3b98f4951bc4933047168e9f8c43776a33b2f8 /app/views/shared
parenta16d755813a9cf567d842a9f252d40e65902d52b (diff)
parentb1970e0cf1271a8263a7ccf6b2aa8abb7ae59b2d (diff)
downloadgitlab-ce-16ea2ec1894da1077ccd7b0e39a50b3cedd1fe2a.tar.gz
Merge branch 'feature/all_merge_requets' of /home/git/repositories/gitlab/gitlabhq
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_filter.html.haml14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/views/shared/_filter.html.haml b/app/views/shared/_filter.html.haml
index 2f051cea48b..d48a8d6c1dd 100644
--- a/app/views/shared/_filter.html.haml
+++ b/app/views/shared/_filter.html.haml
@@ -1,5 +1,17 @@
= form_tag filter_path(entity), method: 'get' do
- %fieldset
+ %fieldset.scope-filter
+ %ul.nav.nav-pills.nav-stacked
+ %li{class: ("active" if params[:scope].blank?)}
+ = link_to filter_path(entity, scope: nil) do
+ Assigned to me
+ %li{class: ("active" if params[:scope] == 'authored')}
+ = link_to filter_path(entity, scope: 'authored') do
+ Authored by me
+ %li{class: ("active" if params[:scope] == 'all')}
+ = link_to filter_path(entity, scope: 'all') do
+ All
+
+ %fieldset.status-filter
%ul.nav.nav-pills.nav-stacked
%li{class: ("active" if params[:status].blank?)}
= link_to filter_path(entity, status: nil) do