You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cherry_pick.tmpl 1.5KB

1234567891011121314151617181920212223242526272829303132
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content repository file editor edit">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <form class="ui edit form" method="post" action="{{.RepoLink}}/_cherrypick/{{.SHA}}/{{.BranchName | PathEscapeSegments}}">
  7. {{.CsrfTokenHtml}}
  8. <input type="hidden" name="last_commit" value="{{.last_commit}}">
  9. <input type="hidden" name="page_has_posted" value="true">
  10. <input type="hidden" name="revert" value="{{if eq .CherryPickType "revert"}}true{{else}}false{{end}}">
  11. <div class="ui secondary menu">
  12. <div class="fitted item treepath">
  13. <div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
  14. {{$shaurl := printf "%s/commit/%s" $.RepoLink (PathEscape .SHA)}}
  15. {{$shalink := printf "<a class=\"ui primary sha label\" href=\"%s\">%s</a>" (Escape $shaurl) (ShortSha .SHA)}}
  16. {{if eq .CherryPickType "revert"}}
  17. {{.locale.Tr "repo.editor.revert" $shalink | Str2html}}
  18. {{else}}
  19. {{.locale.Tr "repo.editor.cherry_pick" $shalink | Str2html}}
  20. {{end}}
  21. <a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a>
  22. <div class="divider">:</div>
  23. <a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
  24. <span>{{.locale.Tr "repo.editor.or"}} <a href="{{$shaurl}}">{{.locale.Tr "repo.editor.cancel_lower"}}</a></span>
  25. </div>
  26. </div>
  27. </div>
  28. {{template "repo/editor/commit_form" .}}
  29. </form>
  30. </div>
  31. </div>
  32. {{template "base/footer" .}}