2014-07-11 20:46:04 +00:00
|
|
|
<div class="toast" ng-if="msg != undefined">
|
|
|
|
<span>commit </span>
|
2014-07-23 19:39:50 +00:00
|
|
|
<a ng-href="/{{ msg.repo | fullPath }}/{{ msg.commit.branch }}/{{ msg.commit.sha }}">{{ msg.commit.sha | shortHash }}</a>
|
2014-07-11 20:46:04 +00:00
|
|
|
<span ng-if="msg.commit.status == 'Started'">is running</span>
|
|
|
|
<span ng-if="msg.commit.status == 'Success'">finished successfully</span>
|
|
|
|
<span ng-if="msg.commit.status == 'Failure'">finished with errors</span>
|
|
|
|
<button ng-click="reload()">Reload</button>
|
|
|
|
</div>
|
|
|
|
|
2014-07-09 07:46:15 +00:00
|
|
|
<article id="repopage">
|
|
|
|
<nav>
|
2014-07-13 22:23:33 +00:00
|
|
|
<div class="options" ng-if="repo.role.admin">
|
2014-07-23 19:39:50 +00:00
|
|
|
<a class="pure-button pure-button-primary" ng-href="/{{ repo | fullPath }}/settings">
|
2014-08-04 06:11:30 +00:00
|
|
|
<i class="fa fa-sliders"></i>
|
|
|
|
<span>Settings</span>
|
2014-07-09 18:46:46 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2014-07-09 07:46:15 +00:00
|
|
|
<a href="/"><span class="fa fa-th"></span></a>
|
|
|
|
<span>{{ repo.owner }}</span>
|
|
|
|
<span>/</span>
|
2014-07-23 19:39:50 +00:00
|
|
|
<a ng-href="/{{ repo | fullPath}}">{{ repo.name }}</a>
|
2014-07-09 07:46:15 +00:00
|
|
|
</nav>
|
2014-06-21 21:22:38 +00:00
|
|
|
|
2014-07-11 05:29:45 +00:00
|
|
|
<section ng-if="repo.active == false" class="inactive">
|
|
|
|
<h1>This will be your commit stream</h1>
|
|
|
|
<p>Activate this repository to start testing your commits</p>
|
|
|
|
<div><i class="fa fa-long-arrow-down"></i></div>
|
2014-10-05 22:30:50 +00:00
|
|
|
<button ng-click="activate()" class="pure-button pure-button-primary ladda-button expand-right" data-loading="{{ activating }}" ng-model="button" ng-disabled="activating">Activate Now</button>
|
2014-07-11 05:29:45 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section ng-if="repo.active == true && commits != undefined && commits.length == 0" class="nobuilds">
|
|
|
|
<h1>This will be your commit stream</h1>
|
2014-10-13 04:52:55 +00:00
|
|
|
<p>Add a .drone.yml file and make a commit to trigger a build</p>
|
2014-07-11 05:29:45 +00:00
|
|
|
<div><i class="fa fa-file-code-o"></i></div>
|
|
|
|
</section>
|
2014-06-21 21:22:38 +00:00
|
|
|
|
2014-08-18 03:33:14 +00:00
|
|
|
<section ng-repeat="group in commits | filter: { pull_request: '' } | unique: 'branch'">
|
2014-07-09 07:46:15 +00:00
|
|
|
<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>
|
2015-01-12 14:09:55 +00:00
|
|
|
<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 }:true | limitTo:4" data-status="{{ commit.status }}">
|
2014-07-09 07:46:15 +00:00
|
|
|
<div class="l-box">
|
|
|
|
<h2>{{ commit.message }}</h2>
|
2014-08-12 06:29:06 +00:00
|
|
|
<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>
|
2014-07-09 07:46:15 +00:00
|
|
|
<img ng-src="{{ commit.gravatar | gravatar }}" />
|
|
|
|
</div>
|
2014-06-21 21:22:38 +00:00
|
|
|
</a>
|
2014-07-09 07:46:15 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2014-08-18 03:33:14 +00:00
|
|
|
|
2014-08-18 06:26:29 +00:00
|
|
|
<section ng-if="(commits | pullRequests).length!=0">
|
2014-08-18 03:33:14 +00:00
|
|
|
<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>
|
2014-08-18 06:26:29 +00:00
|
|
|
<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 | pullRequests | limitTo:4" data-status="{{ commit.status }}">
|
2014-08-18 03:33:14 +00:00
|
|
|
<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>
|
2014-07-09 07:46:15 +00:00
|
|
|
</article>
|