clean: remove unused code

This commit is contained in:
Levi Yan
2024-12-25 11:43:43 +08:00
repo.diff.committed_by 戴明辰
repo.diff.parent 4dfb8c97fa
repo.diff.commit ac76dec6dc

repo.diff.view_file

@@ -70,34 +70,8 @@
</div>
<!-- navbar links non-mobile -->
{{if and .IsSigned .MustChangePassword}}
{{/* No links */}}
{{else if .IsSigned}}
<!-- {{if not ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled}}-->
<!-- <a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">{{ctx.Locale.Tr "issues"}}</a>-->
<!-- {{end}}-->
<!-- {{if not ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled}}-->
<!-- <a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">{{ctx.Locale.Tr "pull_requests"}}</a>-->
<!-- {{end}}-->
<!-- {{if not (and ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled)}}-->
<!-- {{if .ShowMilestonesDashboardPage}}-->
<!-- <a class="item{{if .PageIsMilestonesDashboard}} active{{end}}" href="{{AppSubUrl}}/milestones">{{ctx.Locale.Tr "milestones"}}</a>-->
<!-- {{end}}-->
<!-- {{end}}-->
<!-- <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore"}}</a>-->
{{else if .IsLandingPageOrganizations}}
<!-- <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{ctx.Locale.Tr "explore"}}</a>-->
{{else}}
<!-- <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore"}}</a>-->
{{end}}
{{template "custom/extra_links" .}}
{{if not .IsSigned}}
<!-- <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.com">{{ctx.Locale.Tr "help"}}</a>-->
{{end}}
</div>
<!-- the full dropdown menus -->
@@ -113,11 +87,6 @@
{{svg "octicon-sign-out"}}
{{ctx.Locale.Tr "sign_out"}}
</a>
{{if and .IsSigned .MustChangePassword}}
{{else if .IsSigned}}
{{else}}
{{end}}
</div><!-- end full right menu -->
</nav>