File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
{{if .Permission.CanRead $.UnitTypeCode}}
2
2
<div id="repo-contributors-chart"
3
- data-locale-filter-label="{{.locale .Tr "repo.contributors.contribution_type.filter_label"}}"
4
- data-locale-contribution-type-commits="{{.locale .Tr "repo.contributors.contribution_type.commits"}}"
5
- data-locale-contribution-type-additions="{{.locale .Tr "repo.contributors.contribution_type.additions"}}"
6
- data-locale-contribution-type-deletions="{{.locale .Tr "repo.contributors.contribution_type.deletions"}}"
7
- data-locale-loading-title="{{.locale .Tr "repo.contributors.loading_title"}}"
8
- data-locale-loading-title-failed="{{.locale .Tr "repo.contributors.loading_title_failed"}}"
9
- data-locale-loading-info="{{.locale .Tr "repo.contributors.loading_info"}}"
10
- data-locale-component-failed-to-load="{{.locale .Tr "repo.contributors.component_failed_to_load"}}"
3
+ data-locale-filter-label="{{ctx.Locale .Tr "repo.contributors.contribution_type.filter_label"}}"
4
+ data-locale-contribution-type-commits="{{ctx.Locale .Tr "repo.contributors.contribution_type.commits"}}"
5
+ data-locale-contribution-type-additions="{{ctx.Locale .Tr "repo.contributors.contribution_type.additions"}}"
6
+ data-locale-contribution-type-deletions="{{ctx.Locale .Tr "repo.contributors.contribution_type.deletions"}}"
7
+ data-locale-loading-title="{{ctx.Locale .Tr "repo.contributors.loading_title"}}"
8
+ data-locale-loading-title-failed="{{ctx.Locale .Tr "repo.contributors.loading_title_failed"}}"
9
+ data-locale-loading-info="{{ctx.Locale .Tr "repo.contributors.loading_info"}}"
10
+ data-locale-component-failed-to-load="{{ctx.Locale .Tr "repo.contributors.component_failed_to_load"}}"
11
11
>
12
12
</div>
13
13
{{end}}
Original file line number Diff line number Diff line change 1
1
<div class="ui fluid vertical menu">
2
2
<a class="{{if .PageIsPulse}}active{{end}} item" href="{{.RepoLink}}/activity">
3
- {{.locale .Tr "repo.activity.navbar.pulse"}}
3
+ {{ctx.Locale .Tr "repo.activity.navbar.pulse"}}
4
4
</a>
5
5
<a class="{{if .PageIsContributors}}active{{end}} item" href="{{.RepoLink}}/activity/contributors">
6
- {{.locale .Tr "repo.activity.navbar.contributors"}}
6
+ {{ctx.Locale .Tr "repo.activity.navbar.contributors"}}
7
7
</a>
8
8
</div>
You can’t perform that action at this time.
0 commit comments