File tree Expand file tree Collapse file tree 3 files changed +0
-51
lines changed
Sources/App/Views/PackageController Expand file tree Collapse file tree 3 files changed +0
-51
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff 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 " )
Original file line number Diff line number Diff line change @@ -153,7 +153,6 @@ extension PackageShow {
153153 . hr(
154154 . class( " minor " )
155155 ) ,
156- model. customCollectionBadges ( ) ,
157156 sidebarVersions ( ) ,
158157 . hr(
159158 . class( " minor " )
You can’t perform that action at this time.
0 commit comments