Commit 545495d 1 parent 0268ee5 commit 545495d Copy full SHA for 545495d
File tree 3 files changed +17
-0
lines changed
templates/repo/issue/view_content
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1470,6 +1470,7 @@ issues.error_removing_due_date = "Failed to remove the due date."
1470
1470
issues.push_commit_1 = " added %d commit %s"
1471
1471
issues.push_commits_n = " added %d commits %s"
1472
1472
issues.force_push_codes = `force-pushed %[1]s from <a class =" ui sha" href =" %[3]s" ><code>%[2]s</code></a> to <a class =" ui sha" href =" %[5]s" ><code>%[4]s</code></a> %[6]s`
1473
+ issues.force_push_compare = Compare
1473
1474
issues.due_date_form = " yyyy-mm-dd"
1474
1475
issues.due_date_form_add = " Add due date"
1475
1476
issues.due_date_form_edit = " Edit"
Original file line number Diff line number Diff line change 707
707
{{$.locale.TrN (len .Commits) "repo.issues.push_commit_1" "repo.issues.push_commits_n" (len .Commits) $createdStr | Safe}}
708
708
{{end}}
709
709
</span>
710
+ {{if and .IsForcePush $.Issue.PullRequest.BaseRepo.Name}}
711
+ <span class="ui float right comparebox">
712
+ <a href="{{$.Issue.PullRequest.BaseRepo.Link}}/compare/{{PathEscape .OldCommit}}..{{PathEscape .NewCommit}}" rel="nofollow" class="ui compare label">{{$.locale.Tr "repo.issues.force_push_compare"}}</a>
713
+ </span>
714
+ {{end}}
710
715
</div>
711
716
{{if not .IsForcePush}}
712
717
{{template "repo/commits_list_small" dict "comment" . "root" $}}
Original file line number Diff line number Diff line change 952
952
margin-top : 4px ;
953
953
}
954
954
955
+ .comparebox {
956
+ line-height : 32px ;
957
+ vertical-align : middle ;
958
+
959
+ .compare.label {
960
+ font-size : 1rem ;
961
+ margin : 0 ;
962
+ border : 1px solid var (--color-light-border );
963
+ }
964
+ }
965
+
955
966
.comment-form-reply .footer {
956
967
padding-bottom : 1em ;
957
968
}
You can’t perform that action at this time.
0 commit comments