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
Commits
2e511a6c
Commit
2e511a6c
authored
4 months ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Reformat
parent
d4ea461e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!361
Resolve "Add statistics page for absences"
Pipeline
#193747
failed
4 months ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonPage.vue
+78
-73
78 additions, 73 deletions
...ponents/coursebook/statistics/StatisticsForPersonPage.vue
with
78 additions
and
73 deletions
aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonPage.vue
+
78
−
73
View file @
2e511a6c
...
...
@@ -44,81 +44,87 @@
</v-btn>
</
template
>
<
template
#default=
"{ items }"
>
<v-list-item
v-for=
"item in items"
:key=
"item.id"
ripple
>
<v-list-item-content>
<v-list-item-title>
<!-- date & timeslot -->
<time
:datetime=
"item.relatedDocumentation.datetimeStart"
class=
"text-no-wrap"
>
{{
$d
(
$parseISODate
(
item
.
relatedDocumentation
.
datetimeStart
),
"
short
"
,
)
}}
</time>
<v-list>
<v-list-item
v-for=
"item in items"
:key=
"item.id"
ripple
>
<v-list-item-content>
<v-list-item-title>
<!-- date & timeslot -->
<time
:datetime=
"item.relatedDocumentation.datetimeStart"
class=
"text-no-wrap"
>
{{
$d
(
$parseISODate
(
item
.
relatedDocumentation
.
datetimeStart
,
),
"
short
"
,
)
}}
</time>
<time
:datetime=
"item.relatedDocumentation.datetimeStart"
class=
"text-no-wrap"
>
{{
$d
(
$parseISODate
(
item
.
relatedDocumentation
.
datetimeStart
),
"
shortTime
"
,
)
}}
</time>
<span>
-
</span>
<time
:datetime=
"item.relatedDocumentation.datetimeEnd"
class=
"text-no-wrap"
>
{{
$d
(
$parseISODate
(
item
.
relatedDocumentation
.
datetimeEnd
),
"
shortTime
"
,
)
}}
</time>
</v-list-item-title>
<v-list-item-subtitle
class=
"overflow-scroll"
>
<!-- teacher -->
<person-chip
v-for=
"teacher in item.relatedDocumentation.teachers"
:key=
"teacher.id"
:person=
"teacher"
no-link
small
<time
:datetime=
"item.relatedDocumentation.datetimeStart"
class=
"text-no-wrap"
>
{{
$d
(
$parseISODate
(
item
.
relatedDocumentation
.
datetimeStart
,
),
"
shortTime
"
,
)
}}
</time>
<span>
-
</span>
<time
:datetime=
"item.relatedDocumentation.datetimeEnd"
class=
"text-no-wrap"
>
{{
$d
(
$parseISODate
(
item
.
relatedDocumentation
.
datetimeEnd
),
"
shortTime
"
,
)
}}
</time>
</v-list-item-title>
<v-list-item-subtitle
class=
"overflow-scroll"
>
<!-- teacher -->
<person-chip
v-for=
"teacher in item.relatedDocumentation.teachers"
:key=
"teacher.id"
:person=
"teacher"
no-link
small
/>
<!-- group -->
<span>
{{
item
.
groupShortName
}}
</span>
<!-- subject -->
<subject-chip
:subject=
"item.relatedDocumentation.subject"
small
/>
</v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<!-- chips: absences & extraMarks -->
<absence-reason-chip
v-if=
"item.absenceReason"
:absence-reason=
"item.absenceReason"
/>
<!-- group -->
<span>
{{
item
.
groupShortName
}}
</span>
<!-- subject -->
<subject-chip
:subject=
"item.relatedDocumentation.subject"
small
<extra-mark-chip
v-if=
"item.extraMark"
:extra-mark=
"item.extraMark"
/>
</v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<!-- chips: absences & extraMarks -->
<absence-reason-chip
v-if=
"item.absenceReason"
:absenceReason=
"item.absenceReason"
/>
<extra-mark-chip
v-if=
"item.extraMark"
:extra-mark=
"item.extraMark"
/>
<div
v-if=
"item.note"
>
{{
item
.
note
}}
</div>
</v-list-item-action>
</v-list-item>
<div
v-if=
"item.note"
>
{{
item
.
note
}}
</div>
</v-list-item-action>
</v-list-item>
</v-list>
<v-divider></v-divider>
</
template
>
</c-r-u-d-iterator>
...
...
@@ -163,7 +169,6 @@ import {
personalNotesForPerson
,
personName
,
}
from
"
./statistics.graphql
"
;
import
{
DateTime
}
from
"
luxon
"
;
import
ExtraMarkChip
from
"
../../extra_marks/ExtraMarkChip.vue
"
;
const
MODE
=
{
...
...
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