diff options
Diffstat (limited to 'web/templates/maintainer/components/packages.tmpl')
-rw-r--r-- | web/templates/maintainer/components/packages.tmpl | 144 |
1 files changed, 0 insertions, 144 deletions
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}} - |