Skip to content

Commit 86b8b7c

Browse files
committed
use AdditionalClasses, use null for replaceState
1 parent eeb77da commit 86b8b7c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

templates/repo/commits_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
{{end}}
5757
{{if $.CommitsTagsMap}}
5858
{{range (index $.CommitsTagsMap .ID.String)}}
59-
{{- template "repo/tag/name" dict "ExtraClass" "tw-py-0" "RepoLink" $.Repository.Link "TagName" .TagName "IsRelease" (not .IsTag) -}}
59+
{{- template "repo/tag/name" dict "AdditionalClasses" "tw-py-0" "RepoLink" $.Repository.Link "TagName" .TagName "IsRelease" (not .IsTag) -}}
6060
{{end}}
6161
{{end}}
6262
</td>

templates/repo/graph/commits.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</a>
2626
{{end}}
2727
{{else if eq $refGroup "tags"}}
28-
{{- template "repo/tag/name" dict "ExtraClass" "tag-label" "RepoLink" $.Repository.Link "TagName" .ShortName -}}
28+
{{- template "repo/tag/name" dict "AdditionalClasses" "tag-label" "RepoLink" $.Repository.Link "TagName" .ShortName -}}
2929
{{else if eq $refGroup "remotes"}}
3030
<a class="ui basic tiny button" href="{{$.RepoLink}}/src/commit/{{$commit.Rev|PathEscape}}">
3131
{{svg "octicon-cross-reference"}} {{.ShortName}}

templates/repo/tag/name.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<a class="ui basic label {{if .IsRelease}}primary{{end}} {{.ExtraClass}}" href="{{.RepoLink}}/src/tag/{{.TagName|PathEscape}}">
1+
<a class="ui basic label {{if .IsRelease}}primary{{end}} {{.AdditionalClasses}}" href="{{.RepoLink}}/src/tag/{{.TagName|PathEscape}}">
22
{{svg "octicon-tag"}} {{.TagName}}
33
</a>

web_src/js/features/repo-graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function initRepoGraphGit() {
1717

1818
const params = new URLSearchParams(window.location.search);
1919
params.set('mode', mode);
20-
window.history.replaceState({}, '', `?${params.toString()}`);
20+
window.history.replaceState(null, '', `?${params.toString()}`);
2121
for (const link of document.querySelectorAll('#pagination .pagination a')) {
2222
const href = link.getAttribute('href');
2323
if (!href) continue;

0 commit comments

Comments
 (0)