gitea源码

clone_buttons.tmpl 712B

1234567891011121314
  1. <!-- there is always at least one button (guaranteed by context/repo.go) -->
  2. <div class="ui action small input clone-buttons-combo">
  3. {{if $.CloneButtonShowHTTPS}}
  4. <button class="ui small button repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">HTTPS</button>
  5. {{end}}
  6. {{if $.CloneButtonShowSSH}}
  7. <button class="ui small button repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">SSH</button>
  8. {{end}}
  9. <input size="10" class="repo-clone-url js-clone-url" value="{{$.CloneButtonOriginLink.HTTPS}}" readonly>
  10. <button class="ui small icon button" data-clipboard-target=".repo-clone-url" data-tooltip-content="{{ctx.Locale.Tr "copy_url"}}">
  11. {{svg "octicon-copy" 14}}
  12. </button>
  13. </div>