« get me outta code hell

content: generateGroupGalleryPage: remove "another group" content link - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-07 09:20:46 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-07 09:20:46 -0300
commit849bfa93f880a8611597e87f13eeb168795c6452 (patch)
tree7c8ec634d44d197f6a62a3a47c0112ba3fb8e4db
parent388b3d381833edc40bbcabee0611b96a3e8f2879 (diff)
content: generateGroupGalleryPage: remove "another group" content link
-rw-r--r--src/content/dependencies/generateGroupGalleryPage.js28
-rw-r--r--src/strings-default.json2
2 files changed, 2 insertions, 28 deletions
diff --git a/src/content/dependencies/generateGroupGalleryPage.js b/src/content/dependencies/generateGroupGalleryPage.js
index 71b9f508..259f5dce 100644
--- a/src/content/dependencies/generateGroupGalleryPage.js
+++ b/src/content/dependencies/generateGroupGalleryPage.js
@@ -21,18 +21,8 @@ export default {
 
   extraDependencies: ['html', 'language', 'wikiData'],
 
-  sprawl({listingSpec, wikiInfo}) {
-    const sprawl = {};
-    sprawl.enableGroupUI = wikiInfo.enableGroupUI;
-
-    if (wikiInfo.enableListings && wikiInfo.enableGroupUI) {
-      sprawl.groupsByCategoryListing =
-        listingSpec
-          .find(l => l.directory === 'groups/by-category');
-    }
-
-    return sprawl;
-  },
+  sprawl: ({wikiInfo}) =>
+    ({enableGroupUI: wikiInfo.enableGroupUI}),
 
   relations(relation, sprawl, group) {
     const relations = {};
@@ -54,11 +44,6 @@ export default {
         relation('generateGroupSidebar', group);
     }
 
-    if (sprawl.groupsByCategoryListing) {
-      relations.groupListingLink =
-        relation('linkListing', sprawl.groupsByCategoryListing);
-    }
-
     const carouselAlbums = filterItemsForCarousel(group.featuredAlbums);
 
     if (!empty(carouselAlbums)) {
@@ -164,15 +149,6 @@ export default {
                 })),
             })),
 
-          relations.groupListingLink &&
-            html.tag('p',
-              {class: 'quick-info'},
-              language.$('groupGalleryPage.anotherGroupLine', {
-                link:
-                  relations.groupListingLink
-                    .slot('content', language.$('groupGalleryPage.anotherGroupLine.link')),
-              })),
-
           relations.coverGrid
             .slots({
               links: relations.gridLinks,
diff --git a/src/strings-default.json b/src/strings-default.json
index af44fc7e..904d25d4 100644
--- a/src/strings-default.json
+++ b/src/strings-default.json
@@ -337,8 +337,6 @@
   "groupInfoPage.albumList.item.otherGroupAccent": "(from {GROUP})",
   "groupGalleryPage.title": "{GROUP} - Gallery",
   "groupGalleryPage.infoLine": "{TRACKS} across {ALBUMS}, totaling {TIME}.",
-  "groupGalleryPage.anotherGroupLine": "({LINK})",
-  "groupGalleryPage.anotherGroupLine.link": "Choose another group to filter by!",
   "listingIndex.title": "Listings",
   "listingIndex.infoLine": "{WIKI}: {TRACKS} across {ALBUMS}, totaling {DURATION}.",
   "listingIndex.exploreList": "Feel free to explore any of the listings linked below and in the sidebar!",