Skip to content

Commit 9609b22

Browse files
committed
Removed custom collection badge from the sidebar.
1 parent 8dc0940 commit 9609b22

File tree

3 files changed

+0
-51
lines changed

3 files changed

+0
-51
lines changed

FrontEnd/styles/package.scss

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -216,30 +216,6 @@
216216
}
217217
}
218218

219-
.custom-collections-sidebar {
220-
display: flex;
221-
flex-direction: column;
222-
223-
.custom-collection-badge {
224-
display: inline-flex;
225-
overflow: hidden;
226-
font-size: 13px;
227-
border: 1px solid var(--mid-green);
228-
border-radius: 3px;
229-
230-
span {
231-
padding: 0 5px;
232-
color: var(--black);
233-
background-color: var(--very-light-green);
234-
235-
&.badge {
236-
color: var(--white);
237-
background-color: var(--light-green);
238-
}
239-
}
240-
}
241-
}
242-
243219
section.main-compatibility .title {
244220
display: flex;
245221
align-items: baseline;

Sources/App/Views/PackageController/GetRoute.Model+ext.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -424,32 +424,6 @@ extension API.PackageController.GetRoute.Model {
424424
)
425425
}
426426

427-
func customCollectionBadges() -> Node<HTML.BodyContext> {
428-
guard customCollections.isEmpty == false
429-
else { return .empty }
430-
431-
return .div(
432-
.class("custom-collections-sidebar"),
433-
.forEach(customCollections, { collection in
434-
.a(
435-
.href(SiteURL.collections(.value(collection.key)).relativeURL()),
436-
.div(
437-
.class("custom-collection-badge"),
438-
.unwrap(collection.badge, { badge in
439-
.span(
440-
.class("badge"),
441-
.text(badge)
442-
)
443-
}),
444-
.span(
445-
.text(collection.name)
446-
)
447-
)
448-
)
449-
})
450-
)
451-
}
452-
453427
func latestReleaseMetadata() -> Node<HTML.ListContext> {
454428
guard let dateLink = releases.stable else { return .empty }
455429
return releaseMetadata(dateLink, title: "Latest Release", cssClass: "stable")

Sources/App/Views/PackageController/PackageShow+View.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ extension PackageShow {
153153
.hr(
154154
.class("minor")
155155
),
156-
model.customCollectionBadges(),
157156
sidebarVersions(),
158157
.hr(
159158
.class("minor")

0 commit comments

Comments
 (0)