Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added footer to detail records #5

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signalk-activecaptain-resources",
"version": "1.1.2",
"version": "1.1.3",
"description": "Provides points of interest from Garmin Active Captain API as SignalK resources",
"main": "plugin/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions plugin/handlebars_utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const UNKNOWN = 'Unknown'
const partialsDir = './node_modules/signalk-activecaptain-resources/plugin/partials/'

handlebars.registerPartial('header', fs.readFileSync(`${partialsDir}/header.hbsp`, 'utf-8'))
handlebars.registerPartial('footer', fs.readFileSync(`${partialsDir}/footer.hbsp`, 'utf-8'))
handlebars.registerPartial('business', fs.readFileSync(`${partialsDir}/business.hbsp`, 'utf-8'))
handlebars.registerPartial('dockage', fs.readFileSync(`${partialsDir}/dockage.hbsp`, 'utf-8'))
handlebars.registerPartial('fuel', fs.readFileSync(`${partialsDir}/fuel.hbsp`, 'utf-8'))
Expand Down
4 changes: 4 additions & 0 deletions plugin/partials/footer.hbsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<hr/>
<sup>Data sourced from <a href="https://activecaptain.garmin.com/">Garmin Active Captain</a> via the <a href="https://github.com/KvotheBloodless/signalk-activecaptain-resources/">signalk-activecaptain-resources plugin</a>.</sup><br/>
<sub>Something missing or room for improvement?</sub><br/>
<sup>You are encouraged to <a href="https://activecaptain.garmin.com/en-US/pois/65363">contribute</a>.</sup><br/>
1 change: 1 addition & 0 deletions plugin/templates/point_of_interest.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
{{#hasFuel}}{{> fuel data.fuel}}{{/hasFuel}}
{{#hasAmenities}}{{> amenities data.amenity}}{{/hasAmenities}}
{{#hasBusiness}}{{> business data.business}}{{/hasBusiness}}
{{> footer}}

Loading