DrupalPod icon indicating copy to clipboard operation
DrupalPod copied to clipboard

Open in DrupalPod badge

Open Decipher opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe

As a project maintainer I want to add a "Open in DrupalPod" badge to my project pages

Describe the solution you'd like

  • [ ] Create an official badge to be used by the community
  • [ ] Make a basic website to allow users to craft the Badge and URL for their projects

Describe alternatives you've considered

Add support for Project pages to the DrupalPod browser extension, instead of just Issue pages

Additional context

image

Decipher avatar Sep 30 '21 04:09 Decipher

❤️

shaal avatar Sep 30 '21 04:09 shaal

having a go at it

BrianGilbert avatar Sep 30 '21 05:09 BrianGilbert

Et Voila! OpenInDrupalPod

BrianGilbert avatar Sep 30 '21 07:09 BrianGilbert

Not sure if that's me or my screen, but it looks blurry.

I'd also suggest aligning the Drup-mark with the text, and have the wing outside of the bounds of the button (e.g., more transparency on top).

But that's just my 2c, don't want to get stuck bikeshedding.

Decipher avatar Sep 30 '21 08:09 Decipher

Here is my shot at a generator https://drupalpodbadge.netlify.app Code Repo: https://github.com/NickStees/drupalpodgenerator

I am not sure if you can put a script tag into the Readme.md for this project and it publish to https://shaal.github.io/DrupalPod/ so I just put the logic into that repo I pasted above.

NickStees avatar Jun 13 '22 16:06 NickStees

It would be great if DrupalPod worked on project pages and not just on the issues. I'd love to be able to test out a module with a simple click.

tyler36 avatar Jan 06 '23 01:01 tyler36

I updated my generator to look for a query param so module maintainers could just simply link to https://drupalpodbadge.netlify.app/?project=bg_img_field and have the module prefilled.

So maintainers could just add a button like <a href="https://drupalpodbadge.netlify.app/?project=bg_img_field"><img src="https://drupalpodbadge.netlify.app/badge.png" alt="Open In Drupal Pod" style="max-width: 100%;"></a><div></div> Open In Drupal Pod

I still see however people could choose the 7.x and Drupal 10, so I guess somehow need to have logic so they pair the right module version with the right Drupal version? Not sure how I could accomplish that...

NickStees avatar Jan 06 '23 03:01 NickStees