Skip to content

Commit

Permalink
feat: showing winner with check mark
Browse files Browse the repository at this point in the history
  • Loading branch information
kdinev committed Dec 13, 2024
1 parent bd49b81 commit 2244674
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ <h4 i18n>Participants</h4>
</igx-avatar>
<span [class]="cell.row.data.player1Points > cell.row.data.player2Points ? 'highlight grid-team-name color-success' : 'grid-team-name'">
{{ cell.row.data.player1.username }}
@if (cell.row.data.player1Points > cell.row.data.player2Points) {
<igx-icon i18n-title title="Winner">check</igx-icon>
}
</span>

<span class="grid-vs-divider">vs.</span>
Expand All @@ -114,6 +117,9 @@ <h4 i18n>Participants</h4>
</igx-avatar>
<span [class]="cell.row.data.player2Points > cell.row.data.player1Points ? 'highlight grid-team-name color-success' : 'grid-team-name'">
{{ cell.row.data.player2.username }}
@if (cell.row.data.player2Points > cell.row.data.player1Points) {
<igx-icon i18n-title title="Winner">check</igx-icon>
}
</span>
</div>
</igx-column>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
height: 20px;
}

.grid-team-name {
display: flex;
width: 120px;
align-items: center;
}

// @media only screen and (min-width: 1921px) {
// .group-columns {
// display: grid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
import { BaseDirective } from '../../base/base.component';
import { Title, Meta } from '@angular/platform-browser';
import { ActivatedRoute, RouterLink } from '@angular/router';
import { TournamentParticipant, TournamentGroup, TournamentSC2Match, Tournament, ApiTournamentsService, Sc2MapNamePipe, CountrySVGPipe } from '../../../../../common/src/public_api';
import { TournamentParticipant, TournamentGroup, TournamentSC2Match, Tournament, ApiTournamentsService, CountrySVGPipe } from '../../../../../common/src/public_api';
import { AsyncPipe, DatePipe } from '@angular/common';
import { IGX_CARD_DIRECTIVES, IgxCircularProgressBarComponent, IgxAvatarComponent, IgxDividerDirective, IGX_GRID_DIRECTIVES, IgxIconComponent, IgxButtonDirective, IGroupingExpression, SortingDirection, DefaultSortingStrategy } from '@infragistics/igniteui-angular';
import { Observable } from 'rxjs';
Expand All @@ -21,7 +21,6 @@ import { Observable } from 'rxjs';
IGX_GRID_DIRECTIVES,
IgxIconComponent,
IgxButtonDirective,
Sc2MapNamePipe,
CountrySVGPipe,
AsyncPipe
],
Expand Down
12 changes: 12 additions & 0 deletions projects/bellumgens/src/locale/messages.bg.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,18 @@
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="3787050687842841344" datatype="html">
<source>Winner</source>
<target>Победител</target>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">106</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">121</context>
</context-group>
</trans-unit>
<trans-unit id="6549265851868599441" datatype="html">
<source>Video</source>
<target>Видео</target>
Expand Down
19 changes: 15 additions & 4 deletions projects/bellumgens/src/locale/messages.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -341,26 +341,37 @@
<context context-type="linenumber">95</context>
</context-group>
</trans-unit>
<trans-unit id="3787050687842841344" datatype="html">
<source>Winner</source>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">106</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">121</context>
</context-group>
</trans-unit>
<trans-unit id="6549265851868599441" datatype="html">
<source>Video</source>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">121</context>
<context context-type="linenumber">127</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">126,127</context>
<context context-type="linenumber">132,133</context>
</context-group>
</trans-unit>
<trans-unit id="1225203534534338921" datatype="html">
<source>Replay</source>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">132</context>
<context context-type="linenumber">138</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">projects/bellumgens/src/app/events/bge-balkan/bge-balkan.component.html</context>
<context context-type="linenumber">137,138</context>
<context context-type="linenumber">143,144</context>
</context-group>
</trans-unit>
<trans-unit id="3952441805588898781" datatype="html">
Expand Down

0 comments on commit 2244674

Please sign in to comment.