8 lines
305 B
Text
8 lines
305 B
Text
|
- 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)
|
||
|
|
||
|
%li{ class: [tab_class, ("active" if params[:tab] == tab_name)], id: id, data: { qa_selector: qa_selector } }
|
||
|
= yield
|