From e8c9bb2c66a1f48820a93b670c2e6e67da94b354 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 7 Aug 2014 06:40:05 -0400 Subject: Finish new collaboration page --- templates/.VERSION | 2 +- templates/.brackets.json | 5 ++++ templates/home.tmpl | 9 +++--- templates/ng/base/social.tmpl | 8 ++--- templates/repo/collaboration.tmpl | 47 ------------------------------ templates/repo/header.tmpl | 3 +- templates/repo/settings/collaboration.tmpl | 47 ++++++++++++++++++++++++++++++ templates/user/signin.tmpl | 2 ++ 8 files changed, 65 insertions(+), 58 deletions(-) create mode 100644 templates/.brackets.json delete mode 100644 templates/repo/collaboration.tmpl create mode 100644 templates/repo/settings/collaboration.tmpl (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index 04e73b67..0621825f 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.4.7.0806 Alpha \ No newline at end of file +0.4.7.0807 Alpha \ No newline at end of file diff --git a/templates/.brackets.json b/templates/.brackets.json new file mode 100644 index 00000000..f358faa6 --- /dev/null +++ b/templates/.brackets.json @@ -0,0 +1,5 @@ +{ + "language.fileExtensions": { + "tmpl": "html" + } +} \ No newline at end of file diff --git a/templates/home.tmpl b/templates/home.tmpl index 249bce31..47d1e690 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -1,17 +1,16 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} +{{template "ng/base/head" .}} {{template "ng/base/header" .}}

Gogs

{{.i18n.Tr "app_desc"}}

{{.CsrfTokenHtml}} - - + + diff --git a/templates/ng/base/social.tmpl b/templates/ng/base/social.tmpl index 153239f7..97f71b4e 100644 --- a/templates/ng/base/social.tmpl +++ b/templates/ng/base/social.tmpl @@ -1,4 +1,4 @@ - - - - \ No newline at end of file +{{if .OauthService.GitHub}}GitHub{{end}} +{{if .OauthService.Google}}Google +{{end}} +{{if .OauthService.Weibo}}新浪微博{{end}} +{{if .OauthService.Tencent}}腾讯 QQ {{end}} \ No newline at end of file diff --git a/templates/repo/collaboration.tmpl b/templates/repo/collaboration.tmpl deleted file mode 100644 index 564c99ec..00000000 --- a/templates/repo/collaboration.tmpl +++ /dev/null @@ -1,47 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -
- {{template "repo/setting_nav" .}} -
- {{template "base/alert" .}} -
-
- Collaborators -
- -
- -
- - -
- -
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index a789d13f..5e9c3ea2 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -1,10 +1,11 @@

- + {{.Owner.Name}} / {{.Repository.Name}} + {{if .Repository.IsMirror}}{{.i18n.Tr "mirror"}}{{end}}

-- cgit v1.2.3