Skip to content

Commit c132652

Browse files
committed
fine tune template
1 parent 80b04f0 commit c132652

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/repo/header.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
</a>
212212
{{end}}
213213

214-
{{if and (.Permission.CanReadAny ctx.Consts.RepoUnitTypePullRequests ctx.Consts.RepoUnitTypeIssues ctx.Consts.RepoUnitTypeReleases) (not .IsEmptyRepo)}}
214+
{{if and (.Permission.CanReadAny ctx.Consts.RepoUnitTypePullRequests ctx.Consts.RepoUnitTypeIssues ctx.Consts.RepoUnitTypeReleases ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}}
215215
<a class="{{if .PageIsActivity}}active {{end}}item" href="{{.RepoLink}}/activity">
216216
{{svg "octicon-pulse"}} {{ctx.Locale.Tr "repo.activity"}}
217217
</a>

templates/repo/navbar.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{{$canReadCode := $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
22

33
<div class="ui fluid vertical menu">
4+
{{/* the default activity page "pulse" could work with any permission: code, issue, pr, release*/}}
45
<a class="{{if .PageIsPulse}}active {{end}}item" href="{{.RepoLink}}/activity">
56
{{ctx.Locale.Tr "repo.activity.navbar.pulse"}}
67
</a>

0 commit comments

Comments
 (0)