mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 07:08:58 +00:00
branch is using url param on all pages now, until we get wildcard routing
This commit is contained in:
parent
9c8cab706b
commit
f88171d433
3 changed files with 4 additions and 4 deletions
|
@ -34,11 +34,11 @@
|
|||
<div class="form-group">
|
||||
<img class="pull-right" src="{{.Host}}/{{.Repo.Slug}}/status.png?branch=master">
|
||||
<label>Badge, Markdown format</label>
|
||||
<textarea class="form-control" rows="3">[![Build Status]({{.Host}}/{{.Repo.Slug}}/status.png?branch=master)]({{.Host}}/{{.Repo.Slug}}/tree/master)</textarea>
|
||||
<textarea class="form-control" rows="3">[![Build Status]({{.Host}}/{{.Repo.Slug}}/status.png?branch=master)]({{.Host}}/{{.Repo.Slug}})</textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Badge, HTML format</label>
|
||||
<textarea class="form-control" rows="3"><a href="{{.Host}}/{{.Repo.Slug}}/tree/master"><img src="{{.Host}}/{{.Repo.Slug}}/status.png?branch=master" /></a></textarea>
|
||||
<textarea class="form-control" rows="3"><a href="{{.Host}}/{{.Repo.Slug}}"><img src="{{.Host}}/{{.Repo.Slug}}/status.png?branch=master" /></a></textarea>
|
||||
</div>
|
||||
</form>
|
||||
</div><!-- ./col-xs-9 -->
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
{{ if $commit.PullRequest }}
|
||||
<p>opened pull request <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}"># {{$commit.PullRequest}}</a></p>
|
||||
{{ else }}
|
||||
<p>commit <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}">{{$commit.HashShort}}</a> to <a href="/{{$commit.Slug}}/tree/{{$commit.Branch}}">{{$commit.Branch}}</a> branch</p>
|
||||
<p>commit <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}">{{$commit.HashShort}}</a> to <a href="/{{$commit.Slug}}?branch={{$commit.Branch}}">{{$commit.Branch}}</a> branch</p>
|
||||
{{ end }}
|
||||
</h3>
|
||||
</li>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
{{ if $commit.PullRequest }}
|
||||
<p>opened pull request <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}"># {{$commit.PullRequest}}</a></p>
|
||||
{{ else }}
|
||||
<p>commit <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}">{{$commit.HashShort}}</a> to <a href="/{{$commit.Slug}}/tree/{{$commit.Branch}}">{{$commit.Branch}}</a> branch</p>
|
||||
<p>commit <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}">{{$commit.HashShort}}</a> to <a href="/{{$commit.Slug}}?branch={{$commit.Branch}}">{{$commit.Branch}}</a> branch</p>
|
||||
{{ end }}
|
||||
</h3>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue