Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
testcenter-frontend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
discontinued
testcenter-frontend
Commits
fb7eda91
Commit
fb7eda91
authored
4 years ago
by
paf
Browse files
Options
Downloads
Patches
Plain Diff
optimize template names etc.
parent
deb66709
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/group-monitor/test-view/test-view.component.html
+10
-12
10 additions, 12 deletions
src/app/group-monitor/test-view/test-view.component.html
with
10 additions
and
12 deletions
src/app/group-monitor/test-view/test-view.component.html
+
10
−
12
View file @
fb7eda91
...
@@ -56,17 +56,17 @@
...
@@ -56,17 +56,17 @@
[ngSwitch]=
"displayOptions.view"
[ngSwitch]=
"displayOptions.view"
>
>
<div
class=
"units full"
*ngSwitchCase=
"'full'"
>
<div
class=
"units full"
*ngSwitchCase=
"'full'"
>
<ng-container
*ngTemplateOutlet=
"testlet
Template
; context: {$implicit: testlet}"
>
<ng-container
*ngTemplateOutlet=
"testlet
Full
; context: {$implicit: testlet}"
>
</ng-container>
</ng-container>
</div>
</div>
<div
class=
"units medium"
*ngSwitchCase=
"'medium'"
>
<div
class=
"units medium"
*ngSwitchCase=
"'medium'"
>
<ng-container
*ngTemplateOutlet=
"booklet
Template
Medium; context: {$implicit: testlet}"
>
<ng-container
*ngTemplateOutlet=
"bookletMedium; context: {$implicit: testlet}"
>
</ng-container>
</ng-container>
</div>
</div>
<div
class=
"units small"
*ngSwitchCase=
"'small'"
>
<div
class=
"units small"
*ngSwitchCase=
"'small'"
>
<ng-container
*ngTemplateOutlet=
"
testletB
ookletSmall; context: {$implicit: testlet}"
>
<ng-container
*ngTemplateOutlet=
"
b
ookletSmall; context: {$implicit: testlet}"
>
</ng-container>
</ng-container>
</div>
</div>
</div>
</div>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
<ng-template
#featuredUnit
>
<ng-template
#featuredUnit
>
<div
class=
"featured-unit"
*ngIf=
"(featuredUnit$| async) as unitContext
; else: noFeaturedUnit
"
>
<div
class=
"featured-unit"
*ngIf=
"(featuredUnit$| async) as unitContext"
>
<h1>
{{unitContext.parent.label || 'Aktueller Abschnitt'}}
</h1>
<h1>
{{unitContext.parent.label || 'Aktueller Abschnitt'}}
</h1>
...
@@ -128,11 +128,9 @@
...
@@ -128,11 +128,9 @@
</ng-template>
</ng-template>
<ng-template
#noFeaturedUnit
>
</ng-template>
<ng-template
#testlet
Template
let-testlet
>
<ng-template
#testlet
Full
let-testlet
>
<span
*ngIf=
"testlet.restrictions && testlet.restrictions.codeToEnter as codeToEnter"
<span
*ngIf=
"testlet.restrictions && testlet.restrictions.codeToEnter as codeToEnter"
class=
"unit restriction"
class=
"unit restriction"
...
@@ -160,7 +158,7 @@
...
@@ -160,7 +158,7 @@
</span>
</span>
<span
*ngSwitchCase=
"'testlet'"
class=
"testlet"
matTooltip=
"{{testletOrUnit.label}}"
>
<span
*ngSwitchCase=
"'testlet'"
class=
"testlet"
matTooltip=
"{{testletOrUnit.label}}"
>
<ng-container
*ngTemplateOutlet=
"testlet
Template
; context: {$implicit: testletOrUnit}"
></ng-container>
<ng-container
*ngTemplateOutlet=
"testlet
Full
; context: {$implicit: testletOrUnit}"
></ng-container>
</span>
</span>
</ng-container>
</ng-container>
...
@@ -168,7 +166,7 @@
...
@@ -168,7 +166,7 @@
</ng-template>
</ng-template>
<ng-template
#booklet
Template
Medium
let-testlet
>
<ng-template
#bookletMedium
let-testlet
>
<ng-container
*ngIf=
"featuredUnit$ | async as featuredUnit; else: nonFeaturedTestlet"
>
<ng-container
*ngIf=
"featuredUnit$ | async as featuredUnit; else: nonFeaturedTestlet"
>
<ng-container
*ngTemplateOutlet=
"testletTemplateMedium; context: {testlet: testlet, featuredUnit: featuredUnit}"
>
<ng-container
*ngTemplateOutlet=
"testletTemplateMedium; context: {testlet: testlet, featuredUnit: featuredUnit}"
>
...
@@ -213,10 +211,10 @@
...
@@ -213,10 +211,10 @@
</ng-template>
</ng-template>
<ng-template
#
testletB
ookletSmall
let-testlet
>
<ng-template
#
b
ookletSmall
let-testlet
>
<span
<span
class=
"testlet"
*ngIf=
"featuredUnit$ | async as featuredUnit; else:
no
nFeaturedTestlet"
class=
"testlet"
*ngIf=
"featuredUnit$ | async as featuredUnit; else:
u
nFeaturedTestlet"
matTooltip=
"{{featuredUnit.parent.label}}"
matTooltip=
"{{featuredUnit.parent.label}}"
>
>
<span
<span
...
@@ -228,7 +226,7 @@
...
@@ -228,7 +226,7 @@
</span>
</span>
</span>
</span>
<ng-template
#
no
nFeaturedTestlet
>
<ng-template
#
u
nFeaturedTestlet
>
<span
class=
"testlet"
>
<span
class=
"testlet"
>
<span
class=
"unit aggregated"
>
{{testlet.descendantCount}}
</span>
<span
class=
"unit aggregated"
>
{{testlet.descendantCount}}
</span>
</span>
</span>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment