Add active_when helper
What does this MR do?
Add active_when
helper, to change:
%li{ class: (klass == Gitlab::GitLogger ? 'active' : '') }
=> %li{ class: active_when(klass == Gitlab::GitLogger) }
-
Changelog entry added - n/a Documentation created/updated
- n/a API support added
- Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together