aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
committerUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
commitdfd494c113cfa2a25ee0c2f5a12c6403f24742a4 (patch)
treea1b7e8c997bf77790fd8402e19cc642530f360bf /routes/repo/repo.go
parent57897cc8c2c90ab1566a65bcd1eabfd41a906070 (diff)
repo: minor improve for PR #5219 and support UTF-8 byte count
Diffstat (limited to 'routes/repo/repo.go')
-rw-r--r--routes/repo/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/repo/repo.go b/routes/repo/repo.go
index b8afb340..26ebeca0 100644
--- a/routes/repo/repo.go
+++ b/routes/repo/repo.go
@@ -66,7 +66,8 @@ func checkContextUser(c *context.Context, uid int64) *models.User {
}
func Create(c *context.Context) {
- c.Data["Title"] = c.Tr("new_repo")
+ c.Title("new_repo")
+ c.RequireAutosize()
// Give default value for template to render.
c.Data["Gitignores"] = models.Gitignores
@@ -75,7 +76,6 @@ func Create(c *context.Context) {
c.Data["readme"] = "Default"
c.Data["private"] = c.User.LastRepoVisibility
c.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate
- c.Data["RequireAutosize"] = true
ctxUser := checkContextUser(c, c.QueryInt64("org"))
if c.Written() {