Browse Source

[GinR] Add a license by default

cgars 7 năm trước cách đây
mục cha
commit
1b41a43742
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      routes/repo/repo.go

+ 1 - 0
routes/repo/repo.go

@@ -71,6 +71,7 @@ func Create(c *context.Context) {
 	// Give default value for template to render.
 	c.Data["Gitignores"] = models.Gitignores
 	c.Data["Licenses"] = models.Licenses
+	c.Data["license"] = models.Licenses[0]
 	c.Data["Readmes"] = models.Readmes
 	c.Data["readme"] = "Default"
 	c.Data["private"] = c.User.LastRepoVisibility