Add a custom Jinja filter `image_url` to `app.py` to correctly resolve image paths from object storage or local static files, and update all relevant templates (members, sponsors, competitions, contributors) to use this new filter instead of the `url_for('static', filename=...)` function, ensuring images are displayed correctly regardless of their storage location.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cd9a7d26-a4e5-4215-975c-c59f4ed1f06d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a02b1418-2e19-496d-9921-3a4afe97ac0d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d0a1d46d-d203-4308-bc6a-312ac7c0243b/cd9a7d26-a4e5-4215-975c-c59f4ed1f06d/05bPjFc
31 lines
998 B
HTML
31 lines
998 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Technical Turbulence - Sponsors{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="sponsors">
|
|
<br>
|
|
<h1 class="heading" id="spon"><span class="emoji sponsors">Sponsors</span></h1>
|
|
<hr>
|
|
<p class="info">❤️ companies of various sizes sponsor our initiatives. ❤️</p>
|
|
<div class="team-info">
|
|
<div class="content-container">
|
|
<div class="sponsors-container">
|
|
<div class="card-container">
|
|
{% for sponsor in sponsors %}
|
|
<a href="{{ sponsor.website_url }}" target="_blank" class="card-sponsors">
|
|
<div class="card-content-sponsors">
|
|
<img src="{{ sponsor.logo_path|image_url }}" alt="{{ sponsor.name }}">
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|