Skip to content

Commit

Permalink
announcements: remove systematic S3 existence check
Browse files Browse the repository at this point in the history
It is quite costly for a limited impact
  • Loading branch information
xavfernandez committed Feb 5, 2025
1 parent 396852d commit b285bae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
3 changes: 1 addition & 2 deletions itou/templates/announcements/news.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "layout/base.html" %}
{% load file_access %}
{% load theme_inclusion %}

{% block title %}Nouveautés {{ block.super }}{% endblock %}
Expand Down Expand Up @@ -33,7 +32,7 @@
{% for news_item in month_news.items.all %}
<div class="row mb-3">
<div class="col-12 col-md-4{% if news_item.image %} mb-3{% else %} d-none d-md-inline{% endif %}">
{% if news_item.image|can_open_file %}
{% if news_item.image %}
<img src="{{ news_item.image.url }}"
alt="{{ news_item.image_alt_text }}"
{% if not news_item.image_alt_text %}aria-hidden="true"{% endif %}
Expand Down
17 changes: 0 additions & 17 deletions itou/utils/templatetags/file_access.py

This file was deleted.

0 comments on commit b285bae

Please sign in to comment.