From 1f2e173a745da8e4b57f96b5561a3c10054d3b76 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 24 Jul 2016 01:08:22 +0800 Subject: Refactor User.Id to User.ID --- templates/.VERSION | 2 +- templates/admin/base/page.tmpl | 2 +- templates/admin/base/search.tmpl | 2 +- templates/admin/org/list.tmpl | 2 +- templates/admin/user/edit.tmpl | 2 +- templates/admin/user/list.tmpl | 4 ++-- templates/explore/page.tmpl | 2 +- templates/explore/search.tmpl | 2 +- templates/mail/issue/mention.tmpl | 2 +- templates/org/home.tmpl | 4 ++-- templates/org/member/members.tmpl | 14 +++++++------- templates/org/team/members.tmpl | 4 ++-- templates/org/team/repositories.tmpl | 2 +- templates/org/team/sidebar.tmpl | 6 +++--- templates/org/team/teams.tmpl | 6 +++--- templates/repo/create.tmpl | 6 +++--- templates/repo/issue/list.tmpl | 2 +- templates/repo/issue/new_form.tmpl | 4 ++-- templates/repo/issue/view_content.tmpl | 14 +++++++------- templates/repo/issue/view_title.tmpl | 6 +++--- templates/repo/migrate.tmpl | 6 +++--- templates/repo/pulls/fork.tmpl | 8 ++++---- templates/repo/settings/collaboration.tmpl | 4 ++-- templates/repo/user_cards.tmpl | 2 +- templates/user/dashboard/navbar.tmpl | 4 ++-- templates/user/meta/followers.tmpl | 2 +- templates/user/meta/header.tmpl | 4 ++-- templates/user/profile.tmpl | 2 +- 28 files changed, 60 insertions(+), 60 deletions(-) (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index 82c3ae6a..a02c7ea3 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.52.0723 \ No newline at end of file +0.9.53.0724 \ No newline at end of file diff --git a/templates/admin/base/page.tmpl b/templates/admin/base/page.tmpl index b689ed08..564d7dec 100644 --- a/templates/admin/base/page.tmpl +++ b/templates/admin/base/page.tmpl @@ -20,4 +20,4 @@ {{end}} - {{end}} \ No newline at end of file + {{end}} diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl index 29026a11..22634354 100644 --- a/templates/admin/base/search.tmpl +++ b/templates/admin/base/search.tmpl @@ -3,4 +3,4 @@ - \ No newline at end of file + diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 8560d021..6b9423d0 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -27,7 +27,7 @@ {{range .Users}} - {{.Id}} + {{.ID}} {{.Name}} {{.NumTeams}} {{.NumMembers}} diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 78088d1a..bed3097a 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -102,7 +102,7 @@
-
{{.i18n.Tr "admin.users.delete_account"}}
+
{{.i18n.Tr "admin.users.delete_account"}}
diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 5b5048f8..8c7a0c9a 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -31,14 +31,14 @@ {{range .Users}} - {{.Id}} + {{.ID}} {{.Name}} {{.Email}} {{.NumRepos}} {{DateFmtShort .Created }} - + {{end}} diff --git a/templates/explore/page.tmpl b/templates/explore/page.tmpl index bb07f261..fd3e7a7a 100644 --- a/templates/explore/page.tmpl +++ b/templates/explore/page.tmpl @@ -18,4 +18,4 @@ {{end}} -{{end}} \ No newline at end of file +{{end}} diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl index f1864886..8d91f315 100644 --- a/templates/explore/search.tmpl +++ b/templates/explore/search.tmpl @@ -4,4 +4,4 @@ -
\ No newline at end of file +
diff --git a/templates/mail/issue/mention.tmpl b/templates/mail/issue/mention.tmpl index 53ff367e..e88b9abf 100644 --- a/templates/mail/issue/mention.tmpl +++ b/templates/mail/issue/mention.tmpl @@ -14,4 +14,4 @@ View it on Gogs.

- \ No newline at end of file + diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 474c8795..921e3667 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -27,7 +27,7 @@
{{if .IsOrganizationOwner}}
{{end}} @@ -46,7 +46,7 @@
{{$isMember := .IsOrganizationMember}} {{range .Members}} - {{if or $isMember (.IsPublicMember $.Org.Id)}} + {{if or $isMember (.IsPublicMember $.Org.ID)}} {{end}} {{end}} diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index ddd341af..85f7cc90 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -25,13 +25,13 @@ {{$.i18n.Tr "org.members.membership_visibility"}}
- {{ $isPublic := .IsPublicMember $.Org.Id}} + {{ $isPublic := .IsPublicMember $.Org.ID}} {{if $isPublic}} {{$.i18n.Tr "org.members.public"}} - {{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.public_helper"}}){{end}} + {{if or (eq $.SignedUser.ID .ID) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.public_helper"}}){{end}} {{else}} {{$.i18n.Tr "org.members.private"}} - {{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.private_helper"}}){{end}} + {{if or (eq $.SignedUser.ID .ID) $.IsOrganizationOwner}}({{$.i18n.Tr "org.members.private_helper"}}){{end}} {{end}}
@@ -40,15 +40,15 @@ {{$.i18n.Tr "org.members.member_role"}}
- {{if .IsUserOrgOwner $.Org.Id}} {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}} + {{if .IsUserOrgOwner $.Org.ID}} {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}
- {{if eq $.SignedUser.Id .Id}} - {{$.i18n.Tr "org.members.leave"}} + {{if eq $.SignedUser.ID .ID}} + {{$.i18n.Tr "org.members.leave"}} {{else if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.members.remove"}} + {{$.i18n.Tr "org.members.remove"}} {{end}}
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 3f070b74..cd50ee4f 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -13,7 +13,7 @@ {{range .Team.Members}}
{{if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.members.remove"}} + {{$.i18n.Tr "org.members.remove"}} {{end}} @@ -26,7 +26,7 @@
{{.CsrfTokenHtml}} - +
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index b8110081..cc79dd18 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -28,7 +28,7 @@ {{.CsrfTokenHtml}}
-
+
diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index d1726159..02cb8d7d 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -2,10 +2,10 @@

{{.Team.Name}}

diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl index a5ad5d48..62acc2f2 100644 --- a/templates/org/team/teams.tmpl +++ b/templates/org/team/teams.tmpl @@ -16,10 +16,10 @@
{{.Name}}
- {{if .IsMember $.SignedUser.Id}} - {{$.i18n.Tr "org.teams.leave"}} + {{if .IsMember $.SignedUser.ID}} + {{$.i18n.Tr "org.teams.leave"}} {{else if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.teams.join"}} + {{$.i18n.Tr "org.teams.join"}} {{end}}
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 8cd466f3..c203f950 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -12,19 +12,19 @@