mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 05:32:08 +00:00
Merge pull request #140 from CPPAlliance/fix-image-url-template
🐛 Check for image before accessing image.url
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<div class="space-y-3">
|
||||
{% for author in library.authors.all %}
|
||||
<div>
|
||||
{% if author.image.url %}
|
||||
{% if author.image %}
|
||||
<img src="{{ author.image.url }}" alt="user" class="inline mr-2 rounded w-[47px]" />
|
||||
{% else %}
|
||||
<i class="mr-2 text-5xl fas fa-user text-white/60"></i>
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="space-y-3">
|
||||
{% for author in object.authors.all %}
|
||||
<div>
|
||||
{% if author.image.url %}
|
||||
{% if author.image %}
|
||||
<img src="{{ author.image.url }}" alt="user" class="inline mr-2 rounded w-[47px]" />
|
||||
{% else %}
|
||||
<i class="mr-2 text-5xl fas fa-user text-white/60"></i>
|
||||
@@ -98,7 +98,7 @@
|
||||
<div class="space-y-3">
|
||||
{% for maintainer in object.maintainers.all %}
|
||||
<div>
|
||||
{% if maintainer.image.url %}
|
||||
{% if maintainer.image %}
|
||||
<img src="{{ maintainer.image.url }}" alt="user" class="inline mr-2 rounded w-[47px]" />
|
||||
{% else %}
|
||||
<i class="mr-2 text-5xl fas fa-user text-white/60"></i>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% block subnav %}
|
||||
<div class="py-3 px-4 md:px-0 flex border-b border-slate md:border-0 items-center">
|
||||
<div>
|
||||
{% if user.image.url %}
|
||||
{% if user.image %}
|
||||
<img src="{{ user.image.url }}" alt="user" class="inline w-[80px] rounded-lg" />
|
||||
{% else %}
|
||||
<i class="fas fa-user text-5xl mr-2 text-white/60"></i>
|
||||
|
||||
Reference in New Issue
Block a user