Fix gravatar hovercards, and add trade_offer image generation with playwright, for use with opengraph tags on trade_offer_detal.html

This commit is contained in:
badblocks 2025-03-20 23:59:22 -07:00
parent 4c0db9f842
commit f3a1366269
16 changed files with 372 additions and 123 deletions

View file

@ -1,13 +1,17 @@
{% extends 'base.html' %}
{% load trade_offer_tags %}
{% block title %}Trade Offer Detail{% endblock title %}
{% block title %}{{title}}{% endblock title %}
{% block content %}
<div class="container mx-auto max-w-2xl mt-6">
<h2 class="text-2xl font-bold">Trade Offer Details</h2>
<div class="flex justify-center mt-10">
{% render_trade_offer object %}
{% if screenshot_mode == "true" %}
{% render_trade_offer object True %}
{% else %}
{% render_trade_offer object %}
{% endif %}
</div>
{% if acceptance_form %}
<div class="w-3/4 mx-auto mt-4">
@ -50,7 +54,7 @@
<a href="{% url 'trade_offer_list' %}" class="btn btn-secondary">Back to Trade Offers</a>
{% if is_initiator %}
<a href="{{ delete_close_url }}" class="btn btn-danger">Delete/Close Trade Offer</a>
{% else %}
{% elif request.user.is_authenticated %}
<button type="submit" class="btn btn-primary">Submit Acceptance</button>
{% endif %}
</form>