- {{template "base/head" .}}
- <div class="repository file list">
- {{template "repo/header" .}}
- <div class="ui container">
- {{template "base/alert" .}}
- <div class="ui three column stackable grid">
- <div class="column">
- {{template "repo/branch_dropdown" .}}
- </div>
-
- {{if .RepoSearchEnabled}}
- <div class="ui column center aligned repo-search">
- <form class="ui form ignore-dirty" action="{{.RepoLink}}/search" method="get">
- <div class="field">
- <div class="ui action input">
- <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "repo.search.search_repo"}}">
- <button class="ui basic icon button" type="submit">
- <i class="search icon"></i>
- </button>
- </div>
- </div>
- </form>
- </div>
- {{end}}
-
- <div class="column right aligned">
- <div class="ui dropdown">
- <button class="ui basic left attached labeled icon button"><i class="clone icon"></i>Clone</button>
- <div class="menu">
- <div class="message clone-menu">
- Run: <kbd class="ui label">$ git clone <i>url</i></kbd>
- <div class="clone-grid">
- {{if not $.DisableHTTP}}
- <div>
- {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
- </div>
- <div class="ui left action input">
- <button class="ui tiny compact basic icon button poping up clipboard" id="clipboard-btn-https" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url-https">
- <i class="copy outline icon"></i>
- </button>
- <input id="repo-clone-url-https" value="{{$.CloneLink.HTTPS}}" readonly>
- </div>
- {{end}}
- {{if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
- <div>
- SSH
- </div>
- <div class="ui left action input">
- <button class="ui tiny compact basic icon button poping up clipboard" id="clipboard-btn-ssh" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url-ssh">
- <i class="copy outline icon"></i>
- </button>
- <input id="repo-clone-url-ssh" value="{{$.CloneLink.SSH}}" readonly>
- </div>
- {{end}}
- </div>
- </div>
- </div>
- </div><!--
- --><div class="ui dropdown">
- <button class="ui basic right attached labeled icon button">
- <i class="download icon"></i>Download
- </button>
- <div class="menu">
- <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip"><i class="octicon octicon-file-zip"></i> ZIP</a>
- <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz"><i class="octicon octicon-file-zip"></i> TAR.GZ</a>
- </div>
- </div>
- </div>
- </div>
- {{if .IsViewFile}}
- {{template "repo/view_file" .}}
- {{else}}
- {{template "repo/view_list" .}}
- {{end}}
- </div>
- </div>
- {{template "base/footer" .}}
|