From a786cfe09b2086db53f2ca366c87ccc075de8895 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Fri, 9 Dec 2022 15:32:43 -0800 Subject: [PATCH] Templates: Reorganize pinned containers The UnpinnedContainer and PinnedContainer are versions of the same component but with different states. Recognize them by organizing them in the same subfolder. Update all existing usages. Bug: T317900 Change-Id: I2c25937190997764fa23e0b581be5538ba4d06de --- includes/templates/ColumnEnd.mustache | 4 ++-- includes/templates/PageTitlebar.mustache | 4 ++-- includes/templates/PageToolbar.mustache | 4 ++-- .../Close.mustache | 0 .../Pinned}/Open.mustache | 0 .../Unpinned}/Open.mustache | 0 includes/templates/StickyHeader.mustache | 4 ++-- .../templates/TableOfContentsContainer.mustache | 4 ++-- .../templates/UnpinnedContainer/Close.mustache | 1 - tests/jest/userLinksData.js | 14 ++++++-------- 10 files changed, 16 insertions(+), 19 deletions(-) rename includes/templates/{PinnedContainer => PinnableContainer}/Close.mustache (100%) rename includes/templates/{PinnedContainer => PinnableContainer/Pinned}/Open.mustache (100%) rename includes/templates/{UnpinnedContainer => PinnableContainer/Unpinned}/Open.mustache (100%) delete mode 100644 includes/templates/UnpinnedContainer/Close.mustache diff --git a/includes/templates/ColumnEnd.mustache b/includes/templates/ColumnEnd.mustache index a7f1071b1..60c10089c 100644 --- a/includes/templates/ColumnEnd.mustache +++ b/includes/templates/ColumnEnd.mustache @@ -1,9 +1,9 @@
diff --git a/includes/templates/PageTitlebar.mustache b/includes/templates/PageTitlebar.mustache index 574338d43..02d879c39 100644 --- a/includes/templates/PageTitlebar.mustache +++ b/includes/templates/PageTitlebar.mustache @@ -20,8 +20,8 @@ {{! TOC is moved into this dropdown from the sidebar in stickyHeader.js. }} {{#data-page-titlebar-toc}} {{>Dropdown/Open}} - {{>UnpinnedContainer/Open}} - {{>UnpinnedContainer/Close}} + {{>PinnableContainer/Unpinned/Open}} + {{>PinnableContainer/Close}} {{>Dropdown/Close}} {{/data-page-titlebar-toc}} {{/data-toc}} diff --git a/includes/templates/PageToolbar.mustache b/includes/templates/PageToolbar.mustache index 1045444d8..5eccf3952 100644 --- a/includes/templates/PageToolbar.mustache +++ b/includes/templates/PageToolbar.mustache @@ -15,9 +15,9 @@