aboutsummaryrefslogtreecommitdiff
blob: 1bdd1c214c9c1c1c08261c2d4f316d35599e90db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package components

import "soko/pkg/models"

templ Stabilizations(results []*models.PkgCheckResult) {
	<div class="row">
		<div class="col-md-9">
			<span class="d-flex justify-content-between">
				<h3>Stable Requests</h3>
				<span>
					<a href="./stabilization.atom">
						<span class="fa fa-fw fa-rss text-dark"></span> Atom feed
					</a>
					&nbsp;
					<button type="button" class="kk-btn-xs btn btn-outline-secondary" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
						<span class="fa fa-fw fa-download"></span>
					</button>
					<span class="dropdown-menu dropdown-menu-right">
						<a class="dropdown-item" href="./stabilization.list" target="_blank">Plain Text</a>
						<a class="dropdown-item" href="./stabilization.json" target="_blank">JSON file</a>
						<a class="dropdown-item" href="./stabilization.xml" target="_blank">XML file</a>
					</span>
				</span>
			</span>
			if len(results) > 0 {
				<ul class="timeline">
					for _, res := range results {
						<li>
							<ul class="list-group">
								<li class="list-group-item">
									<a href={ templ.URL("/packages/" + res.Atom) } class="text-dark">
										<strong>{ res.CPV }</strong>
									</a>
									<br/>
									<span class="kk-version kk-cell-sep-right text-muted">{ res.Message }</span>
								</li>
							</ul>
						</li>
					}
				</ul>
			} else {
				<div class="text-center w-100"><i>- No Stable Requests found -</i></div>
			}
		</div>
		<div class="col-md-3 pt-4">
			<h4>
				<a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseDescription" role="button" aria-expanded="false" aria-controls="collapseDescription">
					Description
				</a>
			</h4>
			<div class="collapse show" id="collapseDescription">
				<span class="text-muted">
					This page lists potential stabilization candidates. Please have a look at the <a href="https://wiki.gentoo.org/wiki/Stable_request">wiki page</a> { "for" } more information.
				</span>
			</div>
		</div>
	</div>
}