From 78149fc377df59f71c4839ed1ce18f9563fe9745 Mon Sep 17 00:00:00 2001 From: Gerben Date: Tue, 20 Mar 2018 13:45:09 +0100 Subject: [PATCH] Add original repo_list.tmpl, dashboard.tmpl, repo/header.tmpl --- templates/explore/repo_list.tmpl | 27 ++++++ templates/repo/header.tmpl | 107 +++++++++++++++++++++ templates/user/dashboard/dashboard.tmpl | 119 ++++++++++++++++++++++++ 3 files changed, 253 insertions(+) create mode 100644 templates/explore/repo_list.tmpl create mode 100644 templates/repo/header.tmpl create mode 100644 templates/user/dashboard/dashboard.tmpl diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl new file mode 100644 index 0000000..041bda8 --- /dev/null +++ b/templates/explore/repo_list.tmpl @@ -0,0 +1,27 @@ +
+ {{range .Repos}} +
+
+ {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}} + {{if .IsPrivate}} + + {{else if .IsFork}} + + {{else if .IsMirror}} + + {{end}} + +
+ {{.NumStars}} + {{.NumForks}} +
+
+ {{if .DescriptionHTML}}

{{.DescriptionHTML}}

{{end}} +

{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}

+
+ {{else}} +
+ {{$.i18n.Tr "explore.repo_no_results"}} +
+ {{end}} +
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl new file mode 100644 index 0000000..db5b6c7 --- /dev/null +++ b/templates/repo/header.tmpl @@ -0,0 +1,107 @@ +
+{{with .Repository}} + +{{end}} +{{if not .IsDiffCompare}} +
+ +
+
+{{else}} +
+{{end}} +
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl new file mode 100644 index 0000000..bddcc49 --- /dev/null +++ b/templates/user/dashboard/dashboard.tmpl @@ -0,0 +1,119 @@ +{{template "base/head" .}} +
+ {{template "user/dashboard/navbar" .}} + +
+{{template "base/footer" .}}