本站源代码
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.

43 lines
1.6KB

  1. {{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
  2. <input id="ref_selector" name="ref" type="hidden" value="{{.Issue.Ref}}">
  3. <div class="ui {{if .ReadOnly}}disabled{{end}} floating filter select-branch dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
  4. <div class="ui basic small button">
  5. <span class="text branch-name">{{if .Issue.Ref}}{{.Issue.Ref}}{{else}}{{.i18n.Tr "repo.issues.no_ref"}}{{end}}</span>
  6. <i class="dropdown icon"></i>
  7. </div>
  8. <div class="menu">
  9. <div class="ui icon search input">
  10. <i class="filter icon"></i>
  11. <input name="search" placeholder="{{.i18n.Tr "repo.filter_branch_and_tag"}}...">
  12. </div>
  13. <div class="header">
  14. <div class="ui grid">
  15. <div class="two column row">
  16. <a class="reference column" href="#" data-target="#branch-list">
  17. <span class="text black">
  18. <i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
  19. </span>
  20. </a>
  21. <a class="reference column" href="#" data-target="#tag-list">
  22. <span class="text">
  23. <i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
  24. </span>
  25. </a>
  26. </div>
  27. </div>
  28. </div>
  29. <div id="branch-list" class="scrolling menu reference-list-menu">
  30. {{range .Branches}}
  31. <div class="item" data-id="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
  32. {{end}}
  33. </div>
  34. <div id="tag-list" class="scrolling menu reference-list-menu" style="display: none">
  35. {{range .Tags}}
  36. <div class="item" data-id="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
  37. {{end}}
  38. </div>
  39. </div>
  40. </div>
  41. <div class="ui divider"></div>
  42. {{end}}
上海开阖软件有限公司 沪ICP备12045867号-1