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

Skip to content
Snippets Groups Projects
Commit d9bef5c9 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Merge branch 'ui_improvements_to_resolve_272_276_277' into 'development'

Ui improvements to resolve 272 276 277

See merge request sharing/codeability-sharing-platform!102
parents 8f4683d7 b1784a42
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
<!-- modal rating--> <!-- modal rating-->
<div *ngIf="exercise.rating" class="positionRating"> <div *ngIf="exercise.rating" class="positionRating">
<div style="float: left"> <div [ngbTooltip]="helpForRating" style="float: left">
<p class="card-text" jhiTranslate="exercise.details.rating"></p> <p class="card-text" jhiTranslate="exercise.details.accuracy"></p>
</div> </div>
<div class="star-container"> <div class="star-container">
<span <span
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
> >
</span> </span>
</div> </div>
<ng-template #helpForRating> {{ 'exercise.details.rating' | translate }} </ng-template>
</div> </div>
<!-- modal rating end--> <!-- modal rating end-->
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,7 @@
<div *ngIf="exercise.views" class="positionRating"> <div *ngIf="exercise.views" class="positionRating">
<div style="float: left"> <div style="float: left">
<div> <div [ngbTooltip]="helpForViews">
<fa-icon icon="eye"></fa-icon> <fa-icon icon="eye"></fa-icon>
</div> </div>
</div> </div>
...@@ -109,11 +110,12 @@ ...@@ -109,11 +110,12 @@
{{ exercise.views }} {{ exercise.views }}
</span> </span>
</div> </div>
<ng-template #helpForViews> {{ 'exercise.details.views' | translate }}</ng-template>
</div> </div>
<!-- modal views end--> <!-- modal views end-->
<div *ngIf="exercise.downloads >= 0" class="positionRating"> <div *ngIf="exercise.downloads >= 0" class="positionRating">
<div style="float: left"> <div [ngbTooltip]="helpForDownloads" style="float: left">
<fa-icon icon="download"></fa-icon> <fa-icon icon="download"></fa-icon>
</div> </div>
<div class="star-container"> <div class="star-container">
...@@ -121,11 +123,12 @@ ...@@ -121,11 +123,12 @@
{{ exercise.downloads }} {{ exercise.downloads }}
</span> </span>
</div> </div>
<ng-template #helpForDownloads> {{ 'exercise.details.downloads' | translate }}</ng-template>
</div> </div>
<!-- modal views end--> <!-- modal views end-->
<div *ngIf="exercise.numberOfWatchlistEntries >= 0" class="positionRating"> <div *ngIf="exercise.numberOfWatchlistEntries >= 0" class="positionRating">
<div style="float: left"> <div [ngbTooltip]="helpForWatchlists" style="float: left">
<fa-icon icon="star"></fa-icon> <fa-icon icon="star"></fa-icon>
</div> </div>
<div class="star-container"> <div class="star-container">
...@@ -133,6 +136,7 @@ ...@@ -133,6 +136,7 @@
{{ exercise.numberOfWatchlistEntries }} {{ exercise.numberOfWatchlistEntries }}
</span> </span>
</div> </div>
<ng-template #helpForWatchlists> {{ 'exercise.details.watchlists' | translate }}</ng-template>
</div> </div>
<!-- modal bookmark--> <!-- modal bookmark-->
...@@ -155,7 +159,7 @@ ...@@ -155,7 +159,7 @@
<!-- modal bookmark end--> <!-- modal bookmark end-->
<div *ngIf="exercise.originalResult.file.parentId" style="float: left; width: 100%; padding-top: 15px; margin-bottom: 25px"> <div *ngIf="exercise.originalResult.file.parentId" style="float: left; width: 100%; padding-top: 15px; margin-bottom: 25px">
<ng-template #helpToParent data-container="body"> {{ 'exercise.help.toParent' | translate }}</ng-template> <ng-template #helpToParent data-container="body"> {{ 'exercise.help.toParent' | translate }} </ng-template>
<fa-icon <fa-icon
style="padding: 5px 0px 0px 5px; float: left" style="padding: 5px 0px 0px 5px; float: left"
[ngbTooltip]="helpToParent" [ngbTooltip]="helpToParent"
...@@ -200,49 +204,41 @@ ...@@ -200,49 +204,41 @@
<div class="col-12"> <div class="col-12">
<p style="text-align: left; margin-top: 20px"><strong jhiTranslate="exercise.export.export"></strong></p> <p style="text-align: left; margin-top: 20px"><strong jhiTranslate="exercise.export.export"></strong></p>
<hr /> <hr />
<table> </div>
<tr> <div class="col-6">
<td> <span>
<a <a
class="btn btn-outline-secondary" class="btn btn-outline-secondary"
role="button" role="button"
aria-pressed="true" aria-pressed="true"
style="float: left; margin-right: 5px; margin-top: 5px" style="float: left; margin-right: 5px; margin-top: 5px"
(click)="download()" (click)="download()"
jhiTranslate="exercise.export.download" jhiTranslate="exercise.export.download"
></a> ></a>
</td> <label style="padding-top: 10px" for="withChildren">
<td style="vertical-align: middle"> {{ 'exercise.details.withChildren' | translate }}
<input <input type="checkbox" [hidden]="false" [(ngModel)]="downloadWithChildren" id="withChildren" />
type="checkbox" </label>
[checked]="downloadWithChildren" </span>
(change)="toggleWithChildren()" </div>
value="" <a
value="" *ngFor="let action of exercise.originalResult.supportedActions"
id="withChildren" class="btn btn-outline-secondary positionAction col-6"
/> role="button"
<label class="form-check-label" for="withChildren" jhiTranslate="exercise.details.withChildren"></label> aria-pressed="true"
</td> (click)="startAction(action, exercise)"
</tr> >{{ action.commandName }}</a
</table> >
<a <div class="col-6" placement="bottom">
*ngFor="let action of exercise.originalResult.supportedActions" <span [ngbTooltip]="helpComingSoon">
class="btn btn-outline-secondary positionAction"
role="button"
aria-pressed="true"
(click)="startAction(action, exercise)"
>{{ action.commandName }}</a
>
<div [ngbTooltip]="helpComingSoon" placement="bottom">
<button <button
*ngIf="hasChildren()" *ngIf="hasChildren()"
type="button" type="button"
class="btn btn-outline-secondary positionAction" class="btn btn-outline-secondary positionAction"
jhiTranslate="exercise.export.latex" jhiTranslate="exercise.export.latex"
title="{{ 'exercise.comingSoon' | translate }}"
disabled disabled
></button> ></button>
</div> </span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -73,3 +73,7 @@ ...@@ -73,3 +73,7 @@
margin-right: 5px; margin-right: 5px;
margin-top: 5px; margin-top: 5px;
} }
#myModal {
overflow-y: scroll;
}
...@@ -3,15 +3,17 @@ ...@@ -3,15 +3,17 @@
"comingSoon": "demnächst verfügbar :-)", "comingSoon": "demnächst verfügbar :-)",
"details": { "details": {
"details": "Details", "details": "Details",
"rating": "Trefferqualität", "accuracy": "Trefferübereinstimmung",
"rating": "Diese Metrik zeigt wie gut die Suchanfrage mit den gefundenen Treffern übereinstimmt.",
"bookmark": "Merken", "bookmark": "Merken",
"withChildren": "mit Unteraufgaben", "withChildren": "mit Unteraufgaben",
"hitDetails": "Suchergebnis Details", "hitDetails": "Suchergebnis Details",
"allExercises": "Alle Aufgaben für diesen Kurs anzeigen", "allExercises": "Alle Aufgaben für diesen Kurs anzeigen",
"git": "In GitLab öffnen", "git": "In GitLab öffnen",
"editOEResource": "In OEResource bearbeiten", "editOEResource": "In OEResource bearbeiten",
"views": "Anzahl der Aufrufe", "views": "Anzahl der Aufrufe!",
"downloads": "Anzahl der Downloads", "downloads": "Anzahl der Downloads!",
"watchlists": "Anzahl der Merklisten, in welchen diese Resource vorkommt!",
"readmeNotFound": "# Keine README.md Datei (oder Alternative) gefunden!", "readmeNotFound": "# Keine README.md Datei (oder Alternative) gefunden!",
"toParent": "zum übergeordneten Objekt", "toParent": "zum übergeordneten Objekt",
"like": "Wenn Ihnen diese Aufgabe gefällt, dann klicken Sie auf das Herz!", "like": "Wenn Ihnen diese Aufgabe gefällt, dann klicken Sie auf das Herz!",
......
...@@ -3,15 +3,17 @@ ...@@ -3,15 +3,17 @@
"comingSoon": "coming soon", "comingSoon": "coming soon",
"details": { "details": {
"details": "Details", "details": "Details",
"rating": "Hit quality", "accuracy": "Search accuracy",
"rating": "This metric shows how well the search term overlaps with the found resources!",
"bookmark": "Bookmark", "bookmark": "Bookmark",
"withChildren": "with children", "withChildren": "with children",
"hitDetails": "Show hit details", "hitDetails": "Show hit details",
"allExercises": "Show all exercises for this course", "allExercises": "Show all exercises for this course",
"git": "Open in GitLab", "git": "Open in GitLab",
"editOEResource": "Edit in OEResource", "editOEResource": "Edit in OEResource",
"views": "Number of views", "views": "Number of views!",
"downloads": "Number of downloads", "downloads": "Number of downloads!",
"watchlists": "Number of times this resource was saved in a watchlist!",
"readmeNotFound": "# No README.md (or alternatives) found!", "readmeNotFound": "# No README.md (or alternatives) found!",
"toParent": "to parent object", "toParent": "to parent object",
"like": "If you like this exercise, you can click here!", "like": "If you like this exercise, you can click here!",
......
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