Skip to content

Commit 0228a8b

Browse files
committed
Merge branch 'staging' of github.com:amosproj/amos-ss2021-is-project-linter into staging
2 parents fe32732 + 8c580ce commit 0228a8b

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

frontend/src/app/app.component.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,23 @@
4141
<mat-tab-group mat-align-tabs="center" color="accent">
4242
<mat-tab label="Repositories">
4343
<mat-card>
44-
<mat-card-title>Filter Repositories nach:</mat-card-title>
45-
<mat-card-content style="background-color:white; height: 100px;">
44+
<mat-card-title>Sortiere Projekte nach:<mat-icon matTooltip="Bitte wählen Sie mindestens eine Kategorie und ein Sortierkriterium" style=" padding-left: 10px;" color="primary">
45+
info
46+
</mat-icon></mat-card-title>
47+
<div style="font-size: large;">Kategorie:</div>
48+
<mat-card-content style="background-color:white; height: 100px; padding-left: 3%;">
4649
<mat-chip-list selectable multiple [formControl]="chipsControl">
4750
<mat-chip #chip="matChip" (click)="chip.toggleSelected(true)" *ngFor="let option of getChipOptions()" [value]="option">
4851
<mat-icon *ngIf="chip.selected" color="accent">check</mat-icon>
4952
{{option}}
5053
</mat-chip>
5154
</mat-chip-list>
5255
<br />
53-
<div>Value: {{chipsValue$ | async}}</div>
56+
<!-- <div>Wert: {{chipsValue$ | async}}</div> -->
5457
</mat-card-content>
5558

56-
<mat-card-content style="background-color:white; height: 100px;">
59+
<div style="font-size: large;">Sortierkriterium:</div>
60+
<mat-card-content style="background-color:white; height: 100px; padding-left: 3%;">
5761
<mat-radio-group
5862
aria-labelledby="example-radio-group-label"
5963
class="example-radio-group"
@@ -65,7 +69,7 @@
6569
</mat-card-content>
6670
<!-- kategorie.value == bestandene_tests_pro_kategorie-->
6771
<button mat-raised-button [disabled]=" chipsControl.value.length == 0 || searchCriteria.value.length == 0 "
68-
(click)="sortProjects()" >Filter</button>
72+
(click)="sortProjects()">Sortieren</button>
6973
<mat-icon matTooltip="{{filterInfo}}" style=" padding-left: 10px;" color="primary">
7074
info
7175
</mat-icon>
@@ -113,7 +117,7 @@
113117
<mat-tab label="Statistiken">
114118
<mat-card-content
115119
style="background-color: white; height: 10%; padding-top: 3%; padding-left: 2%; font-size: large; padding-bottom: 2%; border-bottom: 2px solid lightgray">
116-
Datenbank als CSV exportieren: <a download href={{csvExportLink}}>download</a>
120+
Ergebnisse des Crawlers als .csv exportieren: <a mat-raised-button download href={{csvExportLink}} color="primary">Download</a>
117121
</mat-card-content>
118122

119123
<!----Footer of statistics-->

frontend/src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class AppComponent implements OnInit {
3939
'Neue bestandene Tests in den letzten 30 Tagen',
4040
];
4141
chipOptions: string[];
42-
filterInfo = 'Momentan sortierts nach Tag: - und Kategorie: -';
42+
filterInfo = 'Momentan sortiert nach Kategorie: - und Sortierkriterium: -';
4343
toggleToTrue = true;
4444
csvExportLink = environment.baseURL + '/export/csv';
4545

@@ -228,14 +228,14 @@ export class AppComponent implements OnInit {
228228
this.all_projects = this.init_all_projects.slice();
229229

230230
//aktualisiere die Filter Info
231-
this.filterInfo = 'Momentan sortiert nach Tag: ';
231+
this.filterInfo = 'Momentan sortiert nach Kategorie: ';
232232
for (var i = 0; i < this.chipsControl.value.length; i++) {
233233
this.filterInfo += this.chipsControl.value[i];
234234
if (i != this.chipsControl.value.length - 1) {
235235
this.filterInfo += ', ';
236236
}
237237
}
238-
this.filterInfo += ' und Kategorie: ' + this.searchCriteria.value;
238+
this.filterInfo += ' und Sortierkriterium: ' + this.searchCriteria.value;
239239

240240
this.removeAllProjectsFromOverview();
241241

0 commit comments

Comments
 (0)