From 43e5009a301d474225bf39e0efc5766b4b6be0c1 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Wed, 23 Nov 2016 14:44:05 +0000 Subject: [PATCH 1/8] Pipelines tabs --- .../lib/utils/bootstrap_linked_tabs.js.es6 | 110 ++++++++++++++++++ .../projects/pipelines_controller.rb | 4 + .../projects/pipelines/_with_tabs.html.haml | 23 +++- config/routes/project.rb | 1 + spec/features/projects/pipelines_spec.rb | 7 ++ 5 files changed, 140 insertions(+), 5 deletions(-) create mode 100644 app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js.es6 diff --git a/app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js.es6 b/app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js.es6 new file mode 100644 index 00000000000..28239cd66a9 --- /dev/null +++ b/app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js.es6 @@ -0,0 +1,110 @@ + +/** + * Linked Tabs + * + * Handles persisting and restores the current tab selection and content. + * Reusable component for static content. + * + * ### Example Markup + * + *