File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ func Code(ctx *context.Context) {
3030 return
3131 }
3232
33- ctx .Data ["UsersIsDisabled " ] = setting .Service .Explore .DisableUsersPage
34- ctx .Data ["OrganizationsIsDisabled " ] = setting .Service .Explore .DisableOrganizationsPage
33+ ctx .Data ["UsersPageIsDisabled " ] = setting .Service .Explore .DisableUsersPage
34+ ctx .Data ["OrganizationsPageIsDisabled " ] = setting .Service .Explore .DisableOrganizationsPage
3535 ctx .Data ["IsRepoIndexerEnabled" ] = setting .Indexer .RepoIndexerEnabled
3636 ctx .Data ["Title" ] = ctx .Tr ("explore" )
3737 ctx .Data ["PageIsExplore" ] = true
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ func Organizations(ctx *context.Context) {
1919 return
2020 }
2121
22- ctx .Data ["UsersIsDisabled " ] = setting .Service .Explore .DisableUsersPage
23- ctx .Data ["CodeIsDisabled " ] = setting .Service .Explore .DisableCodePage
22+ ctx .Data ["UsersPageIsDisabled " ] = setting .Service .Explore .DisableUsersPage
23+ ctx .Data ["CodePageIsDisabled " ] = setting .Service .Explore .DisableCodePage
2424 ctx .Data ["Title" ] = ctx .Tr ("explore" )
2525 ctx .Data ["PageIsExplore" ] = true
2626 ctx .Data ["PageIsExploreOrganizations" ] = true
Original file line number Diff line number Diff line change @@ -165,9 +165,9 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
165165
166166// Repos render explore repositories page
167167func Repos (ctx * context.Context ) {
168- ctx .Data ["UsersIsDisabled " ] = setting .Service .Explore .DisableUsersPage
169- ctx .Data ["OrganizationsIsDisabled " ] = setting .Service .Explore .DisableOrganizationsPage
170- ctx .Data ["CodeIsDisabled " ] = setting .Service .Explore .DisableCodePage
168+ ctx .Data ["UsersPageIsDisabled " ] = setting .Service .Explore .DisableUsersPage
169+ ctx .Data ["OrganizationsPageIsDisabled " ] = setting .Service .Explore .DisableOrganizationsPage
170+ ctx .Data ["CodePageIsDisabled " ] = setting .Service .Explore .DisableCodePage
171171 ctx .Data ["Title" ] = ctx .Tr ("explore" )
172172 ctx .Data ["PageIsExplore" ] = true
173173 ctx .Data ["PageIsExploreRepositories" ] = true
Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ func Users(ctx *context.Context) {
134134 ctx .Redirect (setting .AppSubURL + "/explore/repos" )
135135 return
136136 }
137- ctx .Data ["OrganizationsIsDisabled " ] = setting .Service .Explore .DisableOrganizationsPage
138- ctx .Data ["CodeIsDisabled " ] = setting .Service .Explore .DisableCodePage
137+ ctx .Data ["OrganizationsPageIsDisabled " ] = setting .Service .Explore .DisableOrganizationsPage
138+ ctx .Data ["CodePageIsDisabled " ] = setting .Service .Explore .DisableCodePage
139139 ctx .Data ["Title" ] = ctx .Tr ("explore" )
140140 ctx .Data ["PageIsExplore" ] = true
141141 ctx .Data ["PageIsExploreUsers" ] = true
Original file line number Diff line number Diff line change 33 <a class="{{if .PageIsExploreRepositories}}active {{end}}item" href="{{AppSubUrl}}/explore/repos">
44 {{svg "octicon-repo"}} {{ctx.Locale.Tr "explore.repos"}}
55 </a>
6- {{if not .UsersIsDisabled }}
6+ {{if not .UsersPageIsDisabled }}
77 <a class="{{if .PageIsExploreUsers}}active {{end}}item" href="{{AppSubUrl}}/explore/users">
88 {{svg "octicon-person"}} {{ctx.Locale.Tr "explore.users"}}
99 </a>
1010 {{end}}
11- {{if not .OrganizationsIsDisabled }}
11+ {{if not .OrganizationsPageIsDisabled }}
1212 <a class="{{if .PageIsExploreOrganizations}}active {{end}}item" href="{{AppSubUrl}}/explore/organizations">
1313 {{svg "octicon-organization"}} {{ctx.Locale.Tr "explore.organizations"}}
1414 </a>
1515 {{end}}
16- {{if and (not ctx.Consts.RepoUnitTypeCode.UnitGlobalDisabled) .IsRepoIndexerEnabled (not .CodeIsDisabled )}}
16+ {{if and (not ctx.Consts.RepoUnitTypeCode.UnitGlobalDisabled) .IsRepoIndexerEnabled (not .CodePageIsDisabled )}}
1717 <a class="{{if .PageIsExploreCode}}active {{end}}item" href="{{AppSubUrl}}/explore/code">
1818 {{svg "octicon-code"}} {{ctx.Locale.Tr "explore.code"}}
1919 </a>
You can’t perform that action at this time.
0 commit comments