Tweaks to timeless mode
This commit is contained in:
parent
310f042772
commit
383c07becd
2
amd/build/report-viewer-components.min.js
vendored
2
amd/build/report-viewer-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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) }}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user