diff options
author | Phil Hughes <me@iamphill.com> | 2017-08-30 09:39:33 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-30 16:55:01 +0100 |
commit | 0ab0e7b3bb3d83730e3bd5cca8258d2952ef5976 (patch) | |
tree | b8eeabc6bc32021c5317e89e719bbe178a06e8a1 /app/helpers | |
parent | f7c8434c7100c3c87eb2a75cd5a128e520d8c110 (diff) | |
download | gitlab-ce-remove-sidebar-title.tar.gz |
Remove tooltips from new sidebarremove-sidebar-title
Closes #35658
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/tab_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb index ee701076a14..3308ab0c259 100644 --- a/app/helpers/tab_helper.rb +++ b/app/helpers/tab_helper.rb @@ -119,4 +119,8 @@ module TabHelper 'active' if current_controller?('oauth/applications') end + + def sidebar_link(href, title: nil, css: nil, &block) + link_to capture(&block), href, title: (title if collapsed_sidebar?), class: css, aria: { label: title } + end end |