Skip to content

Commit

Permalink
add repository link
Browse files Browse the repository at this point in the history
  • Loading branch information
Serghei Paduret committed Jul 6, 2021
1 parent 6482e67 commit c738245
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container" *ngIf="pullRequest" data-id="{{pullRequest.id}}">
<div class="content">
<div class="data">
<span class="self-url" (click)="navigateTo(selfUrl)">
<span class="self-url url" (click)="navigateTo(selfUrl)">
<app-user class="user" *ngIf="showAuthorAvatar" [user]="pullRequest.author.user" [size]="14"></app-user>
<span class="title" [ngClass]="{'conflicts': hasConflicts, 'approved': approved}">{{pullRequest.title}}</span>
</span>
Expand All @@ -17,6 +17,8 @@

<span title="created date">{{pullRequest.createdDate | date}}</span>

<span class="to-ref url" (click)="navigateTo(pullRequest.fromRef.repository.links.self[0].href)">{{pullRequest.fromRef.repository.name}}</span>

<span class="to-ref" title="destination branch">{{pullRequest.toRef.displayId}}</span>

<span class="comments" *ngIf="commentsCount" title="{{commentsCount}} comment(s)">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
@import "src/variables";

.url {
cursor: pointer;

&:hover {
text-decoration: underline;
}
}

.container {
padding: $pr-control-distance 3px;
border-top: 1px solid $border-color;
Expand Down Expand Up @@ -28,7 +36,6 @@
white-space: nowrap;
margin-bottom: $pr-control-distance;
overflow-x: hidden;
cursor: pointer;

.user {
margin-right: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
data-id="{{id}}"
class="content icon icon-alarm"
[class.snoozed]="snoozed"
[title]="(snoozed ? 'un-snooze' : 'snooze') + ' notifications'"
[title]="(snoozed ? 'enable' : 'snooze') + ' notifications'"
(click)="onSnoozeToggle()">
</i>

0 comments on commit c738245

Please sign in to comment.