diff options
author | 2024-02-06 22:19:29 +0200 | |
---|---|---|
committer | 2024-02-09 22:16:21 +0200 | |
commit | 8800236b5bf21e00c816888bbdfd76f1e4fe5545 (patch) | |
tree | e41fff2118e4842661fb7e888135cdb806dbae95 /web | |
parent | migrate about pages (diff) | |
download | soko-8800236b5bf21e00c816888bbdfd76f1e4fe5545.tar.gz soko-8800236b5bf21e00c816888bbdfd76f1e4fe5545.tar.bz2 soko-8800236b5bf21e00c816888bbdfd76f1e4fe5545.zip |
migrate arches pages
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/arches/archesheader.tmpl | 31 | ||||
-rw-r--r-- | web/templates/arches/changedVersionRows.tmpl | 77 | ||||
-rw-r--r-- | web/templates/arches/changedVersions.tmpl | 50 | ||||
-rw-r--r-- | web/templates/arches/index.tmpl | 160 |
4 files changed, 0 insertions, 318 deletions
diff --git a/web/templates/arches/archesheader.tmpl b/web/templates/arches/archesheader.tmpl deleted file mode 100644 index a873732..0000000 --- a/web/templates/arches/archesheader.tmpl +++ /dev/null @@ -1,31 +0,0 @@ -{{define "archesheader"}} - <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-server"></span><span class="ml-2">Architectures</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"> - {{range $.UserPreferences.Arches.Visible}} - <a class="nav-link {{if eq $.Arch .}}active{{end}}" href="/arches/{{.}}/{{$.UserPreferences.Arches.DefaultPage}}">{{.}}</a> - {{end}} - </nav> - </div> - </div> - </div> - </div> - </div> - </div> -{{end}} diff --git a/web/templates/arches/changedVersionRows.tmpl b/web/templates/arches/changedVersionRows.tmpl deleted file mode 100644 index f07a010..0000000 --- a/web/templates/arches/changedVersionRows.tmpl +++ /dev/null @@ -1,77 +0,0 @@ -{{define "changedversions"}} - {{range $index, $version := .Versions}} - <li class="list-group-item kk-package-detailed"> - <div class="row"> - <div class="col-xs-12 col-md-6"> - <h4 class="stick-top"><a href="/packages/{{.Atom}}">{{.Atom}}</a></h4> - <div class="kk-package-detailed-toolbox"> - - <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-navicon"></span> - </button> - <div class="dropdown-menu dropdown-menu-right"> - <a class="dropdown-item" href="https://bugs.gentoo.org/buglist.cgi?quicksearch={{.Category}}%2F{{.Package}}" target="_blank"> - <span class="fa fa-fw fa-bug"></span> - Related bugs - </a> - <a class="dropdown-item" href="https://wiki.gentoo.org/index.php?title=Special%3ASearch&fulltext=Search&search={{.Package}}" target="_blank"> - <span class="fa fa-fw fa-book"></span> - Documentation - </a> - <a class="dropdown-item" href="https://forums.gentoo.org/search.php?search_terms=all&show_results=topics&search_keywords={{.Package}}&mode=results" target="_blank"> - <span class="fa fa-fw fa-comments-o"></span> - Forums posts - </a> - <div class="dropdown-divider"></div> - <a class="dropdown-item" href="https://gitweb.gentoo.org/repo/gentoo.git/tree/{{.Atom}}" target="_blank"> - <span class="fa fa-fw fa-code-fork"></span> - Git repository browser - </a> - <a class="dropdown-item" href="https://gitweb.gentoo.org/repo/gentoo.git/log/{{.Atom}}?showmsg=1" target="_blank"> - <span class="fa fa-fw fa-history"></span> - Git log - </a> - <a class="dropdown-item" href="https://gitweb.gentoo.org/repo/gentoo.git/atom/{{.Atom}}?h=master" target="_blank"> - <span class="fa fa-fw fa-rss"></span> - Changes feed - </a> - </div> - - </div> - {{.Description}} - <br> - <small class="text-muted"> - </small> - {{if ge (len .Commits) 1 }} - <div class="kk-inline-changelog-entry"> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id={{ (index .Commits 0).Id }}" title="Git commit"> - <span class="octicon octicon-git-pull-request"></span> - <span class="kk-commit-message">{{ (index .Commits 0).Message }}</span> - </a> - </div> - {{end}} - </div> - <div class="col-xs-12 col-md-6"> - <small class="text-muted pull-right"> - <span title="{{if ge (len .Commits) 1 }}{{(index .Commits 0).CommitterDate.Format "2006-01-02 15:04:05" }} UTC{{else}}unknown{{end}}">{{if ge (len .Commits) 1 }}{{(index .Commits 0).CommitterDate.Format "2006-01-02 15:04:05" }} UTC{{else}}unknown{{end}}</span> - </small> - <div class="kk-version-card"> - <p class="mb-2"><strong>{{.Version}}</strong><span class="kk-slot"> : {{.Slot}}</span> {{if .Restricts}}<span class="badge badge-danger kk-restrict-label" title="The following features are restricted: {{range .Restricts}}{{.}} {{end}}">{{formatRestricts .Restricts}}</span>{{end}}</p> - <p> - {{ range $.UserPreferences.Arches.Visible }} - {{if contains (print " " $version.Keywords " ") (print " " . " ")}} - <span class="label kk-keyword-stable" title="{{$version.Version}} is stable on {{.}}">{{.}}</span> - {{else if contains (print " " $version.Keywords " ") (print "~" . " ")}} - <span class="label kk-keyword-testing" title="{{$version}} is testing on {{.}}">~{{.}}</span> - {{else}} - <span class="label kk-keyword-unknown" title="{{$version.Version}} is unknown on {{.}}">?{{.}}</span> - {{end}} - {{end}} - </p> - </div> - - </div> - </div> - </li> - {{end}} -{{end}} diff --git a/web/templates/arches/changedVersions.tmpl b/web/templates/arches/changedVersions.tmpl deleted file mode 100644 index cdfafac..0000000 --- a/web/templates/arches/changedVersions.tmpl +++ /dev/null @@ -1,50 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -{{template "head" .Header}} -<body> -{{template "header" .Header}} - -{{template "archesheader" .}} - - -<div class="tab-content" id="myTabContent"> - -<div class="container mb-5"> - <div class="row"> - <div class="col-11"> - - {{if eq .Name "Keyworded"}} - <h3> - <a class="text-dark"><i class="fa fa-circle-o" aria-hidden="true"></i> Keyworded Packages</a> - <a href="/arches/{{.Arch}}/stable" class="ml-3 text-muted"><i class="fa fa-check-circle-o" aria-hidden="true"></i> Newly Stable Packages</a> - </h3> - {{else}} - <h3> - <a href="/arches/{{.Arch}}/keyworded" class="text-muted"><i class="fa fa-circle-o" aria-hidden="true"></i> Keyworded Packages</a> - <a class="ml-3 text-dark"><i class="fa fa-check-circle-o" aria-hidden="true"></i> Newly Stable Packages</a> - </h3> - {{end}} - </div> - <div class="col-1 text-right"> - <h3> - <a title="Atom feed" href="/arches/{{.Arch}}/{{.FeedName}}.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </h3> - </div> - <div class="col-12"> - <li class="list-group"> - {{template "changedversions" .}} - </li> - - - </div> - </div> -</div> - - -</div> - - -{{template "footer" .Application }} - -</body> -</html> diff --git a/web/templates/arches/index.tmpl b/web/templates/arches/index.tmpl deleted file mode 100644 index 79aa5f5..0000000 --- a/web/templates/arches/index.tmpl +++ /dev/null @@ -1,160 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -{{template "head" .Header}} -<body> -{{template "header" .Header}} - -{{template "archesheader" .}} - - -<div class="tab-content" id="myTabContent"> - -<div class="container mb-5"> - <div class="row"> - <div class="col-12"> - <div class="card border-top-0"> - <div class="table-responsive"> - <table class="table table-striped mb-0"> - <colgroup><col> - <col style="width: 20em;"> - <col style="width: 20em;"> - </colgroup><tbody> - <tr> - <th class="kk-nobreak-cell">alpha</th> - <td> - <a href="/arches/alpha/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/alpha/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/alpha/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/alpha/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">amd64</th> - <td> - <a href="/arches/amd64/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/amd64/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/amd64/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/amd64/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">arm</th> - <td> - <a href="/arches/arm/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/arm/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/arm/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/arm/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">arm64</th> - <td> - <a href="/arches/arm64/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/arm64/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/arm64/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/arm64/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">hppa</th> - <td> - <a href="/arches/hppa/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/hppa/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/hppa/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/hppa/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">ia64</th> - <td> - <a href="/arches/ia64/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/ia64/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/ia64/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/ia64/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">ppc</th> - <td> - <a href="/arches/ppc/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/ppc/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/ppc/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/ppc/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">ppc64</th> - <td> - <a href="/arches/ppc64/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/ppc64/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/ppc64/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/ppc64/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">riscv</th> - <td> - <a href="/arches/riscv/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/riscv/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/riscv/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/riscv/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">sparc</th> - <td> - <a href="/arches/sparc/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/sparc/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/sparc/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/sparc/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - <tr> - <th class="kk-nobreak-cell">x86</th> - <td> - <a href="/arches/x86/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a> - <a title="Atom feed" href="/arches/x86/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - <td> - <a href="/arches/x86/stable">Newly Stable Packages</a> - <a title="Atom feed" href="/arches/x86/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a> - </td> - </tr> - </tbody> - </table> - </div> - </div> - - </div> -</div> -</div> - - - -</div> - - -{{template "footer" .Application }} - -</body> -</html> |