diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-02-20 09:07:06 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-02-20 09:08:42 +0200 |
commit | 8282b0c482bed5800c5f65df6fef03ebd9e6dfe7 (patch) | |
tree | cb22b5a367d301194190029f676f6e14abaa3e4b /web | |
parent | updater/projects: fix for case of duplicate project email (diff) | |
download | soko-8282b0c482bed5800c5f65df6fef03ebd9e6dfe7.tar.gz soko-8282b0c482bed5800c5f65df6fef03ebd9e6dfe7.tar.bz2 soko-8282b0c482bed5800c5f65df6fef03ebd9e6dfe7.zip |
migrate maintainer pages & optimize single maintainer queries
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/maintainer/browse.tmpl | 103 | ||||
-rw-r--r-- | web/templates/maintainer/components/bugs.tmpl | 118 | ||||
-rw-r--r-- | web/templates/maintainer/components/changelog.tmpl | 96 | ||||
-rw-r--r-- | web/templates/maintainer/components/outdated.tmpl | 52 | ||||
-rw-r--r-- | web/templates/maintainer/components/packages.tmpl | 144 | ||||
-rw-r--r-- | web/templates/maintainer/components/pullrequests.tmpl | 73 | ||||
-rw-r--r-- | web/templates/maintainer/components/security.tmpl | 52 | ||||
-rw-r--r-- | web/templates/maintainer/components/stabilization.tmpl | 86 | ||||
-rw-r--r-- | web/templates/maintainer/maintainerheader.tmpl | 45 | ||||
-rw-r--r-- | web/templates/maintainer/maintainersbrowseheader.tmpl | 31 | ||||
-rw-r--r-- | web/templates/maintainer/show.tmpl | 33 |
11 files changed, 0 insertions, 833 deletions
diff --git a/web/templates/maintainer/browse.tmpl b/web/templates/maintainer/browse.tmpl deleted file mode 100644 index 822142d..0000000 --- a/web/templates/maintainer/browse.tmpl +++ /dev/null @@ -1,103 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -{{template "head" .Header}} -<body> -{{template "header" .Header}} - -{{template "maintainersbrowseheader" .}} - -<div class="tab-content" id="myTabContent"> - -<div class="container mb-5"> - <div class="row"> - <div class="col-12"> - - <div class="row"> - <div class="col-md-12"> - {{if eq .TabName "projects"}} - <ul class="kk-col-list kk-6col-list kk-category-listing"> - {{ $prevletter := "z"}} - {{range .Maintainers}} - {{ if eq .Type "project"}} - {{ if (ne (printf "%.1s" .Name) $prevletter)}} - <li class="kk-col-list-header"><span class="kk-group-header">{{if .Name}}{{ printf "%.1s" .Name }}{{else}}#{{end}}</span></li> - {{end}} - {{ $prevletter = (printf "%.1s" .Name) }} - - <li> - <a title="{{.Name}}" data-toggle="tooltip" data-placement="right" href="/maintainer/{{.Email}}">{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}</a> - </li> - {{end}} - {{end}} - </ul> - {{else if eq .TabName "gentoo-developers"}} - <ul class="kk-col-list kk-6col-list kk-category-listing"> - {{ $prevletter := "z"}} - {{range .Maintainers}} - {{ if eq .Type "gentoo-developer"}} - {{ if (ne (printf "%.1s" .Name) $prevletter)}} - <li class="kk-col-list-header"><span class="kk-group-header">{{if .Name}}{{ printf "%.1s" .Name }}{{else}}#{{end}}</span></li> - {{end}} - {{ $prevletter = (printf "%.1s" .Name) }} - - <li> - <a title="{{.Name}}" data-toggle="tooltip" data-placement="right" href="/maintainer/{{.Email}}">{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}</a> - </li> - {{end}} - {{end}} - </ul> - {{else if eq .TabName "proxied-maintainers"}} - <ul class="kk-col-list kk-6col-list kk-category-listing"> - {{ $prevletter := "z"}} - {{range .Maintainers}} - {{ if eq .Type "proxied-maintainer"}} - {{ if (ne (printf "%.1s" .Name) $prevletter)}} - <li class="kk-col-list-header"><span class="kk-group-header">{{if .Name}}{{ printf "%.1s" .Name }}{{else}}#{{end}}</span></li> - {{end}} - {{ $prevletter = (printf "%.1s" .Name) }} - - <li> - <a title="{{.Name}}" data-toggle="tooltip" data-placement="right" href="/maintainer/{{.Email}}">{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}</a> - </li> - {{end}} - {{end}} - </ul> - {{end}} - - - </div> - <div class="col-md-3 d-none"> - <h4 class="">Description</h4> - {{if eq .TabName "projects"}} - <span class="text-muted"> - A project in Gentoo is according to <a href="https://www.gentoo.org/glep/glep-0039.html">GLEP 39</a> a group of developers working towards a goal (or a set of goals). - </span> - {{else if eq .TabName "gentoo-developers"}} - <span class="text-muted"> - Here you can see all official <a href="https://www.gentoo.org/inside-gentoo/developers/">Gentoo developers</a> that are listed as the maintainer of at least one package in the tree.<br/><br/> - Interested into becoming a Gentoo developer? We do have some <a href="https://www.gentoo.org/get-involved/become-developer/">guidance</a>. - </span> - {{else if eq .TabName "proxied-maintainers"}} - <span class="text-muted"> - Proxied maintainers are users who are maintaining packages in the official Gentoo package repository. <br/><br/> - Want to become a Proxied maintainer? Follow <a href="https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers/User_Guide">this guide</a>.<br/><br/> - You might especially be intersted into <a href="/maintainer/maintainer-needed@gentoo.org">packages that need a maintainer</a>. - </span> - - {{end}} - </div> - </div> - - - </div> - </div> -</div> - - -</div> - - -{{template "footer" .Application }} - -</body> -</html> diff --git a/web/templates/maintainer/components/bugs.tmpl b/web/templates/maintainer/components/bugs.tmpl deleted file mode 100644 index 01e9baa..0000000 --- a/web/templates/maintainer/components/bugs.tmpl +++ /dev/null @@ -1,118 +0,0 @@ -{{define "bugs"}} - <div class="row"> - <div class="col-md-9"> - {{- $general_bugs := 0 -}} - {{- $stabilization_bugs := 0 -}} - {{- $keywording_bugs := 0 -}} - {{- range getAllBugs .Packages -}} - {{- if eq .Component "Current packages" -}} - {{- $general_bugs = (add $general_bugs 1) -}} - {{- else if eq .Component "Stabilization" -}} - {{- $stabilization_bugs = (add $stabilization_bugs 1) -}} - {{- else if eq .Component "Keywording" -}} - {{- $keywording_bugs = (add $keywording_bugs 1) -}} - {{- end -}} - {{- end -}} - - {{- if .Maintainer.PackagesInformation.Bugs -}} - - {{if $general_bugs}} - <h3 id="packages" class="mb-4">Bug Reports</h3> - <ul class="list-group"> - {{- range getAllBugs .Packages -}} - {{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 $stabilization_bugs}} - <h3 id="stabilization" class="my-4">Stabilization Bug Reports</h3> - <ul class="list-group"> - {{- range getAllBugs .Packages -}} - {{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 $keywording_bugs}} - <h3 id="keywording" class="my-4">Keywording Bug Reports</h3> - <ul class="list-group"> - {{- range getAllBugs .Packages -}} - {{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 $general_bugs}}<a href="#packages">Packages Bugs ({{$general_bugs}})</a>{{else}}<a>Packages Bugs (0)</a>{{end}}</li> - <li>{{if $stabilization_bugs}}<a href="#stabilization">Stabilization Bugs ({{$stabilization_bugs}})</a>{{else}}<a>Stabilization Bugs (0)</a>{{end}}</li> - <li>{{if $keywording_bugs}}<a href="#keywording">Keywording Bugs ({{$keywording_bugs}})</a>{{else}}<a>Keywording Bugs (0)</a>{{end}}</li> - </ul> - </div> - </div> - </div> -{{end}} - diff --git a/web/templates/maintainer/components/changelog.tmpl b/web/templates/maintainer/components/changelog.tmpl deleted file mode 100644 index 0afacc0..0000000 --- a/web/templates/maintainer/components/changelog.tmpl +++ /dev/null @@ -1,96 +0,0 @@ -{{- define "changelog" -}} -<div class="row"> - <div class="col-md-9"> - {{- $commits := allCommits .Packages -}} - {{- if $commits }} - <div class="col-md-12"> - <h3>Latest Commits</h3> - <style> - .kk-added-file-badge { - background-color: #dff0d8; - font-weight: normal; - } - .kk-added-file-badge > a { - color: #424242!important; - } - .kk-modified-file-badge { - background-color: #fcf8e3; - font-weight: normal; - } - .kk-modified-file-badge > a { - color: #424242!important; - } - .kk-deleted-file-badge { - background-color: #f2dede; - font-weight: normal; - } - .kk-deleted-file-badge > a { - color: #424242!important; - } - </style> - <ul class="timeline"> - <li> - <span class="text-muted">Commits on {{((index $commits 0).CommitterDate).Format "2006-01-02"}}</span> - <ul class="list-group"> - {{- $last_date := (index $commits 0).CommitterDate -}} - {{- range $commits -}} - {{- if ne ($last_date.Format "2006-01-02") (.CommitterDate.Format "2006-01-02") -}} - </ul> - </li> - <li> - <span class="text-muted">Commits on {{.CommitterDate.Format "2006-01-02"}}</span> - <ul class="list-group"> - {{- end -}} - <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 - {{- 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 le $key 20}} - <span class="badge badge-pill kk-added-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ .Path }}?id={{ $commit.Id }}">{{ .Path }}</a></span> - {{- end -}} - {{- end -}} - {{range $key, $value := .ChangedFiles.Modified -}} - {{- if le $key 20}} - <span class="badge badge-pill kk-modified-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ .Path }}?id={{ $commit.Id }}">{{ .Path }}</a></span> - {{- end -}} - {{- end -}} - {{range $key, $value := .ChangedFiles.Deleted -}} - {{- if le $key 20 }} - <span class="badge badge-pill kk-deleted-file-badge badge-light"><a class="text-muted" href="https://gitweb.gentoo.org/repo/gentoo.git/diff/{{ .Path }}?id={{ $commit.Id }}">{{ .Path }}</a></span> - {{- end -}} - {{- end -}} - {{- if or (gt (len .ChangedFiles.Added) 20) (gt (len .ChangedFiles.Modified) 20) (gt (len .ChangedFiles.Deleted) 20) }} - <a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{.Id}}" class="text-muted">...</a> - {{ end -}} - </div> - </div> - </li> - {{- $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 -}} - </div> -</div> -{{- end -}} diff --git a/web/templates/maintainer/components/outdated.tmpl b/web/templates/maintainer/components/outdated.tmpl deleted file mode 100644 index dc2fd6e..0000000 --- a/web/templates/maintainer/components/outdated.tmpl +++ /dev/null @@ -1,52 +0,0 @@ -{{define "outdated"}} - <div class="row"> - <div class="col-md-9"> - {{if .Maintainer.PackagesInformation.Outdated}} - <h3 class="mb-4">Outdated Packages</h3> - <ul class="list-group"> - {{range .Packages}} - {{if .Outdated}} - <li class="list-group-item"> - <div class="row"> - <div class="col-md-4"> - <a href="/packages/{{.Atom}}" class="text-dark"><b>{{.Atom}}</b></a> - </div> - <div class="col-md-8 text-muted"> - {{.Description}} - </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>Good job!</h2> - <span>According to repology.org there are no outdated packages here. <br/> - Please use this information with care though. The repology data might not be accurate. - </span> - </div> - </div> - {{end}} - </div> - <div class="col-md-3 pt-4"> - <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"> - Based on the data of <a href="https://repology.org/">repology.org</a>, there might be a new version available for these packages. <br/> - Please don't solely rely on this information, as the repology data might not be accurate. - </span> - </div> - </div> - </div> -{{end}} - diff --git a/web/templates/maintainer/components/packages.tmpl b/web/templates/maintainer/components/packages.tmpl deleted file mode 100644 index 6ad7e19..0000000 --- a/web/templates/maintainer/components/packages.tmpl +++ /dev/null @@ -1,144 +0,0 @@ -{{define "packages"}} - <div class="row"> - <div class="col-md-9"> - {{- if .Packages}} - <ul class="list-group"> - {{- $category := "" -}} - {{- range .Packages -}} - {{- if ne .Category $category}} - </ul> - <h3 id="{{.Category}}" class="{{if ne $category ""}}mt-4{{end}}"> - {{- $category = .Category -}} - {{- $category -}} - </h3> - <ul class="list-group"> - {{- end }} - <li class="list-group-item"> - <div class="row"> - <div class="col-md-4"> - <a href="/packages/{{.Atom}}" class="text-dark"><b>{{.Atom}}</b></a> - </div> - <div class="col-md-8 text-muted"> - {{- .Description -}} - </div> - </div> - </li> - {{- end }} - </ul> - {{else}} - <div class="row"> - <div class="col-md-8"> - </div> - <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> - {{- end}} - </div> - <div class="col-md-3 pt-4"> - {{if .Maintainer.Project.Description}} - <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"> - <dl> - <dd class="ml-3 mb-0 text-muted"> - {{.Maintainer.Project.Description}} - </dd> - </dl> - </div> - - <h4 class="mt-4"> - <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseExternalResources" role="button" aria-expanded="false" aria-controls="collapseDescription"> - External Resources - </a> - </h4> - <div class="collapse show" id="collapseExternalResources"> - <dl class="ml-3"> - <dd> - <span class="fa fa-fw fa-chain-broken"></span> - <a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.html;maintainer={{.Maintainer.Project.Email}}" title="CI report" target="_blank">CI Report</a> - (<a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.verbose.html;maintainer={{.Maintainer.Project.Email}}" title="Verbose CI report" target="_blank">verbose</a>) - </dd> - <dd> - <span class="fa fa-fw fa-book"></span> - <a href="{{.Maintainer.Project.Url}}" target="_blank">Documentation</a> - </dd> - </dl> - </div> - - <h4 class="mt-4"> - <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseMembers" role="button" aria-expanded="false" aria-controls="collapseMembers"> - Members - </a> - </h4> - <div class="collapse show" id="collapseMembers"> - <dl> - {{range .Maintainer.Project.Members}} - <dd class="ml-3 mb-0"><a href="/maintainer/{{.Email}}">{{.Name}}</a>{{if .IsLead}} (Lead){{end}}</dd> - {{end}} - </dl> - </div> - {{else}} - <h4 class=""> - <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseExternalResources" role="button" aria-expanded="false" aria-controls="collapseDescription"> - External Resources - </a> - </h4> - <div class="collapse show" id="collapseExternalResources"> - <dl class="ml-3"> - <dd> - <span class="fa fa-fw fa-chain-broken"></span> - <a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.html;maintainer={{.Maintainer.Email}}" title="CI report" target="_blank">CI Report</a> - (<a href="https://qa-reports.gentoo.org/output/gentoo-ci/output.verbose.html;maintainer={{.Maintainer.Email}}" title="Verbose CI report" target="_blank">verbose</a>) - </dd> - <dd> - <span class="fa fa-fw fa-history"></span> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/log/?qt=author&q={{.Maintainer.Email}}" title="Git log" target="_blank">Git log</a> - </dd> - </dl> - </div> - {{end}} - {{if .Maintainer.Projects}} - <h4 class=""> - <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseProjects" role="button" aria-expanded="false" aria-controls="collapseProjects"> - Projects - </a> - </h4> - <div class="collapse show" id="collapseProjects"> - <dl> - {{range .Maintainer.Projects}} - <dd class="ml-3 mb-0"><a href="/maintainer/{{.Email}}">{{.Name}}</a></dd> - {{end}} - </dl> - </div> - {{end}} - {{if .Packages}} - <h4 class="{{if .Maintainer.Project.Description}}mt-4{{end}}"> - <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"> - <dl> - {{- $category := (index .Packages 0).Category -}} - {{- $packageCounter := 0 -}} - {{- range .Packages -}} - {{- if ne .Category $category }} - <dd class="ml-3 mb-0"><a href="#{{$category}}">{{$category}} ({{$packageCounter}})</a></dd> - {{- $category = .Category -}} - {{- $packageCounter = 1 -}} - {{ else -}} - {{- $packageCounter = add $packageCounter 1 -}} - {{- end -}} - {{end}} - <dd class="ml-3 mb-0"><a href="#{{$category}}">{{$category}} ({{$packageCounter}})</a></dd> - </dl> - </div> - {{end}} - </div> - </div> -{{end}} - diff --git a/web/templates/maintainer/components/pullrequests.tmpl b/web/templates/maintainer/components/pullrequests.tmpl deleted file mode 100644 index 83c262a..0000000 --- a/web/templates/maintainer/components/pullrequests.tmpl +++ /dev/null @@ -1,73 +0,0 @@ -{{define "pull-requests"}} - - <div class="row"> - <div class="col-md-9"> - - {{if .Maintainer.PackagesInformation.PullRequests}} - - <h3 class="mb-4">Pull Requests</h3> - <ul class="list-group"> - - {{range getPullRequests .Packages}} - - <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-4"> - <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/maintainer/components/security.tmpl b/web/templates/maintainer/components/security.tmpl deleted file mode 100644 index fd05247..0000000 --- a/web/templates/maintainer/components/security.tmpl +++ /dev/null @@ -1,52 +0,0 @@ -{{define "security"}} - <div class="row"> - <div class="col-md-9"> - - {{if .Maintainer.PackagesInformation.SecurityBugs}} - - <h3 class="mb-4">Security Bug Reports</h3> - <ul class="list-group"> - {{range (getAllBugs .Packages)}} - {{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-4"> - <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> - </div> - </div> -{{end}} - diff --git a/web/templates/maintainer/components/stabilization.tmpl b/web/templates/maintainer/components/stabilization.tmpl deleted file mode 100644 index 0488539..0000000 --- a/web/templates/maintainer/components/stabilization.tmpl +++ /dev/null @@ -1,86 +0,0 @@ -{{define "stabilization"}} - <div class="row"> - <div class="col-md-9"> - <span class="d-flex justify-content-between"> - <h3>Stable Requests</h3> - <span> - <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> - <ul class="timeline"> - {{- $stable_requests := 0 -}} - {{- range .Packages -}} - {{- range .Versions -}} - {{- range .PkgCheckResults -}} - {{- $stable_requests = (add $stable_requests 1) }} - <li> - <ul class="list-group"> - <li class="list-group-item"> - <a href="/packages/{{.Category}}/{{.Package}}" class="text-dark"><strong>{{.Category}}/{{.Package}}-{{.Version}}</strong></a><br/> - <span class="kk-version kk-cell-sep-right text-muted"> - {{- .Message -}} - </span> - </li> - </ul> - </li> - {{- end -}} - {{- end -}} - {{- end -}} - </ul> - {{if eq $stable_requests 0}} - <div class="text-center w-100"><i>- No Stable Requests found -</i></div> - {{end}} - - {{- $stabilization_bugs := 0 -}} - {{- range getAllBugs .Packages -}} - {{- if eq .Component "Stabilization" -}} - {{- $stabilization_bugs = (add $stabilization_bugs 1) -}} - {{- end -}} - {{- end -}} - - - {{if .Maintainer.PackagesInformation.Bugs -}} - {{- if $stabilization_bugs}} - <h3 id="stabilization" class="my-4">Stabilization Bug Reports</h3> - <ul class="list-group"> - {{- range getAllBugs .Packages -}} - {{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 -}} - {{- end}} - </div> - <div class="col-md-3 pt-4"> - <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"> - 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> -{{end}} - diff --git a/web/templates/maintainer/maintainerheader.tmpl b/web/templates/maintainer/maintainerheader.tmpl deleted file mode 100644 index 03411fe..0000000 --- a/web/templates/maintainer/maintainerheader.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -{{define "maintainerheader"}} - <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"> - <small class="kk-package-cat"> - {{- if eq .Maintainer.Email "maintainer-needed@gentoo.org" -}} - {{- else if eq .Maintainer.Type "project" -}} - Gentoo Project - {{- else if contains .Maintainer.Email "@gentoo.org" -}} - Gentoo Developer - {{- else if ne .Maintainer.Email "" -}} - Proxied Maintainer - {{- end -}}</small> - <div> - <svg height="32" class="octicon octicon-person 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="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm.061 3.073a4 4 0 10-5.123 0 6.004 6.004 0 00-3.431 5.142.75.75 0 001.498.07 4.5 4.5 0 018.99 0 .75.75 0 101.498-.07 6.005 6.005 0 00-3.432-5.142z"></path></svg> - <div class="kk-package-name">{{if .Maintainer.Name}}{{.Maintainer.Name}}{{else if .Maintainer.Email}}{{.Maintainer.Email}}{{else}}Maintainer Needed{{end}}</div> - </div> - </h1> - </div> - <div class="col-md-7"> - <p class="lead kk-package-maindesc"> - <!-- TODO --> - </p> - </div> - <div class="col-md-12 pt-4 mt-1"> - <nav class="nav kk-package-nav"> - <a class="nav-link {{if eq .PageName "packages"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}"><i class="fa fa-info mr-1" aria-hidden="true"></i> Packages <span class="ml-1 badge badge-pill kk-misc-badge">{{len .Packages}}</span></a> - <a class="nav-link {{if eq .PageName "stabilization"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}/stabilization"><i class="fa fa-check-circle-o mr-1" aria-hidden="true"></i> Stabilization <span class="ml-1 badge badge-pill kk-misc-badge">{{.Maintainer.PackagesInformation.StableRequests}}</span></a> - <a class="nav-link {{if eq .PageName "outdated"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}/outdated"><i class="fa fa-tag mr-1" aria-hidden="true"></i> Outdated <span class="ml-1 badge badge-pill kk-misc-badge">{{.Maintainer.PackagesInformation.Outdated}}</span></a> - <a class="nav-link {{if eq .PageName "pull-requests"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}/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">{{.Maintainer.PackagesInformation.PullRequests}}</span></a> - <a class="nav-link {{if eq .PageName "bugs"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}/bugs"><i class="fa fa-bug" aria-hidden="true"></i> Bugs <span class="ml-1 badge badge-pill kk-misc-badge">{{.Maintainer.PackagesInformation.Bugs}}</span></a> - <a class="nav-link {{if eq .PageName "security"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}/security"><i class="fa fa-shield" aria-hidden="true"></i> Security <span class="ml-1 badge badge-pill kk-misc-badge">{{.Maintainer.PackagesInformation.SecurityBugs}}</span></a> - <a class="nav-link {{if eq .PageName "changelog"}}active{{end}}" href="/maintainer/{{.Maintainer.Email}}/changelog"><i class="fa fa-fw fa-history"></i> Changelog</a> - </nav> - </div> - </div> - </div> - </div> - </div> - </div> -{{end}} diff --git a/web/templates/maintainer/maintainersbrowseheader.tmpl b/web/templates/maintainer/maintainersbrowseheader.tmpl deleted file mode 100644 index 548ee66..0000000 --- a/web/templates/maintainer/maintainersbrowseheader.tmpl +++ /dev/null @@ -1,31 +0,0 @@ -{{define "maintainersbrowseheader"}} - <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 pt-2"> - <h1 class="stick-top kk-package-title" id="package-title"> - <div> - <div class="kk-package-name" style="margin-left: 0px!important;"><span class="fa fa-fw fa-users"></span><span class="ml-2">Maintainers</span></div> - </div> - </h1> - </div> - <div class="col-md-7"> - - </div> - - <div class="col-md-12 pt-4 mt-1"> - <nav class="nav kk-package-nav"> - <a class="nav-link {{if eq .TabName "projects"}}active{{end}}" href="/maintainers/gentoo-projects"><i class="fa fa-users mr-1" aria-hidden="true"></i>Gentoo Projects</a> - <a class="nav-link {{if eq .TabName "gentoo-developers"}}active{{end}}" href="/maintainers/gentoo-developers"><i class="fa fa-user mr-1" aria-hidden="true"></i>Gentoo Developers</a> - <a class="nav-link {{if eq .TabName "proxied-maintainers"}}active{{end}}" href="/maintainers/proxied-maintainers"><i class="fa fa-user-o mr-1" aria-hidden="true"></i>Proxied Maintainers</a> - </nav> - </div> - </div> - </div> - </div> - </div> - </div> -{{end}} diff --git a/web/templates/maintainer/show.tmpl b/web/templates/maintainer/show.tmpl deleted file mode 100644 index 2f7ee1e..0000000 --- a/web/templates/maintainer/show.tmpl +++ /dev/null @@ -1,33 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -{{template "head" .Header}} -<body> -{{template "header" .Header}} - -{{template "maintainerheader" .}} - -<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 "packages"}} - {{template "packages" .}} - {{else if eq .PageName "outdated"}} - {{template "outdated" .}} - {{else if eq .PageName "pull-requests"}} - {{template "pull-requests" .}} - {{else if eq .PageName "stabilization"}} - {{template "stabilization" .}} - {{else if eq .PageName "bugs"}} - {{template "bugs" .}} - {{else if eq .PageName "security"}} - {{template "security" .}} - {{else if eq .PageName "changelog"}} - {{template "changelog" .}} - {{end}} - </div> -</div> - -{{template "footer" .Application }} - - -</body> -</html> |