mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #353] Custom JS / CSS #273
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alex-phillips on GitHub (Apr 4, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/353
Is there a way to add in custom JS or CSS to a self-hosted instance? I would like to add in a link inline for each watch item that links off to a resource related to each job. I could do this with JS if there was a way to specify some custom code.
I can add this to the description, but having it inline would be great as an icon.
@cuu508 commented on GitHub (Apr 6, 2020):
There isn't an easy way currently.
You can fork the repository, and add light tweaks to the templates and JS files. If you're comfortable patching the page with JS then perhaps this is an option.
Can you describe a little more what you have in mind? Are you thinking of a third icon next to these two that links out to an external resource?
Would the link be derived from check's name or tags?
@alex-phillips commented on GitHub (Apr 6, 2020):
Yes. This is a bit of a unique case, but I have as script that runs and sends healthcheck ping times to influx DB / Grafana for charting jobs and their health over time. It would be nice if I could expose a link to each job's chart without having to view the details screen. These links are derived from the job's name or ID. The description exposes the URL as a clickable link, but I can only view this by clicking through to the details page.
Or if when you click on the job to get the edit window, if the description was rendered out instead of editable initially (click an edit button to turn this into a textarea?) then that would expose the description as well.
@cuu508 commented on GitHub (Apr 30, 2022):
I think forking the repo and editing the template (
templates/front/my_checks_desktop.html) is the way to go here.