@@ -31,7 +31,6 @@ import (
3131	"code.gitea.io/gitea/services/context/upload" 
3232	"code.gitea.io/gitea/services/forms" 
3333	releaseservice "code.gitea.io/gitea/services/release" 
34- 	repo_service "code.gitea.io/gitea/services/repository" 
3534)
3635
3736const  (
@@ -153,9 +152,6 @@ func Releases(ctx *context.Context) {
153152	ctx .Data ["Title" ] =  ctx .Tr ("repo.release.releases" )
154153	ctx .Data ["IsViewBranch" ] =  false 
155154	ctx .Data ["IsViewTag" ] =  true 
156- 	// Disable the showCreateNewBranch form in the dropdown on this page. 
157- 	ctx .Data ["CanCreateBranch" ] =  false 
158- 	ctx .Data ["HideBranchesInDropdown" ] =  true 
159155
160156	listOptions  :=  db.ListOptions {
161157		Page :     ctx .FormInt ("page" ),
@@ -193,9 +189,6 @@ func Releases(ctx *context.Context) {
193189	pager  :=  context .NewPagination (int (numReleases ), listOptions .PageSize , listOptions .Page , 5 )
194190	pager .SetDefaultParams (ctx )
195191	ctx .Data ["Page" ] =  pager 
196- 
197- 	ctx .Data ["LicenseFileName" ] =  repo_service .LicenseFileName 
198- 
199192	ctx .HTML (http .StatusOK , tplReleasesList )
200193}
201194
@@ -205,9 +198,6 @@ func TagsList(ctx *context.Context) {
205198	ctx .Data ["Title" ] =  ctx .Tr ("repo.release.tags" )
206199	ctx .Data ["IsViewBranch" ] =  false 
207200	ctx .Data ["IsViewTag" ] =  true 
208- 	// Disable the showCreateNewBranch form in the dropdown on this page. 
209- 	ctx .Data ["CanCreateBranch" ] =  false 
210- 	ctx .Data ["HideBranchesInDropdown" ] =  true 
211201	ctx .Data ["CanCreateRelease" ] =  ctx .Repo .CanWrite (unit .TypeReleases ) &&  ! ctx .Repo .Repository .IsArchived 
212202
213203	namePattern  :=  ctx .FormTrim ("q" )
@@ -254,8 +244,6 @@ func TagsList(ctx *context.Context) {
254244	pager .SetDefaultParams (ctx )
255245	ctx .Data ["Page" ] =  pager 
256246	ctx .Data ["PageIsViewCode" ] =  ! ctx .Repo .Repository .UnitEnabled (ctx , unit .TypeReleases )
257- 	ctx .Data ["LicenseFileName" ] =  repo_service .LicenseFileName 
258- 
259247	ctx .HTML (http .StatusOK , tplTagsList )
260248}
261249
0 commit comments