diff --git a/web/templates/index.html b/web/templates/index.html index dff25a542542c395748bf7266a4179cc52eb4062..293464c7f8bf2bd19c22d9997418c5bd36d38b4e 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -1,28 +1,43 @@ {{define "content"}} +{{if .Data.LoggedIn}}
-
-

{{.SiteName}} compare

+

Compare two references — branches, tags or commits — of any git repository on this instance, and review the diff file by file.

+
+
+ + +
+
+ + +
+ +
-
- -{{if .Data.LoggedIn}} -
-
-

Your repositories

+
+
{{if .Data.Repos}} -
    +
    {{range .Data.Repos}} -
  • - ~{{$.Username}}/{{.Name}} - {{.Visibility}} - {{if .Description}} — {{.Description}}{{end}} -
  • +
    +

    + ~{{$.Username}}/{{.Name}} + {{if ne .Visibility "PUBLIC"}} + {{if eq .Visibility "UNLISTED"}}unlisted{{else}}private{{end}} + {{end}} +

    + {{if .Description}} +

    {{.Description}}

    + {{end}} +
    {{end}} -
+
{{else}}

You have no repositories yet.

{{end}} @@ -31,6 +46,11 @@
{{else}}
+

{{.SiteName}} compare

+

+ Compare two references — branches, tags or commits — of any git repository + on this instance, and review the diff file by file. +

Log in to list your own repositories, or jump directly to any repository below. diff --git a/web/templates/layout.html b/web/templates/layout.html index 78cd0b40b616e2bceb9ebeee5b73df0cfbfb1a85..1a53b79f089260a7e1cf993aaefbf716592dbb4c 100644 --- a/web/templates/layout.html +++ b/web/templates/layout.html @@ -43,18 +43,13 @@ {{.Environment}} ENVIRONMENT

{{end}}