bastienwirtz / homer

A very simple static homepage for your server.
https://homer-demo.netlify.app/
Apache License 2.0
9.36k stars 788 forks source link

Support for badges #812

Open qay21 opened 1 month ago

qay21 commented 1 month ago

Hey there,

Some of my services are able to provide SVG badges following https://shields.io/ format. I was wondering if there is any way for each card to display one/several such badges using URLs ? I expect the answer to be around the concept of custom services, but none of the provided ones seems to support such a feature.

By the way, thanks for this dead-simple app, this is really useful :)

the-kaustubh commented 1 month ago

I'd like to work on this @bastienwirtz

bastienwirtz commented 1 month ago

Hi @qay21,

Thanks for the feedback, I'm glad it can be useful ! How would you like the badge to be displayed ? in the indicator area ? (top right)

@the-kaustubh Sure! There is an old PR for that: https://github.com/bastienwirtz/homer/pull/356, maybe we could try to revive it first, you can comment and add your idea on it if you want ? Do you have a specific idea in mind ?

qay21 commented 4 weeks ago

Hard to tell : in my specific case, the badge is indeed an indicator of availability, but badges are overall used for a wide variety of things. I don't want to bother with a feature request that is too specific. Having a more general-purpose badge-ready custom service seems more suitable, but the exact expected UI is something I don't really have an opinion on.

Maybe a line of badges under the title and description of the service would be flexible enough ?