2025-03-28 21:04:40 -07:00
|
|
|
{{$canReadCode := $.Permission.CanRead $.UnitTypeCode}}
|
|
|
|
|
2024-02-16 01:21:13 +03:00
|
|
|
<div class="ui fluid vertical menu">
|
|
|
|
<a class="{{if .PageIsPulse}}active {{end}}item" href="{{.RepoLink}}/activity">
|
|
|
|
{{ctx.Locale.Tr "repo.activity.navbar.pulse"}}
|
|
|
|
</a>
|
2025-03-28 21:04:40 -07:00
|
|
|
{{if $canReadCode}}
|
|
|
|
<a class="{{if .PageIsContributors}}active {{end}}item" href="{{.RepoLink}}/activity/contributors">
|
|
|
|
{{ctx.Locale.Tr "repo.activity.navbar.contributors"}}
|
|
|
|
</a>
|
|
|
|
<a class="{{if .PageIsCodeFrequency}}active{{end}} item" href="{{.RepoLink}}/activity/code-frequency">
|
|
|
|
{{ctx.Locale.Tr "repo.activity.navbar.code_frequency"}}
|
|
|
|
</a>
|
|
|
|
<a class="{{if .PageIsRecentCommits}}active{{end}} item" href="{{.RepoLink}}/activity/recent-commits">
|
|
|
|
{{ctx.Locale.Tr "repo.activity.navbar.recent_commits"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2024-02-16 01:21:13 +03:00
|
|
|
</div>
|