Skip to content

Commit

Permalink
(forum): display image as banner in card in list of subforums
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed May 21, 2024
1 parent 4ca83a2 commit 7095204
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lacommunaute/templates/forum/forum_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ <h3 class="h3 mb-0">
<p class="h3 lh-base">
<i class="ri-newspaper-line font-weight-normal"></i> {{ node.obj.name }}
</p>
{% if node.obj.image %}
<td>
<div class="d-none d-md-block forum-image mt-3 mb-3">
<img src="{{ node.obj.image.url }}" alt="{{ node.obj.name }}" class="rounded img-fluid" />
</div>
</td>
{% endif %}
{% if node.obj.short_description %}<div>{{ node.obj.short_description }}</div>{% endif %}
</div>
<div class="card-footer text-end">
Expand Down

0 comments on commit 7095204

Please sign in to comment.