woodpecker/pkg/template/pages/repo_badges.html
2014-03-11 16:01:42 -03:00

50 lines
1.7 KiB
HTML

{{ define "title" }}{{.Repo.Slug}} · Badges{{ end }}
{{ define "content" }}
<div class="subhead">
<div class="container">
<ul class="nav nav-tabs pull-right">
<li><a href="/{{.Repo.Slug}}">Commits</a></li>
<li class="active"><a href="/{{.Repo.Slug}}/settings">Settings</a></li>
</ul> <!-- ./nav -->
<h1>
<span>{{.Repo.Name}}</span>
<small>{{.Repo.Owner}}</small>
</h1>
</div><!-- ./container -->
</div><!-- ./subhead -->
<div class="container">
<div class="row">
<div class="col-xs-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="/{{.Repo.Slug}}/settings">Repository</a></li>
<li><a href="/{{.Repo.Slug}}/params">Params</a></li>
<li><a href="/{{.Repo.Slug}}/keys">Key Pairs</a></li>
<li class="active"><a href="/{{.Repo.Slug}}/badges">Badges</a></li>
<li><a href="/{{.Repo.Slug}}/delete">Delete</a></li>
</ul>
</div><!-- ./col-xs-3 -->
<div class="col-xs-9" role="main">
<form>
<div class="form-group">
<img class="pull-right" src="{{.Host}}/{{.Repo.Slug}}/status.svg?branch=master">
<label>Badge, Markdown format</label>
<textarea class="form-control" rows="3">[![Build Status]({{.Host}}/{{.Repo.Slug}}/status.svg?branch=master)]({{.Host}}/{{.Repo.Slug}})</textarea>
</div>
<div class="form-group">
<label>Badge, HTML format</label>
<textarea class="form-control" rows="3">&lt;a href="{{.Host}}/{{.Repo.Slug}}"&gt;&lt;img src="{{.Host}}/{{.Repo.Slug}}/status.svg?branch=master" /&gt;&lt;/a&gt;</textarea>
</div>
</form>
</div><!-- ./col-xs-9 -->
</div><!-- ./row -->
</div><!-- ./container -->
{{ end }}
{{ define "script" }}
{{ end }}