Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
74d61fd2
There was a problem fetching the latest pipeline status.
Commit
74d61fd2
authored
7 years ago
by
Hagen Dreßler
Browse files
Options
Downloads
Patches
Plain Diff
Fix answer-statistic
parent
b783e7ab
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!93
Resolve "answer statistics (logic)" 2nd
Pipeline
#13604
passed with stage
in 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/answer-statistics/answer-statistics.component.html
+2
-2
2 additions, 2 deletions
src/app/answer-statistics/answer-statistics.component.html
src/app/answer-statistics/answer-statistics.component.ts
+2
-2
2 additions, 2 deletions
src/app/answer-statistics/answer-statistics.component.ts
with
4 additions
and
4 deletions
src/app/answer-statistics/answer-statistics.component.html
+
2
−
2
View file @
74d61fd2
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
<div
align=
"right"
>
Selected: {{ choice.answers }} times
</div>
<div
align=
"right"
>
Selected: {{ choice.answers }} times
</div>
</div>
</div>
<div
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<div
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<button
mat-raised-button
color=
"primary"
(click)=
"showEvaluation(selectedContent.index
-
1)"
>
Before
</button>
<button
mat-raised-button
color=
"primary"
(click)=
"showEvaluation(selectedContent.index
-
1)"
>
Before
</button>
<div><b>
{{ selectedContent.index }} / {{ selectedContent.length }}
</b></div>
<div><b>
{{ selectedContent.index }} / {{ selectedContent.length }}
</b></div>
<button
mat-raised-button
color=
"primary"
(click)=
"showEvaluation(selectedContent.index
+
1)"
>
Next
</button>
<button
mat-raised-button
color=
"primary"
(click)=
"showEvaluation(selectedContent.index
+
1)"
>
Next
</button>
</div>
</div>
</mat-tab>
</mat-tab>
</mat-tab-group>
</mat-tab-group>
...
...
This diff is collapsed.
Click to expand it.
src/app/answer-statistics/answer-statistics.component.ts
+
2
−
2
View file @
74d61fd2
...
@@ -62,7 +62,7 @@ export class AnswerStatisticsComponent implements OnInit {
...
@@ -62,7 +62,7 @@ export class AnswerStatisticsComponent implements OnInit {
}
}
}
}
showStatistic
(
value
)
{
/
**
refactor answer class structure for less code and more abstraction
*/
showStatistic
(
value
)
{
/
/
refactor answer class structure for less code and more abstraction
this
.
statistics
=
[];
this
.
statistics
=
[];
for
(
const
question
of
this
.
content
)
{
for
(
const
question
of
this
.
content
)
{
if
(
value
===
'
1
'
)
{
if
(
value
===
'
1
'
)
{
...
@@ -93,6 +93,6 @@ export class AnswerStatisticsComponent implements OnInit {
...
@@ -93,6 +93,6 @@ export class AnswerStatisticsComponent implements OnInit {
}
}
showEvaluation
(
index
:
number
)
{
showEvaluation
(
index
:
number
)
{
/
**
coming with api connection, logic doesnt make sense without knowledge about api
**/
/
/
coming with api connection, logic doesnt make sense without knowledge about api
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
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