Skip to content

Commit d8bb539

Browse files
committed
move button to seperate template
1 parent 5fe7e79 commit d8bb539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/diff/box.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{else}}
88
<a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
99
{{end}}
10-
<a class="ui tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo.diff.show_diff_stats"}}</a>
10+
{{template "repo/diff/options_dropdown" .}}
1111
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
1212
{{template "repo/diff/new_review" .}}
1313
{{end}}
@@ -26,7 +26,7 @@
2626
{{else}}
2727
<a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
2828
{{end}}
29-
<a class="ui tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo.diff.show_diff_stats"}}</a>
29+
{{template "repo/diff/options_dropdown" .}}
3030
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
3131
{{template "repo/diff/new_review" .}}
3232
{{end}}

0 commit comments

Comments
 (0)