Skip to content

Commit

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

* Add base setting for place holder service

(cherry picked from commit 6eb6656)

Co-authored-by: Walter Lorenzetti <[email protected]>
  • Loading branch information
github-actions[bot] and wlorenzetti authored Feb 3, 2025
1 parent 6f490b3 commit 155e0db
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 @@ -405,4 +405,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 155e0db

Please sign in to comment.