OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/modules/github_integration/frontend/module/pull-request/pull-request.template.html

43 lines
1.4 KiB

<div class='op-pr-pull-request'>
<div class='op-pr-title'
[textContent]="pullRequest.title">
</div>
<img alt='PR author avatar'
class='op-avatar'
[src]="pullRequest.githubUser.avatarUrl"
*ngIf="pullRequest.githubUser"
/>
<span class='op-pr-user'>
<a [href]="pullRequest.githubUser.htmlUrl"
[textContent]="pullRequest.githubUser.login"
*ngIf="pullRequest.githubUser"
>
</a>
</span>
<span class='op-pr-date'>
{{ text.label_updated_on }}
<op-date-time [dateTimeValue]="pullRequest.githubUpdatedAt"></op-date-time>
</span>
<span class='op-pr-state' [ngClass]="'op-pr-state_' + state">{{state}}</span>
<a class='op-pr-link' [href]="pullRequest.htmlUrl" [textContent]="pullRequest.repository + '#' + pullRequest.number"></a>
<ul [attr.aria-label]="text.label_actions" class='op-pr-checks' *ngIf="pullRequest.checkRuns?.length">
<li class='op-pr-check' *ngFor="let checkRun of pullRequest.checkRuns">
<span class='op-pr-check-avatar'><img alt='app owner avatar' [src]="checkRun.appOwnerAvatarUrl" /></span>
<span class='op-pr-check-name' [textContent]="checkRun.name"></span>
<span class='op-pr-check-state' [textContent]="checkRunState(checkRun)"></span>
<div class='op-pr-check-details'>
<a [href]="checkRun.detailsUrl">
{{ text.label_details }}
</a>
</div>
</li>
</ul>
</div>