From 36b4c57ff13198196134b853f624fb633061734d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 15 Aug 2014 18:29:41 +0800 Subject: Finish new organization members and invitation page --- templates/.VERSION | 2 +- templates/org/header.tmpl | 16 ++++ templates/org/home.tmpl | 9 ++- templates/org/invite.tmpl | 15 ++++ templates/org/members.tmpl | 97 +++++++++++------------- templates/org/settings.tmpl | 130 -------------------------------- templates/user/dashboard/dashboard.tmpl | 2 +- 7 files changed, 83 insertions(+), 188 deletions(-) create mode 100644 templates/org/header.tmpl create mode 100644 templates/org/invite.tmpl delete mode 100644 templates/org/settings.tmpl (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index f398e901..906c01dc 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.4.7.0814 Alpha \ No newline at end of file +0.4.7.0815 Alpha \ No newline at end of file diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl new file mode 100644 index 00000000..8566d0a3 --- /dev/null +++ b/templates/org/header.tmpl @@ -0,0 +1,16 @@ +
+ +
\ No newline at end of file diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 205318b0..d9662401 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -17,7 +17,9 @@
+ {{if .IsAdminTeam}} {{.i18n.Tr "new_repo"}} + {{end}}
{{range .Repos}} @@ -45,9 +47,11 @@ {{end}}
+ {{if .IsAdminTeam}} + {{end}}

@@ -65,9 +69,12 @@ {{end}}
+ {{if .IsOrganizationOwner}} + + {{end}}
diff --git a/templates/org/invite.tmpl b/templates/org/invite.tmpl new file mode 100644 index 00000000..400622fd --- /dev/null +++ b/templates/org/invite.tmpl @@ -0,0 +1,15 @@ +{{template "ng/base/head" .}} +{{template "ng/base/header" .}} +{{template "org/header" .}} +
+
+ {{template "ng/base/alert" .}} +

{{.i18n.Tr "org.members.invite_desc" .Org.FullName}}

+
+ {{.CsrfTokenHtml}} + + +
+
+
+{{template "ng/base/footer" .}} \ No newline at end of file diff --git a/templates/org/members.tmpl b/templates/org/members.tmpl index ba14cb4c..bea4340f 100644 --- a/templates/org/members.tmpl +++ b/templates/org/members.tmpl @@ -1,56 +1,43 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
-
-
- - -
-

Organization Name

-
-
- -
+{{template "ng/base/head" .}} +{{template "ng/base/header" .}} +{{template "org/header" .}} +
+ {{template "ng/base/alert" .}} +
+ {{if .IsAdminTeam}} + {{.i18n.Tr "org.invite_someone"}} + {{end}} +
+
+ {{range .Members}} +
+ + {{.FullName}}({{.Name}}) + +
+ {{end}} +
-
-
-
-
  -
- -
- -
- Member -
-
- Public -
-
-
  -
- -
- -
- Owner -
-
- Private -
-
-
-
-
-{{template "base/footer" .}} +{{template "ng/base/footer" .}} \ No newline at end of file diff --git a/templates/org/settings.tmpl b/templates/org/settings.tmpl deleted file mode 100644 index fd0d6a1c..00000000 --- a/templates/org/settings.tmpl +++ /dev/null @@ -1,130 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
-
-
- -
- -
-
- -
-
- -
-
- {{template "base/alert" .}} -
-
- Organization Options -
- -
-
- {{.CsrfTokenHtml}} - - -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
-
- -
-
-
-
-
- -
-
- Danger Zone -
-
- -
-
Delete this organization
-
Once you delete this organization and all repositories in, there is no going back. Please be - certain. -
- - - -
-
-
-
-{{template "base/footer" .}} diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index c19c177e..d0789b96 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -30,7 +30,7 @@ {{ $push := ActionContent2Commits .}} {{ $repoLink := .GetRepoLink}} {{range $push.Commits}} -
  • {{ShortSha .Sha1}} {{.Message}}
  • +
  • {{ShortSha .Sha1}} {{.Message}}
  • {{end}}
    -- cgit v1.2.3