Skip to content

Commit

Permalink
Fix place hold project image (#1031)
Browse files Browse the repository at this point in the history
* Fix place hold project image

* Add base setting for place holder service
  • Loading branch information
wlorenzetti authored Feb 3, 2025
1 parent 8f1a167 commit 6eb6656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion g3w-admin/base/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,7 @@
ACCOUNT_EMAIL_VERIFICATION = 'none'

# For iframe
X_FRAME_OPTIONS = 'SAMEORIGIN'
X_FRAME_OPTIONS = 'SAMEORIGIN'

# Placehold service
PLACEHOLD_SERVICE = 'https://placehold.co/'
2 changes: 1 addition & 1 deletion g3w-admin/qdjango/templates/qdjango/project_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
{% if object.thumbnail %}
<img style="height:60px;" class="img-responsive" src="{{ MEDIA_URL }}{{ object.thumbnail }}" />
{% else %}
<img style="height:60px;" class="img-responsive" src="https://via.placeholder.com/80x60" />
<img style="height:60px;" class="img-responsive" src="{{ SETTINGS.PLACEHOLD_SERVICE }}80x60?text=MAP" />
{% endif %}
</a>
</td>
Expand Down

0 comments on commit 6eb6656

Please sign in to comment.