From 98131614119f39a3f341392c98a4d2320b5b8e21 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 26 Jul 2014 23:53:16 -0400 Subject: Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page --- templates/ng/base/head.tmpl | 1 + templates/org/create.tmpl | 31 +++++++++++++++++++++++++++++++ templates/repo/create.tmpl | 14 +++++++------- templates/user/dashboard/dashboard.tmpl | 31 +++++++++++++++++++++++++++---- templates/user/dashboard/nav.tmpl | 2 +- templates/user/dashboard/pulls.tmpl | 5 +++++ templates/user/pulls.tmpl | 17 ----------------- templates/user/signin.tmpl | 2 +- templates/user/signup.tmpl | 2 +- 9 files changed, 74 insertions(+), 31 deletions(-) create mode 100644 templates/org/create.tmpl create mode 100644 templates/user/dashboard/pulls.tmpl delete mode 100644 templates/user/pulls.tmpl (limited to 'templates') diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl index bab914bf..817c1880 100644 --- a/templates/ng/base/head.tmpl +++ b/templates/ng/base/head.tmpl @@ -6,6 +6,7 @@ + diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl new file mode 100644 index 00000000..4fcb07c4 --- /dev/null +++ b/templates/org/create.tmpl @@ -0,0 +1,31 @@ +{{template "ng/base/head" .}} +{{template "ng/base/header" .}} +
+
+ {{.CsrfTokenHtml}} +
+

{{.i18n.Tr "new_org"}}

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

+ + + + {{.i18n.Tr "org.org_name_helper"}} +

+

+ + + + {{.i18n.Tr "org.org_email_helper"}} +

+

+ + + {{.i18n.Tr "cancel"}} +

+
+
+
+{{template "ng/base/footer" .}} \ No newline at end of file diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 6ec713f6..13656bec 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -8,23 +8,23 @@ {{template "ng/base/alert" .}}
- + {{if not .ContextUser.IsOrganization}}
-

{{.i18n.Tr "home.collaborative_repos"}}

+

{{.i18n.Tr "home.collaborative_repos"}} + {{.CollaborateCount}} +