Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_tab.html.haml « tabs « merge_requests « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f6c8f4cd87b1d8896555726646bc088b0abba9ae (plain)
1
2
3
4
5
6
7
8
9
- tab_name = local_assigns.fetch(:name, nil)
- tab_class = local_assigns.fetch(:class, nil)
- testid = local_assigns.fetch(:testid, nil)
- id = local_assigns.fetch(:id, nil)
- attrs = { class: [tab_class, ("active" if params[:tab] == tab_name)], data: { testid: testid } }
- attrs[:id] = id if id.present?

%li{ attrs }
  = yield