@@ -89,6 +89,74 @@ <h2 style="margin-top:2rem;">Versions</h2>
8989 </ table >
9090 {{ end }}
9191
92+ {{ with index (site.Data.catalog.extension_meta | default dict) $c.name }}
93+ {{ with .control }}
94+ < h2 style ="margin-top:2rem; "> Control file</ h2 >
95+ < table class ="versions-table ">
96+ < tbody >
97+ {{ range $k, $v := .fields }}
98+ < tr > < td class ="mono "> {{ $k }}</ td > < td class ="mono "> {{ $v }}</ td > </ tr >
99+ {{ end }}
100+ </ tbody >
101+ </ table >
102+ {{ with .source }}
103+ < p style ="font-size:0.8rem; color:hsl(var(--muted-foreground)); margin-top:0.75rem; ">
104+ Source: < a href ="{{ . }} " target ="_blank " rel ="noopener "> {{ $c.name }}.control ↗</ a >
105+ </ p >
106+ {{ end }}
107+ {{ end }}
108+
109+ {{ with .meta }}
110+ < h2 style ="margin-top:2rem; "> Distribution metadata (META.json){{ if .mock }} < span class ="pill pill-light "> mock</ span > {{ end }}</ h2 >
111+ < div class ="component-meta-grid ">
112+ < div class ="meta-block ">
113+ < h3 > Distribution</ h3 >
114+ < p > {{ .abstract }}</ p >
115+ < span class ="pill mono "> v{{ .version }}</ span >
116+ < span class ="pill "> {{ .release_status }}</ span >
117+ </ div >
118+ < div class ="meta-block ">
119+ < h3 > Maintainer</ h3 >
120+ < p > {{ .maintainer }}</ p >
121+ </ div >
122+ < div class ="meta-block ">
123+ < h3 > License</ h3 >
124+ < span class ="pill mono "> {{ .license }}</ span >
125+ </ div >
126+ {{ with .resources }}
127+ < div class ="meta-block ">
128+ < h3 > Resources</ h3 >
129+ < ul >
130+ {{ with .repository }}< li > < a href ="{{ . }} " target ="_blank " rel ="noopener "> Repository ↗</ a > </ li > {{ end }}
131+ {{ with .documentation }}< li > < a href ="{{ . }} " target ="_blank " rel ="noopener "> Documentation ↗</ a > </ li > {{ end }}
132+ </ ul >
133+ </ div >
134+ {{ end }}
135+ {{ with .tags }}
136+ < div class ="meta-block ">
137+ < h3 > Tags</ h3 >
138+ {{ range . }}< span class ="pill "> {{ . }}</ span > {{ end }}
139+ </ div >
140+ {{ end }}
141+ </ div >
142+ {{ with .provides }}
143+ < h3 style ="margin-top:1.5rem; "> Provides</ h3 >
144+ < table class ="versions-table ">
145+ < thead > < tr > < th > Extension</ th > < th > Version</ th > < th > File</ th > </ tr > </ thead >
146+ < tbody >
147+ {{ range $name, $p := . }}
148+ < tr >
149+ < td class ="mono "> {{ $name }}</ td >
150+ < td class ="mono "> {{ $p.version }}</ td >
151+ < td class ="mono "> {{ $p.file }}</ td >
152+ </ tr >
153+ {{ end }}
154+ </ tbody >
155+ </ table >
156+ {{ end }}
157+ {{ end }}
158+ {{ end }}
159+
92160 {{ else if eq $category "addon" }}
93161 {{ with index $c.versions 0 }}
94162 < p class ="component-description "> {{ .longDescription | default .description }}</ p >
0 commit comments