aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/templates/packages/changelog/changelog.tmpl177
-rw-r--r--web/templates/packages/components/bugs.tmpl114
-rw-r--r--web/templates/packages/components/changelog.tmpl157
-rw-r--r--web/templates/packages/components/dependencies.tmpl65
-rw-r--r--web/templates/packages/components/overview.tmpl117
-rw-r--r--web/templates/packages/components/pullrequests.tmpl75
-rw-r--r--web/templates/packages/components/qareport.tmpl79
-rw-r--r--web/templates/packages/components/reverse-dependencies.tmpl62
-rw-r--r--web/templates/packages/components/security.tmpl59
-rw-r--r--web/templates/packages/metadata.tmpl157
-rw-r--r--web/templates/packages/packageheader.tmpl62
-rw-r--r--web/templates/packages/resources.tmpl65
-rw-r--r--web/templates/packages/show.tmpl38
-rw-r--r--web/templates/packages/useflag.tmpl40
-rw-r--r--web/templates/packages/versionicons.tmpl16
-rw-r--r--web/templates/packages/versionrows.tmpl64
-rw-r--r--web/templates/packages/versions.tmpl26
17 files changed, 0 insertions, 1373 deletions
diff --git a/web/templates/packages/changelog/changelog.tmpl b/web/templates/packages/changelog/changelog.tmpl
deleted file mode 100644
index 738c554..0000000
--- a/web/templates/packages/changelog/changelog.tmpl
+++ /dev/null
@@ -1,177 +0,0 @@
-<html>
-<head></head>
-<body>
-
-{{ if .Commits }}
-
- <div class="col-md-12">
- <h3>Latest Commits</h3>
- <ul class="timeline">
- <li>
- <span class="text-muted">Commits on {{(index .Package.Commits 0).CommitterDate.Format "2006-01-02"}}</span>
- <ul class="list-group">
- {{$last_date := (index .Commits 0).CommitterDate}}
- {{range .Commits}}
- {{if eq ($last_date.Format "2006-01-02") (.CommitterDate.Format "2006-01-02")}}
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-8"><b style="color:#424242!important;">{{.Message}}</b></div><div class="col-md-4 text-right text-muted"><a title="{{.Id}}" class="kk-commit" href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}">{{ printf "%.7s" .Id }}</a></div>
- <div class="col-md-12" style="color:#424242!important;">
- {{ if (ne .AuthorName .CommitterName)}}
- <span data-toggle="tooltip" title="authored on {{ .AuthorDate.Format "2006-01-02 15:04:05" }} UTC"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}">
- <a href="mailto:{{ .AuthorEmail }}">{{ .AuthorName }}</a> authored</span> and&nbsp;
- {{end}}
- <img class="rounded-sm inline" src="{{ gravatar .CommitterEmail}}">
- <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC
- </div>
- <div class="col-md-12">
- {{$commit := .}}
- {{range $key, $value := .ChangedFiles.Added }}
- {{- if gt $key 100 -}} {{- break -}}
- {{ if contains .Path (print $.Atom "/")}}
- <style>
- .kk-added-file-badge {
- background-color: #dff0d8;
- font-weight: normal;
- }
- .kk-added-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-added-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Atom }}/{{replaceall .Path (print $.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{end}}
- {{range $key, $value := .ChangedFiles.Modified }}
- {{- if gt $key 100 -}} {{- break -}}
- {{ if contains $value.Path (print $.Atom "/")}}
- <style>
- .kk-modified-file-badge {
- background-color: #fcf8e3;
- font-weight: normal;
- }
- .kk-modified-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-modified-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Atom }}/{{replaceall $value.Path (print $.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall $value.Path (print $.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{end}}
- {{range $key, $value := .ChangedFiles.Deleted }}
- {{- if gt $key 100 -}} {{- break -}}
- {{ if contains .Path (print $.Atom "/")}}
- <style>
- .kk-deleted-file-badge {
- background-color: #f2dede;
- font-weight: normal;
- }
- .kk-deleted-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-deleted-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Atom }}/{{replaceall .Path (print $.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{end}}
- {{if gt (len .ChangedFiles.Added) 100}}
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}" class="text-muted">...</a>
- {{else if gt (len .ChangedFiles.Modified) 100}}
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}" class="text-muted">...</a>
- {{else if gt (len .ChangedFiles.Deleted) 100}}
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}" class="text-muted">...</a>
- {{end}}
- </div>
- </div>
- </li>
- {{else}}
- </ul>
- </li>
- <li>
- <span class="text-muted">Commits on {{.CommitterDate.Format "2006-01-02"}}</span>
- <ul class="list-group">
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-8"><b>{{.Message}}</b></div><div class="col-md-4 text-right text-muted"><a title="{{.Id}}" class="kk-commit" href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}">{{ printf "%.7s" .Id }}</a></div>
- <div class="col-md-12">
- {{ if (ne .AuthorName .CommitterName)}}
- <span data-toggle="tooltip" title="authored on {{ .AuthorDate.Format "2006-01-02 15:04:05" }} UTC"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}">
- <a href="mailto:{{ .AuthorEmail }}">{{ .AuthorName }}</a> authored</span> and&nbsp;
- {{end}}
- <img class="rounded-sm inline" src="{{ gravatar .CommitterEmail}}">
- <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC
- </div>
- <div class="col-md-12">
- {{$commit := .}}
- {{range $key, $value := .ChangedFiles.Added }}
- {{- if gt $key 50 -}} {{- break -}}
- {{ if contains $value.Path (print $.Atom "/")}}
- <style>
- .kk-added-file-badge {
- background-color: #dff0d8;
- font-weight: normal;
- }
- .kk-added-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-added-file-badge badge-light"><a title="{{replaceall $value.Path (print $.Atom "/") ""}} has been added" class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Atom }}/{{replaceall $value.Path (print $.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall $value.Path (print $.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{end}}
- {{range $key, $value := .ChangedFiles.Modified }}
- {{- if gt $key 50 -}} {{- break -}}
- {{ if contains $value.Path (print $.Atom "/")}}
- <style>
- .kk-modified-file-badge {
- background-color: #fcf8e3;
- font-weight: normal;
- }
- .kk-modified-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-modified-file-badge badge-light"><a title="{{replaceall $value.Path (print $.Atom "/") ""}} has been modified" class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Atom }}/{{replaceall $value.Path (print $.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{end}}
- {{range $key, $value := .ChangedFiles.Deleted }}
- {{- if gt $key 50 -}} {{- break -}}
- {{ if contains .Path (print $.Atom "/")}}
- <style>
- .kk-deleted-file-badge {
- background-color: #f2dede;
- font-weight: normal;
- }
- .kk-deleted-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-deleted-file-badge badge-light"><a title="{{replaceall .Path (print $.Atom "/") ""}} has been deleted" class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Atom }}/{{replaceall .Path (print $.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{end}}
- </div>
- </div>
- </li>
- {{end}}
- {{$last_date = .CommitterDate}}
- {{end}}
- </ul>
- </li>
- </ul>
- </div>
-
-{{else}}
- <li class="list-group-item kk-panel-content-sorry">
- This package has not been changed since our repository has moved to Git.
- <br><br>
- <a href="https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/<%= @package.atom %>/ChangeLog?view=markup" class="btn btn-default">
- <span class="fa fa-fw fa-history"></span>
- View old CVS Changelog
- </a>
- </li>
-{{end}}
-
-</body>
-</html>
diff --git a/web/templates/packages/components/bugs.tmpl b/web/templates/packages/components/bugs.tmpl
deleted file mode 100644
index 5c61fd3..0000000
--- a/web/templates/packages/components/bugs.tmpl
+++ /dev/null
@@ -1,114 +0,0 @@
-{{define "bugs"}}
- <div class="row">
- <div class="col-md-9">
- {{- $bugs := .Package.AllBugs -}}
- {{- $bugs_count := bugCategoriesCount $bugs -}}
-
- {{- if $bugs -}}
-
- {{- if $bugs_count.General }}
- <h3 id="packages" class="mb-4">Bug Reports</h3>
- <ul class="list-group">
- {{- range .Package.Bugs -}}
- {{- if eq .Component "Current packages" }}
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-12">
- <i class="fa fa-bug" aria-hidden="true"></i>
- <a href="https://bugs.gentoo.org/{{.Id}}" class="text-dark"><b>{{.Summary}}</b></a>
- </div>
- <div class="col-md-12 text-muted">
- {{- .Id}} - Assigned to {{.Assignee -}}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end }}
- </ul>
- {{- end -}}
-
- {{- if $bugs_count.Stabilization }}
- <h3 id="stabilization" class="my-4">Stabilization Bug Reports</h3>
- <ul class="list-group">
- {{- range $bugs -}}
- {{- if eq .Component "Stabilization" }}
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-12">
- <i class="fa fa-bug" aria-hidden="true"></i>
- <a href="https://bugs.gentoo.org/{{.Id}}" class="text-dark"><b>{{.Summary}}</b></a>
- </div>
- <div class="col-md-12 text-muted">
- {{- .Id}} - Assigned to {{.Assignee -}}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end }}
- </ul>
- {{- end -}}
-
- {{- if $bugs_count.Keywording }}
- <h3 id="keywording" class="my-4">Keywording Bug Reports</h3>
- <ul class="list-group">
- {{- range $bugs -}}
- {{- if eq .Component "Keywording" }}
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-12">
- <i class="fa fa-bug" aria-hidden="true"></i>
- <a href="https://bugs.gentoo.org/{{.Id}}" class="text-dark"><b>{{.Summary}}</b></a>
- </div>
- <div class="col-md-12 text-muted">
- {{- .Id}} - Assigned to {{.Assignee -}}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end }}
- </ul>
- {{- end -}}
- {{- else -}}
- <div class="row pt-5">
- <div class="col-md-4">
- <img style="width: 100%;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/Larry-the-cow-full.svg/1200px-Larry-the-cow-full.svg.png"/>
- </div>
- <div class="col-md-8 pt-3">
- <h2>Good job! There are no bugs.</h2>
- <span>You think something is missing here? <br/> Start with filling a <a href="https://bugs.gentoo.org/enter_bug.cgi">new bug</a>.</span>
- </div>
- </div>
- {{- end }}
- </div>
- <div class="col-md-3 pt-5">
- <h4 class="">
- <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">
- Gentoo Bugzilla is where we track bugs of Gentoo and its packages; you are welcome to report, confirm and resolve bugs:
- <ul>
- <li><a href="https://bugs.gentoo.org/enter_bug.cgi">File a new Bug</a></li>
- <li><a href="https://bugs.gentoo.org/">Confirm a bug</a></li>
- <li><a href="https://wiki.gentoo.org/wiki/Bugday">Participate in our monthly Bugday</a></li>
- </ul>
- </span>
- </div>
- <h4 class="">
- <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseShortcuts" role="button" aria-expanded="false" aria-controls="collapseShortcuts">
- Shortcuts
- </a>
- </h4>
- <div class="collapse show" id="collapseShortcuts">
- <ul>
- <li>{{if $bugs_count.General}}<a href="#packages">Packages Bugs ({{$bugs_count.General}})</a>{{else}}<a>Packages Bugs (0)</a>{{end}}</li>
- <li>{{if $bugs_count.Stabilization}}<a href="#stabilization">Stabilization Bugs ({{$bugs_count.Stabilization}})</a>{{else}}<a>Stabilization Bugs (0)</a>{{end}}</li>
- <li>{{if $bugs_count.Keywording}}<a href="#keywording">Keywording Bugs ({{$bugs_count.Keywording}})</a>{{else}}<a>Keywording Bugs (0)</a>{{end}}</li>
- </ul>
- </div>
- </div>
- </div>
-{{end}}
-
diff --git a/web/templates/packages/components/changelog.tmpl b/web/templates/packages/components/changelog.tmpl
deleted file mode 100644
index b63425d..0000000
--- a/web/templates/packages/components/changelog.tmpl
+++ /dev/null
@@ -1,157 +0,0 @@
-{{define "changelog"}}
- {{ if .Package.Commits }}
- <span class="d-flex justify-content-between">
- <h3>Latest Commits</h3>
- <span>
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/atom/{{.Package.Atom}}?h=master" target="_blank">
- <span class="fa fa-fw fa-rss text-dark"></span> RSS Feed
- </a>
- </span>
- </span>
- <ul class="timeline">
- <li>
- <span class="text-muted">Commits on {{(index .Package.Commits 0).CommitterDate.Format "2006-01-02"}}</span>
- <ul class="list-group">
- {{$last_date := (index .Package.Commits 0).CommitterDate}}
- {{range .Package.Commits}}
- {{if eq ($last_date.Format "2006-01-02") (.CommitterDate.Format "2006-01-02")}}
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-8"><a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}"><b style="color:#424242!important;">{{.Message}}</b></a></div><div class="col-md-4 text-right text-muted"><a title="{{.Id}}" class="kk-commit" href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}">{{ printf "%.7s" .Id }}</a></div>
- <div class="col-md-12" style="color:#424242!important;">
- {{ if (ne .AuthorName .CommitterName)}}
- <span data-toggle="tooltip" title="authored on {{ .AuthorDate.Format "2006-01-02 15:04:05" }} UTC"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}">
- <a href="mailto:{{ .AuthorEmail }}">{{ .AuthorName }}</a> authored</span> and&nbsp;
- {{end}}
- <img class="rounded-sm inline" src="{{ gravatar .CommitterEmail}}">
- <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC
- </div>
- <div class="col-md-12">
- {{$commit := .}}
- {{range .ChangedFiles.Added }}
- {{ if contains .Path (print $.Package.Atom "/")}}
- <style>
- .kk-added-file-badge {
- background-color: #dff0d8;
- font-weight: normal;
- }
- .kk-added-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-added-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Package.Atom }}/{{replaceall .Path (print $.Package.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Package.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{range .ChangedFiles.Modified }}
- {{ if contains .Path (print $.Package.Atom "/")}}
- <style>
- .kk-modified-file-badge {
- background-color: #fcf8e3;
- font-weight: normal;
- }
- .kk-modified-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-modified-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Package.Atom }}/{{replaceall .Path (print $.Package.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Package.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{range .ChangedFiles.Deleted }}
- {{ if contains .Path (print $.Package.Atom "/")}}
- <style>
- .kk-deleted-file-badge {
- background-color: #f2dede;
- font-weight: normal;
- }
- .kk-deleted-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-deleted-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Package.Atom }}/{{replaceall .Path (print $.Package.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Package.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- </div>
- </div>
- </li>
- {{else}}
- </ul>
- </li>
- <li>
- <span class="text-muted">Commits on {{.CommitterDate.Format "2006-01-02"}}</span>
- <ul class="list-group">
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-8"><a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}"><b style="color:#424242!important;">{{.Message}}</b></a></div><div class="col-md-4 text-right text-muted"><a title="{{.Id}}" class="kk-commit" href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}">{{ printf "%.7s" .Id }}</a></div>
- <div class="col-md-12">
- {{ if (ne .AuthorName .CommitterName)}}
- <span data-toggle="tooltip" title="authored on {{ .AuthorDate.Format "2006-01-02 15:04:05" }} UTC"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}">
- <a href="mailto:{{ .AuthorEmail }}">{{ .AuthorName }}</a> authored</span> and&nbsp;
- {{end}}
- <img class="rounded-sm inline" src="{{ gravatar .CommitterEmail}}">
- <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC
- </div>
- <div class="col-md-12">
- {{$commit := .}}
- {{range .ChangedFiles.Added }}
- {{ if contains .Path (print $.Package.Atom "/")}}
- <style>
- .kk-added-file-badge {
- background-color: #dff0d8;
- font-weight: normal;
- }
- .kk-added-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-added-file-badge badge-light"><a title="{{replaceall .Path (print $.Package.Atom "/") ""}} has been added" class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Package.Atom }}/{{replaceall .Path (print $.Package.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Package.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{range .ChangedFiles.Modified }}
- {{ if contains .Path (print $.Package.Atom "/")}}
- <style>
- .kk-modified-file-badge {
- background-color: #fcf8e3;
- font-weight: normal;
- }
- .kk-modified-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-modified-file-badge badge-light"><a title="{{replaceall .Path (print $.Package.Atom "/") ""}} has been modified" class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Package.Atom }}/{{replaceall .Path (print $.Package.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Package.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- {{range .ChangedFiles.Deleted }}
- {{ if contains .Path (print $.Package.Atom "/")}}
- <style>
- .kk-deleted-file-badge {
- background-color: #f2dede;
- font-weight: normal;
- }
- .kk-deleted-file-badge > a {
- color: #424242!important;
- }
- </style>
- <span class="badge badge-pill kk-deleted-file-badge badge-light"><a title="{{replaceall .Path (print $.Package.Atom "/") ""}} has been deleted" class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ $.Package.Atom }}/{{replaceall .Path (print $.Package.Atom "/") ""}}?id={{ $commit.Id }}">{{replaceall .Path (print $.Package.Atom "/") ""}}</a></span>
- {{end}}
- {{end}}
- </div>
- </div>
- </li>
- {{end}}
- {{$last_date = .CommitterDate}}
- {{end}}
- </ul>
- </li>
- </ul>
-
- {{else}}
- <li class="list-group-item kk-panel-content-sorry">
- This package has not been changed since our repository has moved to Git.
- <br><br>
- <a href="https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/<%= @package.atom %>/ChangeLog?view=markup" class="btn btn-default">
- <span class="fa fa-fw fa-history"></span>
- View old CVS Changelog
- </a>
- </li>
- {{end}}
-{{end}}
diff --git a/web/templates/packages/components/dependencies.tmpl b/web/templates/packages/components/dependencies.tmpl
deleted file mode 100644
index 033ed73..0000000
--- a/web/templates/packages/components/dependencies.tmpl
+++ /dev/null
@@ -1,65 +0,0 @@
-{{define "dependencies"}}
- <div class="row">
- <div class="col-md-9">
- <h3><a class="text-dark"><i class="fa fa-level-down" aria-hidden="true"></i> Dependencies</a> <a href="/packages/{{.Package.Atom}}/reverse-dependencies" class="ml-3 text-muted"><i class="fa fa-level-up" aria-hidden="true"></i> Reverse-Dependencies</a></h3>
-
- <ul class="timeline">
-
- {{range $index, $element := .Package.Versions}}
- <li>
- <span class="text-muted">{{.Version}}</span>
-
- {{$depMap := $element.BuildDepMap}}
-
- {{if len $depMap}}
- <div class="card mt-4">
- <div class="table-responsive border-0">
- <table class="table mb-0">
- <thead>
- <tr>
- <th scope="col">Version</th>
- <th scope="col">RDEPEND</th>
- <th scope="col">DEPEND</th>
- <th scope="col">BDEPEND</th>
- <th scope="col">IDEPEND</th>
- <th scope="col">PDEPEND</th>
- </tr>
- </thead>
- <tbody>
-
- {{ range $key, $value := $depMap }}
- <tr>
- <th scope="row"><a class="text-dark" href="/packages/{{$value.Atom}}">{{$key}}</a></th>
- <td>{{if $value.rindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.dindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.bindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.iindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.pindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- </tr>
- {{end}}
-
- </tbody>
- </table>
- </div>
- </div>
- {{end}}
-
- </li>
- {{end}}
- </ul>
-
- </div>
- <div class="col-md-3 pt-5">
- <h4 class="">
- <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">
- The dependencies are regularly computed based on the <a href="https://qa-reports.gentoo.org/">qa-reports</a>.
- </span>
- </div>
- </div>
- </div>
-{{end}}
diff --git a/web/templates/packages/components/overview.tmpl b/web/templates/packages/components/overview.tmpl
deleted file mode 100644
index 9b6f209..0000000
--- a/web/templates/packages/components/overview.tmpl
+++ /dev/null
@@ -1,117 +0,0 @@
-{{define "overview"}}
-<div class="row">
- <div class="col-md-9">
-
- {{- if .UserPreferences.Packages.Overview.ShowOutdated -}}
- {{- if .Package.Outdated -}}
- {{- $outdatedFound := false -}}
- {{- range .Versions -}}
- {{- if eq (index $.Package.Outdated 0).NewestVersion .Version -}}
- {{- $outdatedFound = true -}}
- {{- end -}}
- {{- end -}}
- {{- if not $outdatedFound -}}
- <div class="alert alert-info">
- <strong><span class="fa fa-fw fa-lightbulb-o"></span> Version {{ (index .Package.Outdated 0).NewestVersion }} is available upstream. Please consider updating!</strong><br>
- It seems that version {{ (index .Package.Outdated 0).NewestVersion }} is available upstream, while the latest version in the Gentoo tree is {{ (index .Package.Outdated 0).GentooVersion }}.<br/>
- <small><i>You think this warning is false? Read more about it <a href="https://archives.gentoo.org/gentoo-dev/message/b793f4da5a5b5e20a063ea431500a820">here</a>.</i></small>
- </div>
- {{- end -}}
- {{- end -}}
- {{- end -}}
-
- {{template "versions" .}}
-
- {{- if isMasked .Versions }}
-
- <h3 class="pt-3 mb-2">Masks</h3>
-
- <div class="card kk-mask mb-3">
- <ul class="list-group list-group-flush kk-mask">
- <li class="list-group-item kk-mask">
- {{ if showRemovalNotice .Versions }}
- <p style="color:#721c24;">
- <strong><span class="fa fa-fw fa-warning"></span> This package is masked and could be removed soon!</strong><br>
- The mask comment indicates that this package is scheduled for removal from our package repository.<br>
- Please review the mask information below for more details.
- </p>
- {{end}}
-
- <strong class="kk-mask-reason">{{noescape (getMask .Versions).Reason}}</strong>
-
- <div class="kk-mask-details">
-
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- Affected packages
- </div>
- <div class="col-xs-12 col-md-9 kk-mask-atoms overflow-hidden">
- {{(getMask .Versions).Versions}}
- </div>
- </div>
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- Author/Date
- </div>
- <div class="col-xs-12 col-md-9">
- {{(getMask .Versions).Author}} &lt;{{(getMask .Versions).AuthorEmail}}&gt; <span class="text-muted">({{(getMask .Versions).Date.Format "2006-01-02"}})</span>
- </div>
- </div>
- </div>
- </li>
- </ul>
- </div>
- {{- else if isDeprecated .Versions }}
-
- <h3 class="pt-3 mb-2">Deprecation Warning</h3>
-
- <div class="card bg-warning mb-3">
- <ul class="list-group list-group-flush bg-warning">
- <li class="list-group-item bg-warning">
- <strong class="kk-mask-reason">{{noescape (getDeprecation .Versions).Reason}}</strong>
-
- <div class="kk-mask-details">
-
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- Affected packages
- </div>
- <div class="col-xs-12 col-md-9 kk-mask-atoms overflow-hidden">
- {{(getDeprecation .Versions).Versions}}
- </div>
- </div>
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- Author/Date
- </div>
- <div class="col-xs-12 col-md-9">
- {{(getDeprecation .Versions).Author}} &lt;{{(getDeprecation .Versions).AuthorEmail}}&gt; <span class="text-muted">({{(getDeprecation .Versions).Date.Format "2006-01-02"}})</span>
- </div>
- </div>
- </div>
- </li>
- </ul>
- </div>
- {{- end}}
-
- {{- if not .Package.Maintainers }}
- <div class="alert alert-info">
- <strong><span class="fa fa-fw fa-wrench"></span> This package needs a new maintainer!</strong><br>
- If you are interested in helping with the maintenance of {{.Package.Name}}, please get in touch with our
- <a href="https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers" class="alert-link">Proxy Maintainers team</a>.
- </div>
- {{- end -}}
-
- {{template "metadata" .}}
-
- {{ if eq .UserPreferences.Packages.Overview.Layout "full" }}
- <div class="mt-4 pt-4"></div>
- {{template "changelog" .}}
- {{end}}
-
- </div>
- <div class="col-md-3 pl-4 pt-4 mt-2">
- {{template "resources" .}}
- </div>
-</div>
-{{end}}
diff --git a/web/templates/packages/components/pullrequests.tmpl b/web/templates/packages/components/pullrequests.tmpl
deleted file mode 100644
index 7782c62..0000000
--- a/web/templates/packages/components/pullrequests.tmpl
+++ /dev/null
@@ -1,75 +0,0 @@
-{{define "pull-requests"}}
-
- <div class="row">
- <div class="col-md-9">
-
- {{if .Package.PullRequests}}
-
- <h3 class="mb-4">Pull Requests</h3>
-
- <ul class="list-group">
-
- {{range .Package.PullRequests}}
-
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-11">
- <span class="octicon octicon-git-pull-request opticon-resource-icon ml-1" style="color:SeaGreen;"></span>
- <a href="https://github.com/gentoo/gentoo/pull/{{.Id}}" class="text-dark"><b>{{.Title}}</b></a>
- {{if eq .CiState "SUCCESS"}}
- <a href="{{.CiStateLink}}"><i class="fa fa-check mx-1" aria-hidden="true" style="color: SeaGreen;"></i></a>
- {{else}}
- <a href="{{.CiStateLink}}"><i class="fa fa-times mx-1" aria-hidden="true" style="color: #b60205;"></i></a>
- {{end}}
- {{range .Labels}}
- <span class="badge badge-pill badge-light p-1" style="font-weight: normal; {{if eq .Color "5319e7" "0052cc" "b60205"}}color:#FFF;{{end}} background-color: #{{.Color}}!important;">{{.Name}}</span>
- {{end}}
- </div>
- <div class="col-md-1 text-right">
- <a href="https://github.com/gentoo/gentoo/pull/{{.Id}}" class="text-muted">
- <i class="fa fa-comment-o" aria-hidden="true"></i>
- {{.Comments}}
- </a>
- </div>
- <div class="col-md-12 text-muted">
- <span style="font-size: 90%;">
- #{{.Id}} opened {{.CreatedAt}} by {{.Author}}
- </span>
- </div>
- </div>
- </li>
-
- {{end}}
- </ul>
-
- {{else}}
-
- <div class="row pt-5">
- <div class="col-md-4">
- <img style="width: 100%;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/Larry-the-cow-full.svg/1200px-Larry-the-cow-full.svg.png"/>
- </div>
- <div class="col-md-8 pt-3">
- <h2>There are no pull requests</h2>
- <span>You think something is missing here? <br/> Start with filling a <a href="https://wiki.gentoo.org/wiki/Gentoo_GitHub">new pull requests</a>.</span>
- </div>
- </div>
-
- {{end}}
-
- </div>
- <div class="col-md-3 pt-5">
- <h4 class="">
- <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">
- If you also like to help the Gentoo project, you can consider sending a Pull Request via GitHub.<br/>
- Before doing so, you might want to take a look at <a href="https://wiki.gentoo.org/wiki/Gentoo_GitHub">the wiki page</a>.
- </span>
- </div>
- </div>
- </div>
-
-{{end}}
diff --git a/web/templates/packages/components/qareport.tmpl b/web/templates/packages/components/qareport.tmpl
deleted file mode 100644
index f8dff96..0000000
--- a/web/templates/packages/components/qareport.tmpl
+++ /dev/null
@@ -1,79 +0,0 @@
-{{define "qa-report"}}
- <div class="row">
- <div class="col-md-9">
-
- <h3>Pkgcheck Warnings</h3>
- <ul class="timeline">
- <li>
- <span class="text-muted">All Versions</span>
- <ul class="list-group">
- {{- if .Package.PkgCheckResults -}}
- {{- range $.Package.PkgCheckResults -}}
- {{- if $.UserPreferences.ContainsPkgcheckClass .Class -}}
- {{- if not .Version -}}
- <li class="list-group-item">
- <strong>{{ .Class }}</strong><br/>
- <span class="kk-version kk-cell-sep-right text-muted">{{ .Message }}</span>
- </li>
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- </ul>
- </li>
-
- {{range $index, $element := .Package.Versions}}
- <li>
- <span class="text-muted">{{.Version}}</span>
- <ul class="list-group">
-
- {{ if .PkgCheckResults }}
- {{ range .PkgCheckResults }}
- {{if $.UserPreferences.ContainsPkgcheckClass .Class}}
- <li class="list-group-item">
- <strong>{{ .Class }}</strong><br/>
- <span class="kk-version kk-cell-sep-right text-muted">
- {{ .Message }}
- </span>
- </li>
- {{end}}
- {{end}}
- {{end}}
- </ul>
- </li>
- {{end}}
- </ul>
- </div>
- <div class="col-md-3 pt-5">
- <h4 class="">
- <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">
- Pkgcheck is used regularly to generate QA reports. Pkgcheck is a pkgcore-based QA utility for ebuild repos.
- </span>
- </div>
- <h4 class="mt-4">
- <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseExternalResources" role="button" aria-expanded="false" aria-controls="collapseExternalResources">
- External Resources
- </a>
- </h4>
- <div class="collapse show" id="collapseExternalResources">
- <ul>
- <li>
- <a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.html;pkg={{.Package.Category}}:{{.Package.Name}}" target="_blank">
- CI Report
- </a>
- </li>
- <li>
- <a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.verbose.html;pkg={{.Package.Category}}:{{.Package.Name}}" target="_blank">
- CI Report (verbose)
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
-{{end}}
diff --git a/web/templates/packages/components/reverse-dependencies.tmpl b/web/templates/packages/components/reverse-dependencies.tmpl
deleted file mode 100644
index 587d730..0000000
--- a/web/templates/packages/components/reverse-dependencies.tmpl
+++ /dev/null
@@ -1,62 +0,0 @@
-{{define "reverse-dependencies"}}
- <div class="row">
- <div class="col-md-9">
-
- <h3><a class="text-muted" href="/packages/{{.Package.Atom}}/dependencies"><i class="fa fa-level-down" aria-hidden="true"></i> Dependencies</a> <a class="ml-3 text-dark"><i class="fa fa-level-up" aria-hidden="true"></i> Reverse-Dependencies</a></h3>
-
- {{$revDevMap := .Package.BuildRevDepMap}}
-
- <div class="card mt-4">
- <div class="table-responsive border-0">
- <table class="table mb-0">
- <thead>
- <tr>
- <th scope="col">Version</th>
- <th scope="col">RDEPEND</th>
- <th scope="col">DEPEND</th>
- <th scope="col">BDEPEND</th>
- <th scope="col">IDEPEND</th>
- <th scope="col">PDEPEND</th>
- </tr>
- </thead>
- <tbody>
-
- {{ range $key, $value := $revDevMap }}
- <tr>
- <th scope="row"><a class="text-dark" href="/packages/{{replaceall $value.Atom "[B]" ""}}">{{$key}}</a></th>
- <td>{{if $value.rindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.dindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.bindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.iindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- <td>{{if $value.pindex}}<i class="fa fa-check" style="color:green;" aria-hidden="true"></i>{{else}}<i class="fa fa-times" style="color:#E1E1E1;" aria-hidden="true"></i>{{end}}</td>
- </tr>
- {{end}}
-
- </tbody>
- </table>
- </div>
- </div>
-
-
- </div>
- <div class="col-md-3 pt-5">
- <h4 class="">
- <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">
- The reverse dependencies are regularly parsed from the <a href="https://qa-reports.gentoo.org/">qa-reports</a>. The sources can be found at:
- <ul>
- <li><a href="https://qa-reports.gentoo.org/output/genrdeps/rindex/{{.Package.Atom}}">rdepend</a></li>
- <li><a href="https://qa-reports.gentoo.org/output/genrdeps/dindex/{{.Package.Atom}}">depend</a></li>
- <li><a href="https://qa-reports.gentoo.org/output/genrdeps/bindex/{{.Package.Atom}}">bdepend</a></li>
- <li><a href="https://qa-reports.gentoo.org/output/genrdeps/iindex/{{.Package.Atom}}">idepend</a></li>
- <li><a href="https://qa-reports.gentoo.org/output/genrdeps/pindex/{{.Package.Atom}}">pdepend</a></li>
- </ul>
- </span>
- </div>
- </div>
- </div>
-{{end}}
diff --git a/web/templates/packages/components/security.tmpl b/web/templates/packages/components/security.tmpl
deleted file mode 100644
index f9ff8c7..0000000
--- a/web/templates/packages/components/security.tmpl
+++ /dev/null
@@ -1,59 +0,0 @@
-{{define "security"}}
- <div class="row">
- <div class="col-md-9">
- {{- if .SecurityBugsCount -}}
- <h3 class="mb-4">Security Bug Reports</h3>
- <ul class="list-group">
- {{range .Package.AllBugs}}
- {{if eq .Component "Vulnerabilities"}}
- <li class="list-group-item">
- <div class="row">
- <div class="col-md-12">
- <i class="fa fa-bug" aria-hidden="true"></i>
- <a href="https://bugs.gentoo.org/{{.Id}}" class="text-dark"><b>{{.Summary}}</b></a>
- </div>
- <div class="col-md-12 text-muted">
- {{.Id}} - Assigned to {{.Assignee}}
- </div>
- </div>
- </li>
- {{end}}
- {{end}}
- </ul>
- {{- else -}}
- <div class="row pt-5">
- <div class="col-md-4">
- <img style="width: 100%;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/Larry-the-cow-full.svg/1200px-Larry-the-cow-full.svg.png"/>
- </div>
- <div class="col-md-8 pt-3">
- <h2>There are no open security bugs.</h2>
- <span>You think something is missing here? <br/> Start with filling a <a href="https://bugs.gentoo.org/">new security bug</a>.</span>
- </div>
- </div>
- {{- end -}}
- </div>
- <div class="col-md-3 pt-5">
- <h4>
- <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseDescription" role="button" aria-expanded="false" aria-controls="collapseDescription">
- Contact Information
- </a>
- </h4>
- <div class="collapse show" id="collapseDescription">
- <span class="text-muted">
- Please file new vulnerability reports on <a href="https://bugs.gentoo.org/">Gentoo Bugzilla</a> and assign them to the Gentoo Security product and Vulnerabilities component.
- </span>
- </div>
- <h4 class="mt-4">
- <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseExternalResources" role="button" aria-expanded="false" aria-controls="collapseExternalResources">
- External Resources
- </a>
- </h4>
- <div class="collapse show" id="collapseExternalResources">
- <ul>
- <li><a href="https://bugs.gentoo.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=CONFIRMED&bug_status=IN_PROGRESS&bug_status=RESOLVED&bug_status=VERIFIED&email1=security%40gentoo.org&emailassigned_to1=1&emailtype1=equals&list_id=4699406&query_format=advanced&resolution=---&resolution=FIXED&resolution=INVALID&resolution=WONTFIX&resolution=LATER&resolution=REMIND&resolution=DUPLICATE&resolution=WORKSFORME&resolution=CANTFIX&resolution=NEEDINFO&resolution=TEST-REQUEST&resolution=UPSTREAM&resolution=OBSOLETE&short_desc={{.Package.Category}}%2F{{.Package.Name}}&short_desc_type=allwordssubstr">All security bugs for this package</a></li>
- </ul>
- </div>
- </div>
- </div>
-{{end}}
-
diff --git a/web/templates/packages/metadata.tmpl b/web/templates/packages/metadata.tmpl
deleted file mode 100644
index 7b8ac33..0000000
--- a/web/templates/packages/metadata.tmpl
+++ /dev/null
@@ -1,157 +0,0 @@
-{{define "metadata"}}
-{{- if gt (len .UserPreferences.Packages.Overview.MetadataFields) 0 -}}
- <h3 class="pt-3 mb-2">Package Metadata</h3>
-{{- end -}}
-
-<div class="card border-0 mb-3">
- <ul class="list-group kk-metadata-list">
-
- <!-- TODO -->
- {{if listContains .UserPreferences.Packages.Overview.MetadataFields "homepage"}}
- {{ if gt (len (index .Versions 0).Homepage) 1 }}
- <li class="kk-metadata-item list-group-item">
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- <span class="fa fa-fw fa-home"></span>
- Other homepage(s)
- </div>
- <div class="col-xs-12 col-md-9">
- <a href="{{ (index (index .Versions 0).Homepage 1) }}">{{ (index (index .Versions 0).Homepage 1) }}</a>
- </div>
- </div>
- </li>
- {{end}}
- {{end}}
-
- {{- if listContains .UserPreferences.Packages.Overview.MetadataFields "upstream" -}}
- {{- if .Package.Upstream -}}
- {{- if or .Package.Upstream.Doc .Package.Upstream.Changelog .Package.Upstream.BugsTo .Package.Upstream.RemoteIds -}}
- <li class="kk-metadata-item list-group-item">
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- <span class="fa fa-fw fa-code-fork"></span>
- Upstream
- </div>
- <div class="col-xs-12 col-md-9">
- <table>
- {{- if .Package.Upstream.Doc -}}
- {{- range $k, $v := .Package.Upstream.Doc }}
- <tr>
- <td>{{if eq $k 0}}<span class="kk-useflag-group float-right mr-2">Documentation </span>{{end}}</td>
- {{ if $v -}}
- <td><a href="{{ $v}}">{{ $v }}</a></td>
- {{- end }}
- </tr>
- {{- end -}}
- {{- end -}}
- {{- if .Package.Upstream.Changelog -}}
- {{- range $k, $v := .Package.Upstream.Changelog }}
- <tr>
- <td>{{if eq $k 0}}<span class="kk-useflag-group float-right mr-2">Changelog</span>{{end}}</td>
- {{ if $v -}}
- <td><a href="{{ $v}}">{{ $v }}</a></td>
- {{- end }}
- </tr>
- {{- end -}}
- {{- end -}}
- {{- if .Package.Upstream.BugsTo -}}
- {{- range $k, $v := .Package.Upstream.BugsTo }}
- <tr>
- <td>{{if eq $k 0}}<span class="kk-useflag-group float-right mr-2">Bugs-To</span>{{end}}</td>
- {{ if $v -}}
- <td><a href="{{ $v}}">{{ $v }}</a></td>
- {{- end }}
- </tr>
- {{- end -}}
- {{- end -}}
- {{- if .Package.Upstream.RemoteIds -}}
- {{- range $k, $v := .Package.Upstream.RemoteIds }}
- {{- $link := RemoteIdLink . -}}
- {{- if $link }}
- <tr>
- <td>{{if eq $k 0}}<span class="kk-useflag-group float-right mr-2">Remote-Id</span>{{end}}</td>
- <td><a href="{{ $link}}">{{ $link }}</a></td>
- </tr>
- {{- end }}
- {{- end -}}
- {{- end }}
- </table>
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end -}}
- {{- end -}}
-
- {{- if listContains .UserPreferences.Packages.Overview.MetadataFields "longdescription" -}}
- {{- if .Package.Longdescription }}
- <li class="kk-metadata-item list-group-item">
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- <span class="fa fa-fw fa-info"></span>
- Full description
- </div>
- <div class="col-xs-12 col-md-9">
- {{ .Package.Longdescription }}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end -}}
-
- {{- if listContains .UserPreferences.Packages.Overview.MetadataFields "useflags" -}}
- {{- if or .LocalUseflags .GlobalUseflags .UseExpands }}
- <li class="kk-metadata-item list-group-item">
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- <span class="fa fa-fw fa-sliders"></span>
- USE flags
- </div>
- <div class="col-xs-12 col-md-9">
- {{ template "useflag" .}}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end -}}
-
- {{- if listContains .UserPreferences.Packages.Overview.MetadataFields "license" -}}
- {{- if (index .Versions 0).License }}
- <li class="kk-metadata-item list-group-item">
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- <span class="fa fa-fw fa-legal"></span>
- License
- </div>
- <div class="col-xs-12 col-md-9">
- {{ (index .Versions 0).License }}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end -}}
-
- {{- if listContains .UserPreferences.Packages.Overview.MetadataFields "maintainers" -}}
- {{- if .Package.Maintainers }}
- <li class="kk-metadata-item list-group-item">
- <div class="row">
- <div class="col-xs-12 col-md-3 kk-metadata-key">
- <span class="fa fa-fw fa-user"></span>
- Maintainer(s)
- </div>
- <div class="col-xs-12 col-md-9">
- {{- range .Package.Maintainers -}}
- {{- if (ne .Name (index $.Package.Maintainers 0).Name) -}}
- ,&nbsp;
- {{- end }}
- <a title="{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}" href="/maintainer/{{.Email}}">{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}</a> <a href="mailto:{{.Email}}"><i class="fa fa-envelope-o" style="font-size: .925em;" aria-hidden="true"></i></a>
- {{- end }}
- </div>
- </div>
- </li>
- {{- end -}}
- {{- end -}}
-
- </ul>
-</div>
-{{end}}
diff --git a/web/templates/packages/packageheader.tmpl b/web/templates/packages/packageheader.tmpl
deleted file mode 100644
index 1178d08..0000000
--- a/web/templates/packages/packageheader.tmpl
+++ /dev/null
@@ -1,62 +0,0 @@
-{{define "packageheader"}}
- <div class="kk-header-container">
- <div class="container">
- <div class="row">
- <div class="col-12">
- <div class="row mt-3">
- <div class="col-md-5">
- <h1 class="stick-top kk-package-title" id="package-title" data-atom="{{.Package.Atom}}" data-category="{{.Package.Category}}" data-name="{{.Package.Name}}">
- <small class="kk-package-cat"><a href="/categories/{{.Package.Category}}" class="text-dark">{{.Package.Category}}</a>/</small>
- <div>
- <svg height="32" class="octicon octicon-package right left kk-package-icon" aria-label="Package icon" viewBox="0 0 16 16" version="1.1" width="32" role="img"><path fill-rule="evenodd" d="M1 4.27v7.47c0 .45.3.84.75.97l6.5 1.73c.16.05.34.05.5 0l6.5-1.73c.45-.13.75-.52.75-.97V4.27c0-.45-.3-.84-.75-.97l-6.5-1.74a1.4 1.4 0 0 0-.5 0L1.75 3.3c-.45.13-.75.52-.75.97zm7 9.09l-6-1.59V5l6 1.61v6.75zM2 4l2.5-.67L11 5.06l-2.5.67L2 4zm13 7.77l-6 1.59V6.61l2-.55V8.5l2-.53V5.53L15 5v6.77zm-2-7.24L6.5 2.8l2-.53L15 4l-2 .53z"></path></svg>
- <div class="kk-package-name">{{.Package.Name}}</div>
- </div>
- </h1>
- </div>
- <div class="col-md-7">
- <p class="lead kk-package-maindesc">
- {{- (index .Versions 0).Description -}}
- </p>
- {{ if (index .Versions 0).Homepage -}}
- <p class="kk-package-homepage">
- <a href="{{ ( index (index .Versions 0).Homepage 0) }}">{{ ( index (index .Versions 0).Homepage 0) }}</a>
- </p>
- {{- end }}
- </div>
- <div class="col-md-12 pt-4 mt-1">
- <nav class="nav kk-package-nav">
- {{ if listContains $.UserPreferences.Packages.Tabs.Visible "Overview" -}}
- <a class="nav-link {{if eq .PageName "overview"}}active{{end}}" href="/packages/{{.Package.Atom}}"><i class="fa fa-info mr-1" aria-hidden="true"></i> Overview</a>
- {{ end -}}
-
- {{- if listContains $.UserPreferences.Packages.Tabs.Visible "Dependencies" -}}
- <a class="nav-link {{if eq .PageName "dependencies" "reverse-dependencies"}}active{{end}}" href="/packages/{{.Package.Atom}}/{{.UserPreferences.Packages.Dependencies.Default}}"><i class="fa fa-link"></i> Dependencies</a>
- {{ end}}
-
- {{- if listContains $.UserPreferences.Packages.Tabs.Visible "QA report" -}}
- <a class="nav-link {{if eq .PageName "qa-report"}}active{{end}}" href="/packages/{{.Package.Atom}}/qa-report"><i class="fa fa-fw fa-chain-broken"></i> QA report </a>
- {{ end -}}
-
- {{- if listContains $.UserPreferences.Packages.Tabs.Visible "Pull requests" -}}
- <a class="nav-link {{if eq .PageName "pull-requests"}}active{{end}}" href="/packages/{{.Package.Atom}}/pull-requests"><span class="octicon octicon-git-pull-request opticon-resource-icon ml-1"></span> Pull requests <span class="ml-1 badge badge-pill kk-misc-badge">{{len .Package.PullRequests}}</span></a>
- {{ end -}}
-
- {{- if listContains $.UserPreferences.Packages.Tabs.Visible "Bugs" -}}
- <a class="nav-link {{if eq .PageName "bugs"}}active{{end}}" href="/packages/{{.Package.Atom}}/bugs"><i class="fa fa-bug" aria-hidden="true"></i> Bugs <span class="ml-1 badge badge-pill kk-misc-badge">{{.NonSecurityBugsCount}}</span></a>
- {{ end -}}
-
- {{- if listContains $.UserPreferences.Packages.Tabs.Visible "Security" -}}
- <a class="nav-link {{if eq .PageName "security"}}active{{end}}" href="/packages/{{.Package.Atom}}/security"><i class="fa fa-shield" aria-hidden="true"></i> Security <span class="ml-1 badge badge-pill kk-misc-badge">{{.SecurityBugsCount}}</span></a>
- {{ end -}}
-
- {{- if listContains $.UserPreferences.Packages.Tabs.Visible "Changelog" -}}
- <a class="nav-link {{if eq .PageName "changelog"}}active{{end}}" href="/packages/{{.Package.Atom}}/changelog"><i class="fa fa-fw fa-history"></i> Changelog</a>
- {{- end }}
- </nav>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-{{end}}
diff --git a/web/templates/packages/resources.tmpl b/web/templates/packages/resources.tmpl
deleted file mode 100644
index cd4b4a3..0000000
--- a/web/templates/packages/resources.tmpl
+++ /dev/null
@@ -1,65 +0,0 @@
-{{define "resources"}}
-
- <h4 class="mb-2 ml-1">
- <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseExternalResources" role="button" aria-expanded="false" aria-controls="collapseExternalResources">
- External Resources
- </a>
- </h4>
-
- <div class="collapse show" id="collapseExternalResources">
- <dl class="ml-3">
- <dd>
- <span class="fa fa-fw fa-bug"></span>
- <a href="https://bugs.gentoo.org/buglist.cgi?quicksearch={{.Package.Atom}}" class="" target="_blank">
- Related bugs
- </a>
- </dd>
- <dd>
- <span class="fa fa-fw fa-chain-broken"></span>
- <a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.html;pkg={{.Package.Category}}:{{.Package.Name}}" title="CI report" target="_blank">CI Report</a>
- (<a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.verbose.html;pkg={{.Package.Category}}:{{.Package.Name}}" title="Verbose CI report" target="_blank">verbose</a>)
- </dd>
- <dd>
- <span class="fa fa-fw fa-sort-numeric-desc"></span>
- <a href="https://repology.org/tools/project-by?repo=gentoo&name_type=srcname&target_page=project_versions&name={{.Package.Category}}/{{.Package.Name}}" target="_blank">
- Repology
- </a>
- </dd>
- <dd>
- <span class="octicon octicon-git-pull-request opticon-resource-icon ml-1"></span>
- <a href="https://github.com/gentoo/gentoo/pulls?q=is%3Apr+is%3Aopen+in%3Atitle+{{.Package.Category}}%2F{{.Package.Name}}" target="_blank">
- Open Pull Requests
- </a>
- </dd>
- <dd>
- <span class="fa fa-fw fa-book"></span>
- <a href="https://wiki.gentoo.org/wiki/Special:Search/{{.Package.Name}}" target="_blank">
- Documentation
- </a>
- </dd>
- <dd>
- <span class="fa fa-fw fa-comments-o"></span>
- <a href="https://forums.gentoo.org/search.php?search_terms=all&show_results=topics&search_keywords={{.Package.Name}}&mode=results" target="_blank">
- Forums posts
- </a>
- </dd>
- <dd>
- <span class="fa fa-fw fa-code-fork"></span>
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/tree/{{.Package.Atom}}" target="_blank">
- Git repository browser
- </a>
- </dd>
- <dd>
- <span class="fa fa-fw fa-history"></span>
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/log/{{.Package.Atom}}?showmsg=1" title="Git log" target="_blank">Git log</a>
- (<a href="https://gitweb.gentoo.org/repo/gentoo.git/log/{{.Package.Atom}}" title="Short git log" target="_blank">short</a>)
- </dd>
- <dd>
- <span class="fa fa-fw fa-rss"></span>
- <a href="https://gitweb.gentoo.org/repo/gentoo.git/atom/{{.Package.Atom}}?h=master" target="_blank">
- Changes Feed
- </a>
- </dd>
- </dl>
- </div>
-{{end}}
diff --git a/web/templates/packages/show.tmpl b/web/templates/packages/show.tmpl
deleted file mode 100644
index 3e8dad2..0000000
--- a/web/templates/packages/show.tmpl
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-{{template "head" .Header}}
-<body>
-{{template "header" .Header}}
-
-{{template "packageheader" .}}
-
-<div class="tab-content" id="myTabContent">
- <div class="container mb-5 tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
- {{if eq .PageName "overview"}}
- {{template "overview" .}}
- {{else if eq .PageName "qa-report"}}
- {{template "qa-report" .}}
- {{else if eq .PageName "pull-requests"}}
- {{template "pull-requests" .}}
- {{else if eq .PageName "bugs"}}
- {{template "bugs" .}}
- {{else if eq .PageName "security"}}
- {{template "security" .}}
- {{else if eq .PageName "dependencies"}}
- {{template "dependencies" .}}
- {{else if eq .PageName "reverse-dependencies"}}
- {{template "reverse-dependencies" .}}
- {{else if eq .PageName "changelog"}}
- <div class="row">
- <div class="col-md-9">
- {{template "changelog" .}}
- </div>
- </div>
- {{end}}
- </div>
-</div>
-
-{{template "footer" .Application }}
-
-</body>
-</html>
diff --git a/web/templates/packages/useflag.tmpl b/web/templates/packages/useflag.tmpl
deleted file mode 100644
index ce136af..0000000
--- a/web/templates/packages/useflag.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-{{define "useflag"}}
- {{ if .LocalUseflags }}
- <span class="kk-useflag-group">Local Use Flags</span>
- <ul class="kk-useflag-container {{ if ge (len .LocalUseflags) 10 }}kk-useflag-container-many{{else}}kk-useflag-container-few{{end}}">
- {{range .LocalUseflags}}
- <li class="kk-useflag">
- <a title="{{.Description}}" data-toggle="tooltip" href="/useflags/{{.Name}}">{{.Name}}</a>
- </li>
- {{end}}
- </ul>
-
- {{end}}
-
-
-
- {{ if .GlobalUseflags }}
- <span class="kk-useflag-group">Global Use Flags</span>
- <ul class="kk-useflag-container {{ if ge (len .GlobalUseflags) 10 }}kk-useflag-container-many{{else}}kk-useflag-container-few{{end}}">
- {{range .GlobalUseflags}}
- <li class="kk-useflag">
- <a title="{{.Description}}" data-toggle="tooltip" href="/useflags/{{.Name}}">{{.Name}}</a>
- </li>
- {{end}}
- </ul>
- {{end}}
-
-
- {{ if .UseExpands }}
- {{range $key, $flags := .UseExpands}}
- <span class="kk-useflag-group">{{ $key }} (Use Expand)</span>
- <ul class="kk-useflag-container {{ if ge (len $flags) 10 }}kk-useflag-container-many{{else}}kk-useflag-container-few{{end}}">
- {{range $flags}}
- <li class="kk-useflag">
- <a title="{{.Description}}" data-toggle="tooltip" href="/useflags/{{.Name}}">{{ replaceall .Name (print .UseExpand "_") "" }}</a>
- </li>
- {{end}}
- </ul>
- {{end}}
- {{end}}
-{{end}}
diff --git a/web/templates/packages/versionicons.tmpl b/web/templates/packages/versionicons.tmpl
deleted file mode 100644
index 82d0e94..0000000
--- a/web/templates/packages/versionicons.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-{{define "versionicons"}}
- <svg style="display: none" version="1.1"><defs>
- <symbol id="svg-ver-mask" viewBox="0 0 14 16">
- <path fill-rule="evenodd" d="M13 1H1c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 13H1V2h12v12zm-8.5-2H3v-1.5L9.5 4H11v1.5L4.5 12z" />
- </symbol>
- <symbol id="svg-ver-testing" viewBox="0 0 14 16">
- <path fill-rule="evenodd" d="M13 1H1c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z" />
- </symbol>
- <symbol id="svg-ver-unavailable" viewBox="0 0 14 16">
- <path fill-rule="evenodd" d="M13 1H1c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 13H1V2h12v12zm-2-5H3V7h8v2z" />
- </symbol>
- <symbol id="svg-ver-stable" viewBox="0 0 14 16">
- <path fill-rule="evenodd" d="M13 1H1c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z" />
- </symbol>
- </defs></svg>
-{{end}}
diff --git a/web/templates/packages/versionrows.tmpl b/web/templates/packages/versionrows.tmpl
deleted file mode 100644
index 61088fd..0000000
--- a/web/templates/packages/versionrows.tmpl
+++ /dev/null
@@ -1,64 +0,0 @@
-{{define "versionrows"}}
- {{- range $index, $version := .Package.Versions -}}
- <tr>
- <td class="kk-version ">
- <strong><a class="kk-ebuild-link" href="https://gitweb.gentoo.org/repo/gentoo.git/tree/{{$version.Atom}}/{{$version.Package}}-{{$version.Version}}.ebuild">{{$version.Version}}</a></strong>
- <span class="kk-slot"> : {{ $version.Slot }}{{ if $version.Subslot }}/{{ $version.Subslot }}{{ end }}</span>
- {{- if $version.Restricts -}}
- <span class="badge badge-danger kk-restrict-label" title="The following features are restricted: {{ $version.Restricts }}">{{ formatRestricts $version.Restricts }}</span>
- {{- end -}}
- {{- if eq $.UserPreferences.Packages.Overview.EAPI "inline" -}}
- <span style="background-color: white;border:1px solid grey;color: grey;" class="badge badge-danger kk-restrict-label" title="The following features are restricted:">EAPI {{$version.EAPI}}</span>
- {{- end }}
- </td>
-
- {{- if eq $.UserPreferences.Packages.Overview.EAPI "column" -}}
- <td class="text-center">
- {{- $version.EAPI -}}
- </td>
- {{- end -}}
-
- {{- range $.UserPreferences.Packages.Overview.Keywords -}}
- {{- if contains (print " " $version " ") (print "~" . " ") -}}
- {{- if ge (len $version.Masks) 1 }}
- <td class="kk-keyword kk-keyword-masked" title="{{$version.Version}} is masked (testing) on {{.}}">
- <svg height="16" class="octicon octicon-diff-modified" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-mask" xlink:href="#svg-ver-mask" /></svg>
- <span class="sr-only">~{{.}}</span>
- </td>
- {{- else }}
- <td class="kk-keyword kk-keyword-testing" title="{{$version.Version}} is testing on {{.}}">
- <svg height="16" class="octicon octicon-diff-modified" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-testing" xlink:href="#svg-ver-testing" /></svg>
- <span class="sr-only">~{{.}}</span>
- </td>
- {{- end -}}
- {{- else if contains (print " " $version.Keywords " ") (print "-" . " ") }}
- <td class="kk-keyword kk-keyword-unavailable" title="{{$version.Version}} is unavailable on {{.}}">
- <svg height="16" class="octicon octicon-diff-removed" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-unavailable" xlink:href="#svg-ver-unavailable" /></svg>
- <span class="sr-only">-{{.}}</span>
- </td>
- {{- else if contains (print " " $version.Keywords " ") (print . " ") }}
- {{- if ge (len $version.Masks) 1 -}}
- <td class="kk-keyword kk-keyword-masked" title="{{$version.Version}} is masked (stable) on {{.}}">
- <svg height="16" class="octicon octicon-diff-added" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-mask" xlink:href="#svg-ver-mask" /></svg>
- <span class="sr-only">{{.}}</span>
- </td>
- {{- else -}}
- <td class="kk-keyword kk-keyword-stable" title="{{$version.Version}} is stable on {{.}}">
- <svg height="16" class="octicon octicon-diff-added" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-stable" xlink:href="#svg-ver-stable" /></svg>
- <span class="sr-only">{{.}}</span>
- </td>
- {{- end -}}
- {{- else if contains $version.Keywords "-*" }}
- <td class="kk-keyword kk-keyword-unavailable" title="{{$version.Version}} is unavailable on {{.}}">
- <svg height="16" class="octicon octicon-diff-removed" version="1.1" width="14" aria-hidden="true"><use href="#svg-ver-unavailable" xlink:href="#svg-ver-unavailable" /></svg>
- <span class="sr-only">-{{.}}</span>
- </td>
- {{- else }}
- <td class="kk-keyword kk-keyword-unkown" title="{{$version.Version}} is unknown on {{.}}">
- <span class="sr-only">?{{.}}</span>
- </td>
- {{- end -}}
- {{- end -}}
- </tr>
- {{- end -}}
-{{- end -}}
diff --git a/web/templates/packages/versions.tmpl b/web/templates/packages/versions.tmpl
deleted file mode 100644
index bcef3d6..0000000
--- a/web/templates/packages/versions.tmpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{{define "versions"}}
-
- <h3 class="mb-2">Available Versions</h3>
-
- <div class="card mb-4 rounded">
- {{template "versionicons" .}}
- <div class="table-responsive border-0">
- <table class="table table-bordered kk-versions-table mb-0 overflow-hidden border-0">
- <thead class="border-0">
- <tr class="border-0">
- <th class="kk-version border-left-0 border-top-0">Version</th>
- {{ if eq .UserPreferences.Packages.Overview.EAPI "column" -}}
- <th class="kk-keyword-header kk-keyword border-left-0 border-top-0">EAPI</th>
- {{- end -}}
- {{- range .UserPreferences.Packages.Overview.Keywords -}}
- <th class="kk-keyword-header kk-keyword border-left-0 border-top-0">{{.}}</th>
- {{ end -}}
- </tr>
- </thead>
- <tbody>
- {{template "versionrows" .}}
- </tbody>
- </table>
- </div>
- </div>
-{{end}}