@@ -31,7 +31,6 @@ import (
31
31
"code.gitea.io/gitea/services/context/upload"
32
32
"code.gitea.io/gitea/services/forms"
33
33
releaseservice "code.gitea.io/gitea/services/release"
34
- repo_service "code.gitea.io/gitea/services/repository"
35
34
)
36
35
37
36
const (
@@ -153,9 +152,6 @@ func Releases(ctx *context.Context) {
153
152
ctx .Data ["Title" ] = ctx .Tr ("repo.release.releases" )
154
153
ctx .Data ["IsViewBranch" ] = false
155
154
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
159
155
160
156
listOptions := db.ListOptions {
161
157
Page : ctx .FormInt ("page" ),
@@ -193,9 +189,6 @@ func Releases(ctx *context.Context) {
193
189
pager := context .NewPagination (int (numReleases ), listOptions .PageSize , listOptions .Page , 5 )
194
190
pager .SetDefaultParams (ctx )
195
191
ctx .Data ["Page" ] = pager
196
-
197
- ctx .Data ["LicenseFileName" ] = repo_service .LicenseFileName
198
-
199
192
ctx .HTML (http .StatusOK , tplReleasesList )
200
193
}
201
194
@@ -205,9 +198,6 @@ func TagsList(ctx *context.Context) {
205
198
ctx .Data ["Title" ] = ctx .Tr ("repo.release.tags" )
206
199
ctx .Data ["IsViewBranch" ] = false
207
200
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
211
201
ctx .Data ["CanCreateRelease" ] = ctx .Repo .CanWrite (unit .TypeReleases ) && ! ctx .Repo .Repository .IsArchived
212
202
213
203
namePattern := ctx .FormTrim ("q" )
@@ -254,8 +244,6 @@ func TagsList(ctx *context.Context) {
254
244
pager .SetDefaultParams (ctx )
255
245
ctx .Data ["Page" ] = pager
256
246
ctx .Data ["PageIsViewCode" ] = ! ctx .Repo .Repository .UnitEnabled (ctx , unit .TypeReleases )
257
- ctx .Data ["LicenseFileName" ] = repo_service .LicenseFileName
258
-
259
247
ctx .HTML (http .StatusOK , tplTagsList )
260
248
}
261
249
0 commit comments