This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 241ea378 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Improve styling of exercise metadata

parent e9856554
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
<div *ngIf="value && value.length > 0" class="row">
<div *ngIf="value && value.length > 0"
class="row exercise-metadata-item">
<ng-container *ngIf="isArray(value)">
<div *ngIf="value.length === 1"
class="col-4">
class="col-5 exercise-metadata-item-description">
{{description + '.singular' | translate }}
</div>
<div *ngIf="value.length > 1"
class="col-4">
class="col-5 exercise-metadata-item-description">
{{description + '.plural' | translate }}
</div>
<div *ngIf="treatAsHTML" class="col-8" [innerHTML]="arrayToString(value)"></div>
<div *ngIf="!treatAsHTML" class="col-8">{{arrayToString(value)}}</div>
<div *ngIf="treatAsHTML"
class="col-7 exercise-metadata-item-value"
[innerHTML]="arrayToString(value)">
</div>
<div *ngIf="!treatAsHTML"
class="col-7 exercise-metadata-item-value">
{{arrayToString(value)}}
</div>
</ng-container>
<ng-container *ngIf="!isArray(value)">
<div jhiTranslate="{{description}}"
class="col-4"></div>
<div class="col-8">{{value}}</div>
class="col-5 exercise-metadata-item-description"></div>
<div class="col-7 exercise-metadata-item-value">{{value}}</div>
</ng-container>
</div>
.exercise-metadata-item {
padding: 0px;
}
.exercise-metadata-item-description {
display: flex;
align-items: center;
padding: 3px;
}
.exercise-metadata-item-value {
padding: 3px;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment