Moved duration template up top

This commit is contained in:
Vlad Kostyanetsky 2024-05-16 02:01:55 +04:00
parent b440ebba50
commit 83b86bca13
2 changed files with 16 additions and 16 deletions

View file

@ -69,7 +69,7 @@ You can also do it globally via the plugin's settings: take a look at the “Def
### How can I change how the report renders?
By default, the report uses [callouts](https://help.obsidian.md/Editing+and+formatting/Callouts) to show you the report. You can change this via the plugin's settings; there are four templates intended to do it in the “Templates” section.
By default, the report uses [callouts](https://help.obsidian.md/Editing+and+formatting/Callouts) to show you the report. You can change this via the plugin's settings; there are few templates intended to do it in the “Templates” section.
Basically, you can specify the template for header of the whole report, for a task, for a log line, and for the footer. Macros you can use in each one specified directly in the plugin's settings.

View file

@ -88,21 +88,6 @@ export class TimesheetSettingTab extends PluginSettingTab {
new Setting(containerEl).setName("Templates").setHeading();
new Setting(containerEl)
.setName("Header")
.setDesc(
"Macros: {tasksDuration} — total duration of all tasks in a note."
)
.setClass("text-snippets-class")
.addTextArea((text) =>
text
.setValue(this.plugin.settings.templateHeader)
.onChange(async (value) => {
this.plugin.settings.templateHeader = value;
await this.plugin.saveSettings();
})
);
new Setting(containerEl)
.setName("Duration")
.setDesc(
@ -118,6 +103,21 @@ export class TimesheetSettingTab extends PluginSettingTab {
})
);
new Setting(containerEl)
.setName("Header")
.setDesc(
"Macros: {tasksDuration} — total duration of all tasks in a note."
)
.setClass("text-snippets-class")
.addTextArea((text) =>
text
.setValue(this.plugin.settings.templateHeader)
.onChange(async (value) => {
this.plugin.settings.templateHeader = value;
await this.plugin.saveSettings();
})
);
new Setting(containerEl)
.setName("Task")
.setDesc(