avo
avo copied to clipboard
Made it possible to customise the placeholder image
Description
Makes it possible to replace the avocado image used for placeholders with a custom image.
Fixes #1243
Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works
Manual review steps
- Set the
placeholdervalue in the branding config with the path to an image - Create a new resource that has a grid but don't set a cover image
- Check that the new placeholder image is used
- Remove the placeholder value from the branding and restart
- Confirm that the placeholder changes back to an avocado.
Manual reviewer: please leave a comment with output from the test if that's the case.
Code Climate has analyzed commit 78b706d6 and detected 0 issues on this pull request.
View more on Code Climate.
I pushed some changes to make it work with our current assets. I keep the avocado.svg asset because we use it somewhere else in the app.
Thanks for your contribution!