Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Merge requests
!363
Resolve "Add absence overview page"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add absence overview page"
264-add-absence-overview-page
into
master
Overview
3
Commits
41
Pipelines
27
Changes
3
Merged
Hangzhi Yu
requested to merge
264-add-absence-overview-page
into
master
9 months ago
Overview
3
Commits
41
Pipelines
27
Changes
3
Expand
Closes
#264 (closed)
0
0
Merge request reports
Viewing commit
dc851092
Show latest version
3 files
+
31
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
dc851092
Create better stats in LessonNotes
· dc851092
Julian
authored
9 months ago
aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonNotes.vue
+
28
−
25
Options
<
script
setup
>
import
AbsenceReasonChip
from
"
aleksis.apps.kolego/components/AbsenceReasonChip.vue
"
;
</
script
>
<
template
>
<div
class=
"d-flex align-center justify-space-between justify-md-end flex-wrap gap"
>
<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->
<v-chip
dense
color=
"success"
>
<v-chip
small
dense
class=
"mr-2"
color=
"green darken-3 white--text"
>
{{
documentation
.
participations
.
length
}}
</v-chip>
Schüler
</v-chip>
<v-chip
dense
color=
"warning"
>
<v-chip
small
dense
class=
"mr-2"
color=
"orange darken-3 white--text"
>
3
</v-chip
>
entschuldigt
<v-chip
dense
color=
"success"
outlined
v-if=
"total > 0"
>
{{
$t
(
"
alsijil.coursebook.present_number
"
,
{
present
,
total
}
)
}}
<
/v-chip
>
<v-chip
dense
color=
"error"
>
<v-chip
small
dense
class=
"mr-2"
color=
"red darken-3 white--text"
>
1
</v-chip
>
unentschuldigt
</v-chip>
<v-chip
dense
color=
"grey lighten-1"
>
<v-chip
small
dense
class=
"mr-2"
color=
"grey darken-1 white--text"
>
4
</v-chip
>
Hausaufgaben vergessen
</v-chip>
<!-- eslint-enable @intlify/vue-i18n/no-raw-text -->
<
absence
-
reason
-
chip
v
-
for
=
"
participation in absences
"
:
absence
-
reason
=
"
participation.absenceReason
"
dense
>
<
template
#prepend
>
{{
participation
.
person
.
fullName
}}
:
<
/template
>
<
/absence-reason-chip
>
<
manage
-
students
-
trigger
v
-
bind
=
"
documentationPartProps
"
/>
<
/div
>
<
/template
>
@@ -40,6 +31,18 @@ export default {
name
:
"
LessonNotes
"
,
components
:
{
ManageStudentsTrigger
}
,
mixins
:
[
documentationPartMixin
],
computed
:
{
total
()
{
return
this
.
documentation
.
participations
.
length
;
}
,
present
()
{
return
this
.
documentation
.
participations
.
filter
(
p
=>
p
.
absenceReason
===
null
).
length
;
}
,
absences
()
{
// Get all course attendants who have an absence reason
return
this
.
documentation
.
participations
.
filter
(
p
=>
p
.
absenceReason
!==
null
);
}
,
}
,
}
;
<
/script
>
Loading