diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-21 11:10:09 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-21 11:10:09 +0200 |
commit | de9886bece6455f2a35ce5128cb5444fdb5c4659 (patch) | |
tree | 57196ca305da0e37e6c778a2342810ba48605446 /app/helpers/tab_helper.rb | |
parent | d37cf6423759e445f0bff5121eb1ed1467ae0fd1 (diff) | |
download | gitlab-ce-de9886bece6455f2a35ce5128cb5444fdb5c4659.tar.gz |
Restyle dashboard snippets visibility level tabs.
Diffstat (limited to 'app/helpers/tab_helper.rb')
-rw-r--r-- | app/helpers/tab_helper.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb index 0e7d8065ac7..04e53fe7c61 100644 --- a/app/helpers/tab_helper.rb +++ b/app/helpers/tab_helper.rb @@ -110,22 +110,4 @@ module TabHelper 'active' end end - - # Use nav_tab for save controller/action but different params - def nav_tab(key, value, &block) - o = {} - o[:class] = "" - - if value.nil? - o[:class] << " active" if params[key].blank? - else - o[:class] << " active" if params[key] == value - end - - if block_given? - content_tag(:li, capture(&block), o) - else - content_tag(:li, nil, o) - end - end end |