From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/explore/code.tmpl | 8 +++++ templates/explore/navbar.tmpl | 20 +++++++++++ templates/explore/repo_list.tmpl | 73 ++++++++++++++++++++++++++++++++++++++++ templates/explore/repos.tmpl | 10 ++++++ templates/explore/search.tmpl | 23 +++++++++++++ templates/explore/user_list.tmpl | 33 ++++++++++++++++++ templates/explore/users.tmpl | 10 ++++++ 7 files changed, 177 insertions(+) create mode 100644 templates/explore/code.tmpl create mode 100644 templates/explore/navbar.tmpl create mode 100644 templates/explore/repo_list.tmpl create mode 100644 templates/explore/repos.tmpl create mode 100644 templates/explore/search.tmpl create mode 100644 templates/explore/user_list.tmpl create mode 100644 templates/explore/users.tmpl (limited to 'templates/explore') diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl new file mode 100644 index 0000000..039933f --- /dev/null +++ b/templates/explore/code.tmpl @@ -0,0 +1,8 @@ +{{template "base/head" .}} +
+ {{template "explore/navbar" .}} +
+ {{template "shared/search/code/search" .}} +
+
+{{template "base/footer" .}} diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl new file mode 100644 index 0000000..8e619fa --- /dev/null +++ b/templates/explore/navbar.tmpl @@ -0,0 +1,20 @@ + + + diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl new file mode 100644 index 0000000..59bc6c8 --- /dev/null +++ b/templates/explore/repo_list.tmpl @@ -0,0 +1,73 @@ +
+ {{range .Repos}} +
+
+ {{template "repo/icon" .}} +
+
+
+
+ {{if and (or $.PageIsExplore $.PageIsProfileStarList) .Owner}} + {{.Owner.Name}}/ + {{end}} + {{.Name}} + + {{if .IsArchived}} + {{ctx.Locale.Tr "repo.desc.archived"}} + {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{else}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} + {{end}} + {{end}} + {{if .IsTemplate}} + {{ctx.Locale.Tr "repo.desc.template"}} + {{end}} + {{if eq .ObjectFormatName "sha256"}} + {{ctx.Locale.Tr "repo.desc.sha256"}} + {{end}} + +
+ +
+ {{$description := .DescriptionHTML $.Context}} + {{if $description}} +
{{$description}}
+ {{end}} + {{if .Topics}} +
+ {{range .Topics}} + {{if ne . ""}}{{.}}{{end}} + {{end}} +
+ {{end}} +
{{ctx.Locale.Tr "org.repo_updated" (TimeSinceUnix .UpdatedUnix ctx.Locale)}}
+
+
+ {{else}} +
+ {{ctx.Locale.Tr "search.no_results"}} +
+ {{end}} +
diff --git a/templates/explore/repos.tmpl b/templates/explore/repos.tmpl new file mode 100644 index 0000000..53742bf --- /dev/null +++ b/templates/explore/repos.tmpl @@ -0,0 +1,10 @@ +{{template "base/head" .}} +
+ {{template "explore/navbar" .}} +
+ {{template "shared/repo_search" .}} + {{template "explore/repo_list" .}} + {{template "base/paginate" .}} +
+
+{{template "base/footer" .}} diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl new file mode 100644 index 0000000..1d984a2 --- /dev/null +++ b/templates/explore/search.tmpl @@ -0,0 +1,23 @@ + +
diff --git a/templates/explore/user_list.tmpl b/templates/explore/user_list.tmpl new file mode 100644 index 0000000..f2cf939 --- /dev/null +++ b/templates/explore/user_list.tmpl @@ -0,0 +1,33 @@ +
+ {{range .Users}} +
+
+ {{ctx.AvatarUtils.Avatar . 48}} +
+
+
+ {{template "shared/user/name" .}} + {{if .Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{end}} +
+
+ {{if .Location}} + {{svg "octicon-location"}}{{.Location}} + {{end}} + {{if and .Email (or (and $.ShowUserEmail $.IsSigned (not .KeepEmailPrivate)) $.PageIsAdminUsers)}} + + {{svg "octicon-mail"}} + {{.Email}} + + {{end}} + {{svg "octicon-calendar"}}{{ctx.Locale.Tr "user.joined_on" (DateTime "short" .CreatedUnix)}} +
+
+
+ {{else}} +
+ {{ctx.Locale.Tr "search.no_results"}} +
+ {{end}} +
diff --git a/templates/explore/users.tmpl b/templates/explore/users.tmpl new file mode 100644 index 0000000..e904612 --- /dev/null +++ b/templates/explore/users.tmpl @@ -0,0 +1,10 @@ +{{template "base/head" .}} +
+ {{template "explore/navbar" .}} +
+ {{template "explore/search" .}} + {{template "explore/user_list" .}} + {{template "base/paginate" .}} +
+
+{{template "base/footer" .}} -- cgit v1.2.3