Small repo template cleanups in Gitea
This improves the comments around why we've cleaned up some repo functionality and also removes the activity button. The activity data gitea is aware of is not a complete picture and is likely to be misleading. Avoid misleading people by removing that button. Change-Id: If7546f95421efdd897f2949e4f89a08d53289ce8
This commit is contained in:
parent
4f405f13f5
commit
1770a25c8a
@ -49,7 +49,7 @@
|
||||
{{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}}
|
||||
{{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}}
|
||||
</div>
|
||||
<!-- Intetionally removed as watching, staring, and forking don't make sense on this installation
|
||||
<!-- Intentionally removed as watching, starring, and forking don't make sense without accounts
|
||||
{{if not .IsBeingCreated}}
|
||||
<div class="repo-buttons">
|
||||
<form method="post" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}">
|
||||
@ -122,7 +122,7 @@
|
||||
{{svg "octicon-git-pull-request" 16}} Proposed changes
|
||||
</a>
|
||||
|
||||
<!-- Removed intentionally as tarballs of python projects are not useful
|
||||
<!-- Removed intentionally as tarballs of repos that would normally need an intelligent process to create source artifacts is not a useful feature
|
||||
{{if and (.Permission.CanRead $.UnitTypeReleases) (not .IsEmptyRepo) }}
|
||||
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">
|
||||
{{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .NumReleases}}gray{{else}}blue{{end}} small label">{{.NumReleases}}</span>
|
||||
@ -136,11 +136,13 @@
|
||||
</a>
|
||||
{{end}}
|
||||
|
||||
<!-- Removed intentionally as the activity graphs don't show a complete picture of activity due to our use of Gerrit
|
||||
{{if and (.Permission.CanReadAny $.UnitTypePullRequests $.UnitTypeIssues $.UnitTypeReleases) (not .IsEmptyRepo)}}
|
||||
<a class="{{if .PageIsActivity}}active{{end}} item" href="{{.RepoLink}}/activity">
|
||||
{{svg "octicon-pulse" 16}} {{.i18n.Tr "repo.activity"}}
|
||||
</a>
|
||||
{{end}}
|
||||
-->
|
||||
|
||||
{{template "custom/extra_tabs" .}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user