mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-22 15:18:43 +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">
|
<div class="form-group">
|
||||||
<img class="pull-right" src="{{.Host}}/{{.Repo.Slug}}/status.png?branch=master">
|
<img class="pull-right" src="{{.Host}}/{{.Repo.Slug}}/status.png?branch=master">
|
||||||
<label>Badge, Markdown format</label>
|
<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>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Badge, HTML format</label>
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div><!-- ./col-xs-9 -->
|
</div><!-- ./col-xs-9 -->
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
{{ if $commit.PullRequest }}
|
{{ if $commit.PullRequest }}
|
||||||
<p>opened pull request <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}"># {{$commit.PullRequest}}</a></p>
|
<p>opened pull request <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}"># {{$commit.PullRequest}}</a></p>
|
||||||
{{ else }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</h3>
|
</h3>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
{{ if $commit.PullRequest }}
|
{{ if $commit.PullRequest }}
|
||||||
<p>opened pull request <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}"># {{$commit.PullRequest}}</a></p>
|
<p>opened pull request <a href="/{{$commit.Slug}}/commit/{{$commit.Hash}}"># {{$commit.PullRequest}}</a></p>
|
||||||
{{ else }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</h3>
|
</h3>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue