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

Images #32

Open
swirlingskirts opened this issue Aug 30, 2018 · 4 comments
Open

Images #32

swirlingskirts opened this issue Aug 30, 2018 · 4 comments

Comments

@swirlingskirts
Copy link

Is there an expected or suggested way to include images to represent the badges? My solution at present is basically

<img src="{{ asset('img/badges/'.str_replace(' ', '_', $achievement->details->name). '.png') }}">

But maybe there's a better way? If so, it seems worth mentioning it in the docs, or maybe including a few different examples of tactics for associating images with your badges. :)

@gabs-simon
Copy link
Contributor

I confess that I haven't thought of that. :o

When I first developed this project, it was scoped entirely for usage on the backend - and frontend usage wasn't a issue at first.

How would you suggest that we should implement this?

@swirlingskirts
Copy link
Author

Good question. If you really just want to stay focused on the back-end handling, it might be worth mentioning in your docs that there is no provided method for handling front-end display - It seemed so obvious to me that I spent a long time looking for how to do it with the package. Once I realized it didn't exist, it wasn't any trouble to design my own.

@JerryWebster
Copy link

It would be great if there were documentation for frontend usage implementation.

@HDVinnie
Copy link

<img src="/img/badges/{{ $a->details->name }}.png" data-toggle="tooltip" title="" height="50px" data-original-title="{{ $a->details->name }}">

thats what I do for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants