* avatar added to commit-tracker to replace signum
This commit is contained in:
parent
e0bb003e94
commit
625f3f46ea
@ -33,6 +33,19 @@
|
|||||||
#db2828 55%);
|
#db2828 55%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui.jira-avatar.image {
|
||||||
|
width: 45px;
|
||||||
|
height: auto;
|
||||||
|
/*font-size: 1em;*/
|
||||||
|
margin-right: 4px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.jira-avatar.image > img {
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@keyframes label-progress-active {
|
@keyframes label-progress-active {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
|||||||
@ -13,7 +13,11 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let commit of commits">
|
<tr *ngFor="let commit of commits">
|
||||||
<td class="collapsing">{{commit.owner}}</td>
|
<td class="collapsing">
|
||||||
|
<div class="ui jira-avatar image">
|
||||||
|
<img src="{{avatarUrl(commit.owner)}}" [title]="commit.owner">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td class="collapsing">{{commit.gerrit_time}}</td>
|
<td class="collapsing">{{commit.gerrit_time}}</td>
|
||||||
<td>{{commit.gerrit_change_subject}}</td>
|
<td>{{commit.gerrit_change_subject}}</td>
|
||||||
<td class="collapsing">{{commit.gerrit_project}}</td>
|
<td class="collapsing">{{commit.gerrit_project}}</td>
|
||||||
|
|||||||
@ -11,8 +11,10 @@ import { Commit } from '../../shared/commit';
|
|||||||
import { CommitStatus } from '../../shared/commit-status.enum';
|
import { CommitStatus } from '../../shared/commit-status.enum';
|
||||||
import { Result } from '../../shared/result.enum';
|
import { Result } from '../../shared/result.enum';
|
||||||
import { Build } from '../../shared/build';
|
import { Build } from '../../shared/build';
|
||||||
|
import { environment } from '../../../environments/environment';
|
||||||
|
|
||||||
const TIMER_COMMITTRACKER_REFRESH = 10000;
|
const TIMER_COMMITTRACKER_REFRESH = 10000;
|
||||||
|
const DEFAULT_AVATAR = '/assets/riddler.png';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-commit-tracker',
|
selector: 'app-commit-tracker',
|
||||||
@ -140,4 +142,8 @@ export class CommitTrackerComponent implements OnInit, OnDestroy {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public avatarUrl(signum: string): string {
|
||||||
|
return environment.apiUrl + (signum ? `/avatars/${signum}` : DEFAULT_AVATAR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,6 +51,13 @@ const routes: Routes = [
|
|||||||
data: {
|
data: {
|
||||||
autoSwitchable: true
|
autoSwitchable: true
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
path: 'commit-tracker-fixed',
|
||||||
|
component: CommitTrackerComponent,
|
||||||
|
// canActivate: [AuthGuardService, RoleGuardService],
|
||||||
|
resolve: {
|
||||||
|
commits: CommitTrackerService,
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
path: 'kanban',
|
path: 'kanban',
|
||||||
component: KanbanBoardComponent,
|
component: KanbanBoardComponent,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user