summaryrefslogtreecommitdiff
path: root/app/views/shared/projects
diff options
context:
space:
mode:
authorMehdi Lahmam <mehdi@lahmam.com>2017-08-11 11:09:17 +0200
committerMehdi Lahmam <mehdi@lahmam.com>2017-08-24 10:11:07 +0200
commit55f4ddad2b765f3b7466af5b43ef319a330c9fcd (patch)
treebc8887523b41d3014efcaf0736ba33729cb6e1bb /app/views/shared/projects
parentd184f27ed387c1a90a9f06f68eab801ec3bd89e3 (diff)
downloadgitlab-ce-55f4ddad2b765f3b7466af5b43ef319a330c9fcd.tar.gz
Add an option to list only archived projects
Closes #35994
Diffstat (limited to 'app/views/shared/projects')
-rw-r--r--app/views/shared/projects/_dropdown.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/shared/projects/_dropdown.html.haml b/app/views/shared/projects/_dropdown.html.haml
index 8939aeb6c3a..80432a73e4e 100644
--- a/app/views/shared/projects/_dropdown.html.haml
+++ b/app/views/shared/projects/_dropdown.html.haml
@@ -15,8 +15,11 @@
= link_to filter_projects_path(archived: nil), class: ("is-active" unless params[:archived].present?) do
Hide archived projects
%li
- = link_to filter_projects_path(archived: true), class: ("is-active" if params[:archived].present?) do
+ = link_to filter_projects_path(archived: true), class: ("is-active" if Gitlab::Utils.to_boolean(params[:archived])) do
Show archived projects
+ %li
+ = link_to filter_projects_path(archived: 'only'), class: ("is-active" if params[:archived] == 'only') do
+ Show archived projects only
- if current_user
%li.divider
%li