Skip to content

Commit

Permalink
Add commented out default for providers without services
Browse files Browse the repository at this point in the history
So we can see how they look when developing the directory
  • Loading branch information
mrchrisadams committed Jul 25, 2023
1 parent d3ec530 commit 7c5b2ac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/theme/templates/greencheck/directory_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ <h4 class="mb-4 font-bold text-xl" id="{{ obj.id }}">{{ obj.name }}</h4>
{% if obj.description %}
{{ obj.description }}
{% else %}
If we had a description it would go here. So we need some graceful fallback copy to replace this.
<small>If we had a description it would go here. So we need some graceful fallback copy to replace this.</small>
{% endif %}
<ul class="mb-4">
{% if obj.services.names %}
{% for service in obj.services.all %}<li class="service-label inline-block">{{ service.name }}</li>{% endfor %}
{% comment %}
Every host in our directory used to at least offer shared hosting.
Below is a placeholder to see how it would look with live data.
{% else %}
<li class="service-label inline-block">Computed: Shared Hosting for Websites</li>
{% endcomment %}
{% endif %}
</ul>
</p>
Expand All @@ -45,7 +51,9 @@ <h4 class="mb-4 font-bold text-xl" id="{{ obj.id }}">{{ obj.name }}</h4>
{% for evidence in obj.public_supporting_evidence %}
<li class="m-3">
<a class="py-2"href="{{ evidence.link }}">{{ evidence.title }}</a>
<div class="description py-2">{{ evidence.description|linebreaks }}</div>
<div class="description py-2">
<small>{{ evidence.description|linebreaks }}</small>
</div>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 7c5b2ac

Please sign in to comment.