summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/tabs/_tab.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/merge_requests/tabs/_tab.html.haml')
-rw-r--r--app/views/projects/merge_requests/tabs/_tab.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/merge_requests/tabs/_tab.html.haml b/app/views/projects/merge_requests/tabs/_tab.html.haml
new file mode 100644
index 00000000000..dcd8db90509
--- /dev/null
+++ b/app/views/projects/merge_requests/tabs/_tab.html.haml
@@ -0,0 +1,7 @@
+- 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