mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
added section solely for pull requests
This commit is contained in:
parent
906ac9e6b9
commit
920e072e91
1 changed files with 16 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
||||||
<div><i class="fa fa-file-code-o"></i></div>
|
<div><i class="fa fa-file-code-o"></i></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section ng-repeat="group in commits | unique: 'branch'">
|
<section ng-repeat="group in commits | filter: { pull_request: '' } | unique: 'branch'">
|
||||||
<div class="pure-g cards">
|
<div class="pure-g cards">
|
||||||
<h2 class="pure-u-1" style="font-size:22px;margin-bottom:20px;"><i class="fa fa-code-fork"></i> {{group.branch}}</h2>
|
<h2 class="pure-u-1" style="font-size:22px;margin-bottom:20px;"><i class="fa fa-code-fork"></i> {{group.branch}}</h2>
|
||||||
<a class="pure-u-1 pure-u-md-1-4 pure-u-lg-1-4 pure-u-xl-1-4 card card" ng-href="/{{ repo | fullPath }}/{{ commit.branch }}/{{ commit.sha }}" ng-repeat="commit in commits | filter: { branch: group.branch } | limitTo:4" data-status="{{ commit.status }}">
|
<a class="pure-u-1 pure-u-md-1-4 pure-u-lg-1-4 pure-u-xl-1-4 card card" ng-href="/{{ repo | fullPath }}/{{ commit.branch }}/{{ commit.sha }}" ng-repeat="commit in commits | filter: { branch: group.branch } | limitTo:4" data-status="{{ commit.status }}">
|
||||||
|
@ -49,4 +49,19 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section ng-show="(commits | filter: !{ pull_request: '' }).length">
|
||||||
|
<div class="pure-g cards">
|
||||||
|
<h2 class="pure-u-1" style="font-size:22px;margin-bottom:20px;"><i class="fa fa-code-fork"></i> Pull Requests</h2>
|
||||||
|
<a class="pure-u-1 pure-u-md-1-4 pure-u-lg-1-4 pure-u-xl-1-4 card card" ng-href="/{{ repo | fullPath }}/{{ commit.branch }}/{{ commit.sha }}" ng-repeat="commit in commits | filter: { pull_request: '' } | limitTo:4" data-status="{{ commit.status }}">
|
||||||
|
<div class="l-box">
|
||||||
|
<h2>{{ commit.message }}</h2>
|
||||||
|
<em ng-if="commit.finished_at != 0">{{ commit.author }}<br/>{{ commit.finished_at | fromNow }}</em>
|
||||||
|
<em ng-if="commit.finished_at == 0 && commit.started_at != 0">{{ commit.author }}<br/>Started {{ commit.started_at | fromNow }}</em>
|
||||||
|
<em ng-if="commit.finished_at == 0 && commit.started_at == 0">{{ commit.author }}<br/>Created {{ commit.created_at}}</em>
|
||||||
|
<img ng-src="{{ commit.gravatar | gravatar }}" />
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</article>
|
</article>
|
Loading…
Reference in a new issue