debian-mirror-gitlab/app/views/projects/merge_requests/tabs/_tab.html.haml

10 lines
350 B
Text
Raw Normal View History

2020-01-01 13:55:28 +05:30
- tab_name = local_assigns.fetch(:name, nil)
- tab_class = local_assigns.fetch(:class, nil)
- qa_selector = local_assigns.fetch(:qa_selector, nil)
- id = local_assigns.fetch(:id, nil)
2021-09-04 01:27:46 +05:30
- attrs = { class: [tab_class, ("active" if params[:tab] == tab_name)], data: { qa_selector: qa_selector } }
- attrs[:id] = id if id.present?
2020-01-01 13:55:28 +05:30
2021-09-04 01:27:46 +05:30
%li{ attrs }
2020-01-01 13:55:28 +05:30
= yield