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>2016-03-04 18:11:33 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-04 21:25:28 +0300
commitacb211215c30244612eae6219539ced4a071b0dc (patch)
tree30975d9cbd40cc8a29ec4414cfad3b2d0915005a /app/views/explore
parentcb73470b933088721dbfa63840f191307a79a394 (diff)
Add option to show archived projects on dahsboard
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/explore')
-rw-r--r--app/views/explore/projects/_dropdown.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/explore/projects/_dropdown.html.haml b/app/views/explore/projects/_dropdown.html.haml
index a4b4cd8d6c7..8859cf1eb15 100644
--- a/app/views/explore/projects/_dropdown.html.haml
+++ b/app/views/explore/projects/_dropdown.html.haml
@@ -18,3 +18,11 @@
= sort_title_recently_updated
= link_to explore_projects_filter_path(sort: sort_value_oldest_updated) do
= sort_title_oldest_updated
+ %li.divider
+ %li
+ - if params[:archived].present?
+ = link_to explore_projects_filter_path(sort: @sort, archived: nil) do
+ Hide archived projects
+ - else
+ = link_to explore_projects_filter_path(sort: @sort, archived: true) do
+ Show archived projects