Tweaks to timeless mode

This commit is contained in:
PMKuipers 2024-03-10 23:11:54 +01:00
parent 310f042772
commit 383c07becd
4 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -697,7 +697,7 @@ export default {
{{ page.shortname }}
</b-col>
</b-row>
<b-row>
<b-row v-if="!page.timeless">
<b-col cols="4"><b>{{ text.duration}}</b></b-col>
<b-col cols="8">
{{ pageduration(page) }}

View File

@ -359,6 +359,7 @@ class studyplanpage {
"timing" => new \external_value(PARAM_TEXT, '(past|present|future)'),
"studylines" => new \external_multiple_structure(studyline::user_structure()),
"perioddesc" => period::page_structure(),
"timeless" => new \external_value(PARAM_BOOL, 'Page does not include time information'),
], 'Studyplan page with user info', $value);
}
@ -380,6 +381,7 @@ class studyplanpage {
'timing' => $this->timing(),
'studylines' => [],
"perioddesc" => period::page_model($this),
'timeless' => \get_config("local_treestudyplan","timelessperiods"),
];
$children = studyline::find_page_children($this);