diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-18 14:19:38 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-18 14:47:03 +0200 |
commit | ccdb7db55740d2a83553dd9a6b2a19d455a5425f (patch) | |
tree | d5e33592aac3c6f484bc5f462ef61d6d82fdab6f /web | |
parent | Link to repology by Gentoo package coordinates (diff) | |
download | soko-ccdb7db55740d2a83553dd9a6b2a19d455a5425f.tar.gz soko-ccdb7db55740d2a83553dd9a6b2a19d455a5425f.tar.bz2 soko-ccdb7db55740d2a83553dd9a6b2a19d455a5425f.zip |
Use RFC 3339 dates
Closes: https://bugs.gentoo.org/708302
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/about/status.tmpl | 2 | ||||
-rw-r--r-- | web/templates/arches/changedVersionRows.tmpl | 2 | ||||
-rw-r--r-- | web/templates/layout/footer.tmpl | 2 | ||||
-rw-r--r-- | web/templates/maintainer/components/changelog.tmpl | 16 | ||||
-rw-r--r-- | web/templates/packages/changedVersionRow.tmpl | 2 | ||||
-rw-r--r-- | web/templates/packages/changelog/changelog.tmpl | 14 | ||||
-rw-r--r-- | web/templates/packages/components/changelog.tmpl | 16 |
7 files changed, 27 insertions, 27 deletions
diff --git a/web/templates/about/status.tmpl b/web/templates/about/status.tmpl index e2af6ac..14b151f 100644 --- a/web/templates/about/status.tmpl +++ b/web/templates/about/status.tmpl @@ -29,7 +29,7 @@ {{range .Applications}} <tr> <th scope="row" class="text-capitalize">{{.Id}}</th> - <td>{{.LastUpdate.Format "2 Jan 2006 15:04:05"}} UTC</td> + <td>{{.LastUpdate.Format "2006-01-02 15:04:05"}} UTC</td> <td>{{timeSince .LastUpdate}}</td> </tr> {{end}} diff --git a/web/templates/arches/changedVersionRows.tmpl b/web/templates/arches/changedVersionRows.tmpl index c121117..fb90849 100644 --- a/web/templates/arches/changedVersionRows.tmpl +++ b/web/templates/arches/changedVersionRows.tmpl @@ -53,7 +53,7 @@ </div> <div class="col-xs-12 col-md-6"> <small class="text-muted pull-right"> - <span class="kk-i18n-date" title="{{if ge (len .Commits) 1 }}{{(index .Commits 0).CommitterDate}}{{else}}unknown{{end}}">{{if ge (len .Commits) 1 }}{{(index .Commits 0).CommitterDate}}{{else}}unknown{{end}}</span> + <span class="kk-i18n-date" 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> diff --git a/web/templates/layout/footer.tmpl b/web/templates/layout/footer.tmpl index 86040d5..db294f6 100644 --- a/web/templates/layout/footer.tmpl +++ b/web/templates/layout/footer.tmpl @@ -6,7 +6,7 @@ <h3 class="footerhead">Gentoo Packages Database</h3> <div class="row"> <div class="col-xs-12 col-md-4"> - <span class="kk-group-header">Data as current of</span><br>{{ .LastUpdate.Format "Jan 02, 2006 15:04:05 UTC" }} + <span class="kk-group-header">Data as current of</span><br>{{ .LastUpdate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-xs-12 col-md-4"> </div> diff --git a/web/templates/maintainer/components/changelog.tmpl b/web/templates/maintainer/components/changelog.tmpl index 79ae1e7..bc32b41 100644 --- a/web/templates/maintainer/components/changelog.tmpl +++ b/web/templates/maintainer/components/changelog.tmpl @@ -16,21 +16,21 @@ <h3>Latest Commits</h3> <ul class="timeline"> <li> - <span class="text-muted">Commits on {{((index $commits 0).CommitterDate).Format "Jan 02, 2006"}}</span> + <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 eq ($last_date.Format "Jan 02, 2006") (.CommitterDate.Format "Jan 02, 2006")}} + {{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 }}"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}"> + <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 "2 Jan 2006 15:04:05" }} + <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-md-12"> {{$commit := .}} @@ -83,18 +83,18 @@ </ul> </li> <li> - <span class="text-muted">Commits on {{.CommitterDate.Format "Jan 02, 2006"}}</span> + <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 }}"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}"> + <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 "2 Jan 2006 15:04:05" }} + <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-md-12"> {{$commit := .}} @@ -170,4 +170,4 @@ {{end}} </div> </div> -{{end}}
\ No newline at end of file +{{end}} diff --git a/web/templates/packages/changedVersionRow.tmpl b/web/templates/packages/changedVersionRow.tmpl index dc6e97f..9afb1ed 100644 --- a/web/templates/packages/changedVersionRow.tmpl +++ b/web/templates/packages/changedVersionRow.tmpl @@ -52,7 +52,7 @@ </div> <div class="col-xs-12 col-md-6"> <small class="text-muted pull-right"> - <span class="kk-i18n-date" title="{{if ge (len .Commits) 1 }}{{(index .Commits 0).CommitterDate}}{{else}}unknown{{end}}">{{if ge (len .Commits) 1 }}{{(index .Commits 0).CommitterDate}}{{else}}unknown{{end}}</span> + <span class="kk-i18n-date" 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> diff --git a/web/templates/packages/changelog/changelog.tmpl b/web/templates/packages/changelog/changelog.tmpl index 8c8fcbe..c9c5b13 100644 --- a/web/templates/packages/changelog/changelog.tmpl +++ b/web/templates/packages/changelog/changelog.tmpl @@ -8,21 +8,21 @@ <h3>Latest Commits</h3> <ul class="timeline"> <li> - <span class="text-muted">Commits on {{(index .Package.Commits 0).CommitterDate.Format "Jan 02, 2006"}}</span> + <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 "Jan 02, 2006") (.CommitterDate.Format "Jan 02, 2006")}} + {{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 }}"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}"> + <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 "2 Jan 2006 15:04:05" }} + <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-md-12"> {{$commit := .}} @@ -88,18 +88,18 @@ </ul> </li> <li> - <span class="text-muted">Commits on {{.CommitterDate.Format "Jan 02, 2006"}}</span> + <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 }}"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}"> + <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 "2 Jan 2006 15:04:05" }} + <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-md-12"> {{$commit := .}} diff --git a/web/templates/packages/components/changelog.tmpl b/web/templates/packages/components/changelog.tmpl index 4e01724..3359fb1 100644 --- a/web/templates/packages/components/changelog.tmpl +++ b/web/templates/packages/components/changelog.tmpl @@ -6,21 +6,21 @@ <h3>Latest Commits</h3> <ul class="timeline"> <li> - <span class="text-muted">Commits on {{(index .Package.Commits 0).CommitterDate.Format "Jan 02, 2006"}}</span> + <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 "Jan 02, 2006") (.CommitterDate.Format "Jan 02, 2006")}} + {{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 }}"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}"> + <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 "2 Jan 2006 15:04:05" }} + <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-md-12"> {{$commit := .}} @@ -73,18 +73,18 @@ </ul> </li> <li> - <span class="text-muted">Commits on {{.CommitterDate.Format "Jan 02, 2006"}}</span> + <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 }}"><img class="rounded-sm inline" data-toggle="popover" data-img="http://placehold.it/400x200" src="{{ gravatar .AuthorEmail}}"> + <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 "2 Jan 2006 15:04:05" }} + <a href="mailto:{{ .CommitterEmail }}">{{ .CommitterName }}</a> committed on {{ .CommitterDate.Format "2006-01-02 15:04:05" }} UTC </div> <div class="col-md-12"> {{$commit := .}} @@ -150,4 +150,4 @@ </a> </li> {{end}} -{{end}}
\ No newline at end of file +{{end}} |