Clickable commit information
This commit is contained in:
parent
73d2f5c1ca
commit
9473db2b38
2 changed files with 24 additions and 2 deletions
|
@ -1216,7 +1216,15 @@ nav {
|
|||
dd {font-size:14px; padding:3px 0 20px;}
|
||||
a {text-transform:none;}
|
||||
small {font-size:12px;}
|
||||
.large {font-size:18px; padding-bottom:5px;}
|
||||
.large {
|
||||
font-size:18px;
|
||||
padding-bottom:5px;
|
||||
|
||||
a {
|
||||
color: #212121;
|
||||
}
|
||||
|
||||
}
|
||||
.time {float:right; margin-left:8px;}
|
||||
.photo {margin-right:4px;}
|
||||
.negative {color:@cfailure;}
|
||||
|
|
|
@ -11,7 +11,21 @@
|
|||
</dl>
|
||||
|
||||
<dl>
|
||||
<dd class="large"><strong>commit <u>{{ commit.sha | shortHash}}</u> to <u>{{ commit.branch}}</u> branch</strong></dd>
|
||||
<dd class="large" ng-if="repo.remote == 'gitlab.com' || repo.remote == 'github.com' || repo.remote == 'enterprise.github.com' ">
|
||||
<strong>
|
||||
commit
|
||||
<a href="http://{{ repo.host }}/{{ repo.owner }}/{{ repo.name }}/commit/{{ commit.sha }}" >{{ commit.sha | shortHash}}</a>
|
||||
to <a href="http://{{ repo.host }}/{{ repo.owner }}/{{ repo.name }}/tree/{{ commit.branch }}">{{ commit.branch }}</a> branch
|
||||
</strong>
|
||||
</dd>
|
||||
<dd class="large" ng-if="repo.remote == 'bitbucket.org' ">
|
||||
commit
|
||||
<a href="http://{{ repo.host }}/{{ repo.owner }}/{{ repo.name }}/commits/{{ commit.sha }}" >{{ commit.sha | shortHash}}</a>
|
||||
to <a href="http://{{ repo.host }}/{{ repo.owner }}/{{ repo.name }}/src/?at={{ commit.branch }}">{{ commit.branch }}</a> branch
|
||||
</dd>
|
||||
<dd class="large" ng-if="repo.remote != 'gitlab.com' && repo.remote != 'github.com' && repo.remote != 'enterprise.github.com' && repo.remote != 'bitbucket.org' ">
|
||||
<strong>commit <u>{{ commit.sha | shortHash}}</u> to <u>{{ commit.branch }}</u> branch</strong>
|
||||
</dd>
|
||||
<dd ng-if="commit.finished_at != 0">{{ commit.finished_at | fromNow }}</dd>
|
||||
<dd ng-if="commit.finished_at == 0 && commit.started_at != 0">Started {{ commit.started_at | fromNow }}</dd>
|
||||
<dd ng-if="commit.finished_at == 0 && commit.started_at == 0">Created {{ commit.created_at}}</dd>
|
||||
|
|
Loading…
Reference in a new issue