From 90f6aa8cd19e489723ddffc40d6507782c29756c Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 12 Apr 2014 20:35:35 -0400 Subject: Add repo mirror and import --- templates/base/navbar.tmpl | 2 +- templates/repo/commits.tmpl | 2 +- templates/repo/diff.tmpl | 2 +- templates/repo/migrate.tmpl | 99 +++++++++++++++++++++++++++++++++++++++++ templates/repo/mirror.tmpl | 81 --------------------------------- templates/repo/nav.tmpl | 2 +- templates/repo/single_bare.tmpl | 14 ------ templates/user/dashboard.tmpl | 2 +- templates/user/profile.tmpl | 24 +++++----- 9 files changed, 117 insertions(+), 111 deletions(-) create mode 100644 templates/repo/migrate.tmpl delete mode 100644 templates/repo/mirror.tmpl (limited to 'templates') diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl index 708a3976..cd3f2b83 100644 --- a/templates/base/navbar.tmpl +++ b/templates/base/navbar.tmpl @@ -28,7 +28,7 @@ diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 68b14035..8125feda 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -31,7 +31,7 @@ {{$r := List .Commits}} {{range $r}} - {{.Author.Name}} + {{.Author.Name}} {{SubStr .Id.String 0 10}} {{.Message}} {{TimeSince .Author.When}} diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 796a8e94..f3d935ae 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -14,7 +14,7 @@

- {{.Commit.Author.Name}} + {{.Commit.Author.Name}} {{TimeSince .Commit.Author.When}}

diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl new file mode 100644 index 00000000..34a4077e --- /dev/null +++ b/templates/repo/migrate.tmpl @@ -0,0 +1,99 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +
+
+ {{.CsrfTokenHtml}} +

Repository Migration

+ {{template "base/alert" .}} + + +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+ +
+

{{.SignedUserName}}

+ +
+
+ +
+ +
+ + Great repository names are short and memorable. +
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+ +
+
+ +
+
+ + Cancel +
+
+
+
+{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/mirror.tmpl b/templates/repo/mirror.tmpl deleted file mode 100644 index 0f10d1f5..00000000 --- a/templates/repo/mirror.tmpl +++ /dev/null @@ -1,81 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
-
- {{.CsrfTokenHtml}} -

Create Repository Mirror

- {{template "base/alert" .}} -
- -
- -
-
-
- -
- -
-
-
- -
-
- -
- -
-
-
- -
- -
-
-
-
-
-
- -
-

{{.SignedUserName}}

- -
-
- -
- -
- - Great repository names are short and memorable. -
-
- -
- -
-

Public

- -
-
- -
- -
- -
-
- -
-
- - Cancel -
-
-
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl index f365ab64..f9f74dd1 100644 --- a/templates/repo/nav.tmpl +++ b/templates/repo/nav.tmpl @@ -2,7 +2,7 @@
-

{{.Owner.Name}} / {{.Repository.Name}}{{if .Repository.IsPrivate}} Private {{end}}

+

{{.Owner.Name}} / {{.Repository.Name}} {{if .Repository.IsPrivate}}Private{{else if .Repository.IsMirror}}Mirror{{end}}

{{.Repository.Description}}{{if .Repository.Website}} {{.Repository.Website}}{{end}}

diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl index 7d7016e5..fc0a3bd9 100644 --- a/templates/repo/single_bare.tmpl +++ b/templates/repo/single_bare.tmpl @@ -9,20 +9,6 @@

Quick Guide

-
- {{.CsrfTokenHtml}} -

Clone from existing repository

-
- - - - - - - -
-
-

Clone this repository

diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl index efa78d88..167ae9ab 100644 --- a/templates/user/dashboard.tmpl +++ b/templates/user/dashboard.tmpl @@ -34,7 +34,7 @@ diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 0cbd3489..255eb71c 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -10,7 +10,18 @@
    -
  • + {{if .Owner.Location}} +
  • {{.Owner.Location}}
  • + {{end}} + {{if .Owner.Email}} +
  • {{.Owner.Email}}
  • + {{end}} + {{if .Owner.Website}} +
  • {{.Owner.Website}}
  • + {{end}} +
  • Joined on {{DateFormat .Owner.Created "M d, Y"}}
  • +
    +
  • 123 @@ -22,16 +33,7 @@
  • - {{if .Owner.Location}} -
  • {{.Owner.Location}}
  • - {{end}} - {{if .Owner.Email}} -
  • {{.Owner.Email}}
  • - {{end}} - {{if .Owner.Website}} -
  • {{.Owner.Website}}
  • - {{end}} -
  • Joined on {{DateFormat .Owner.Created "M d, Y"}}
  • +
-- cgit v1.2.3