Skip to content

Commit

Permalink
Add content template help link to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonbox committed Sep 23, 2024
1 parent 28c7f10 commit 2fa6934
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/SettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SettingsTab extends PluginSettingTab {

containerEl.empty();

containerEl.createEl('h3', { text: 'Authentication' });
new Setting(containerEl).setName('Authentication').setHeading();

new Setting(containerEl)
.setName('Strava Client ID')
Expand Down Expand Up @@ -87,7 +87,7 @@ export class SettingsTab extends PluginSettingTab {
containerEl.find(".strava-sync-authenticate > .setting-item-control ").prepend(el);
}

containerEl.createEl('h3', { text: 'Sync' });
new Setting(containerEl).setName('Sync').setHeading();

new Setting(containerEl)
.setName('Folder')
Expand Down Expand Up @@ -192,7 +192,7 @@ export class SettingsTab extends PluginSettingTab {
}
}));

containerEl.createEl('h3', { text: 'Activity' });
new Setting(containerEl).setName('Activity').setHeading();

new Setting(containerEl)
.setName('Properties / Front matter')
Expand Down Expand Up @@ -244,7 +244,19 @@ export class SettingsTab extends PluginSettingTab {

new Setting(containerEl)
.setName('Activity template')
.setDesc("Enter template to render activities with")
.setDesc(
createFragment((fragment) => {
fragment.append(
'Enter template to render activities with.',
fragment.createEl('br'),
fragment.createEl('br'),
fragment.createEl('a', {
text: 'More information',
href: 'https://github.com/watsonbox/obsidian-strava-sync?tab=readme-ov-file#content',
})
)
}),
)
.addExtraButton((button) => {
// Add a button to reset template
button
Expand Down

0 comments on commit 2fa6934

Please sign in to comment.