Skip to content

Commit

Permalink
Only display description if it is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Mar 8, 2023
1 parent 0afb0ca commit 0a0ab03
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/donations/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ <h2 class="text-center">{% trans "Diamond - $10,000+ per year πŸ’žβœ¨" %}</h2>
<div class="row">
<div class="col-md-9">
<a href="{{ sponsor.website_url }}" target="_blank"><h4>{{ sponsor.company_name }}</h4></a>
{% if sponsor.description %}
<p>{{ sponsor.description| safe }}</p>
{% endif %}
</div>
<div class="col-md-3">
<a href="{{ sponsor.website_url }}" target="_blank"><img src="{{ sponsor.logo.url }}" alt="{{ sponsor.company_name }}"></a>
Expand All @@ -40,7 +42,9 @@ <h2 class="text-center">{% trans "Platinum - $5,000+ per year πŸ’βœ¨" %}</h2>
<div class="row">
<div class="col-md-9">
<a href="{{ sponsor.website_url }}" target="_blank"><h4>{{ sponsor.company_name }}</h4></a>
{% if sponsor.description %}
<p>{{ sponsor.description| safe }}</p>
{% endif %}
</div>
<div class="col-md-3">
<a href="{{ sponsor.website_url }}" target="_blank"><img src="{{ sponsor.logo.url }}" alt="{{ sponsor.company_name }}"></a>
Expand All @@ -56,7 +60,9 @@ <h2 class="text-center">{% trans "Gold - $2,500+ per year πŸ’–βœ¨" %}</h2>
<div class="row">
<div class="col-md-9">
<a href="{{ sponsor.website_url }}" target="_blank"><h4>{{ sponsor.company_name }}</h4></a>
{% if sponsor.description %}
<p>{{ sponsor.description| safe }}</p>
{% endif %}
</div>
<div class="col-md-3">
<a href="{{ sponsor.website_url }}" target="_blank"><img src="{{ sponsor.logo.url }}" alt="{{ sponsor.company_name }}"></a>
Expand All @@ -72,7 +78,9 @@ <h2 class="text-center">{% trans "Silver - $1,000+ per year πŸ’—βœ¨" %}</h2>
<div class="row">
<div class="col-md-9">
<a href="{{ sponsor.website_url }}" target="_blank"><h4>{{ sponsor.company_name }}</h4></a>
{% if sponsor.description %}
<p>{{ sponsor.description| safe }}</p>
{% endif %}
</div>
<div class="col-md-3">
<a href="{{ sponsor.website_url }}" target="_blank"><img src="{{ sponsor.logo.url }}" alt="{{ sponsor.company_name }}"></a>
Expand All @@ -92,7 +100,9 @@ <h2 class="text-center">{% trans "Silver - $1,000+ per year πŸ’—βœ¨" %}</h2>
<div class="row">
<div class="col-md-9">
<a href="{{ sponsor.website_url }}" target="_blank"><h4>{{ sponsor.company_name }}</h4></a>
{% if sponsor.description %}
<p>{{ sponsor.description| safe }}</p>
{% endif %}
</div>
<div class="col-md-3">
<a href="{{ sponsor.website_url }}" target="_blank"><img src="{{ sponsor.logo.url }}" alt="{{ sponsor.company_name }}"></a>
Expand Down

0 comments on commit 0a0ab03

Please sign in to comment.