diff options
author | Robert Speicher <robert@gitlab.com> | 2017-02-16 22:03:17 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-02-16 22:03:17 +0300 |
commit | 82d14ee543cdb26580dfec9d4c7121245687998d (patch) | |
tree | 40e665b3caa1ca6e26138bcc716d14c0b6a21a96 /app/views/admin/projects | |
parent | a7ddd4f07563ca6aac1f7802613294a457d972a4 (diff) | |
parent | 0dfccd995aa9bf560e59299f3a4f1705d6981115 (diff) |
Merge branch 'active_when' into 'master'
Add active_when helper
Closes #24036
See merge request !9166
Diffstat (limited to 'app/views/admin/projects')
-rw-r--r-- | app/views/admin/projects/index.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml index cdef63daca9..c35945c5a35 100644 --- a/app/views/admin/projects/index.html.haml +++ b/app/views/admin/projects/index.html.haml @@ -48,13 +48,13 @@ = link_to admin_projects_path do All - = nav_link(html_options: { class: params[:visibility_level] == Gitlab::VisibilityLevel::PRIVATE.to_s ? 'active' : '' }) do + = nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PRIVATE.to_s) }) do = link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PRIVATE) do Private - = nav_link(html_options: { class: params[:visibility_level] == Gitlab::VisibilityLevel::INTERNAL.to_s ? 'active' : '' }) do + = nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::INTERNAL.to_s) }) do = link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::INTERNAL) do Internal - = nav_link(html_options: { class: params[:visibility_level] == Gitlab::VisibilityLevel::PUBLIC.to_s ? 'active' : '' }) do + = nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PUBLIC.to_s) }) do = link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PUBLIC) do Public |