diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-09 21:42:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-09 21:42:25 -0400 |
commit | 5d4025cb5a629716bf84f4f5bf3baa97af716df4 (patch) | |
tree | 0302bc6bc306df2f400b8b19fb9531918e09c7ca /templates/repo | |
parent | 3487f1728530fd2b0a447fe6fd7ef079cb53eed4 (diff) | |
download | gitea-5d4025cb5a629716bf84f4f5bf3baa97af716df4.tar.gz gitea-5d4025cb5a629716bf84f4f5bf3baa97af716df4.zip |
Add go get meta support
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/setting.tmpl | 13 | ||||
-rw-r--r-- | templates/repo/single_bare.tmpl | 14 | ||||
-rw-r--r-- | templates/repo/toolbar.tmpl | 2 |
3 files changed, 28 insertions, 1 deletions
diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl index 85d08c5973..1adf0090c7 100644 --- a/templates/repo/setting.tmpl +++ b/templates/repo/setting.tmpl @@ -43,6 +43,7 @@ <input type="url" class="form-control" name="site" value="{{.Repository.Website}}" /> </div> </div> + <hr> <!-- <div class="form-group"> <label class="col-md-3 text-right">Default Branch</label> <div class="col-md-9"> @@ -51,6 +52,18 @@ </select> </div> </div> --> + + <div class="form-group"> + <div class="col-md-offset-3 col-md-9"> + <div class="checkbox"> + <label style="line-height: 15px;"> + <input type="checkbox" name="goget" {{if .Repository.IsGoget}}checked{{end}}> + <strong>Enable 'go get' meta</strong> + </label> + </div> + </div> + </div> + <div class="form-group"> <div class="col-md-9 col-md-offset-3"> <button class="btn btn-primary" type="submit">Save Options</button> diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl index fc0a3bd96c..3f63915352 100644 --- a/templates/repo/single_bare.tmpl +++ b/templates/repo/single_bare.tmpl @@ -9,6 +9,20 @@ <h4>Quick Guide</h4> </div> <div class="panel-body guide-content text-center"> + <form action="{{.RepoLink}}/import" method="post"> + {{.CsrfTokenHtml}} + <h3>Clone from existing repository</h3> + <div class="input-group col-md-6 col-md-offset-3"> + <span class="input-group-btn"> + <button class="btn btn-default" type="button">URL</button> + </span> + <input name="passwd" type="password" class="form-control" placeholder="Type existing repository address" required="required"> + <span class="input-group-btn"> + <button type="submit" class="btn btn-default" type="button">Clone</button> + </span> + </div> + </form> + <h3>Clone this repository</h3> <div class="input-group col-md-8 col-md-offset-2 guide-buttons"> <span class="input-group-btn"> diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl index d8ab26214c..9c137e5179 100644 --- a/templates/repo/toolbar.tmpl +++ b/templates/repo/toolbar.tmpl @@ -11,7 +11,7 @@ <li class="{{if .IsRepoToolbarIssues}}active{{end}}"><a href="{{.RepoLink}}/issues">{{if .Repository.NumOpenIssues}}<span class="badge">{{.Repository.NumOpenIssues}}</span> {{end}}Issues <!--<span class="badge">42</span>--></a></li> {{if .IsRepoToolbarIssues}} <li class="tmp">{{if .IsRepoToolbarIssuesList}}<a href="{{.RepoLink}}/issues/new"><button class="btn btn-primary btn-sm">New Issue</button> - </a>{{else}}<a href="{{.RepoLink}}/issues"><button class="btn btn-primary btn-sm">Issues List</button></a>{{end}}</li> + </a>{{end}}</li> {{end}} <li class="{{if .IsRepoToolbarReleases}}active{{end}}"><a href="{{.RepoLink}}/releases">{{if .Repository.NumReleases}}<span class="badge">{{.Repository.NumReleases}}</span> {{end}}Releases</a></li> {{if .IsRepoToolbarReleases}} |