Files
classifieds/app/templates/listings/mine.html
T
2026-06-15 17:43:47 -04:00

34 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ _('My listings') }}{% endblock %}
{% block content %}
<div class="card">
<div class="mine-head">
<h2>{{ _('My listings') }}</h2>
<span class="muted">{{ _('Active: %(a)s', a=active) }}{% if cap is not none %} / {{ cap }}{% else %} / ∞{% endif %}</span>
<a class="btn" href="{{ url_for('listings.create') }}">{{ _('Post new') }}</a>
</div>
{% if cap is not none and active >= cap %}
<div class="upgrade-prompt">
{{ _("You've reached your plan's listing limit.") }}
<a href="{{ url_for('payments.pricing') }}">{{ _('Upgrade for more') }}</a>
</div>
{% endif %}
{% if not items %}<p class="muted">{{ _('No listings yet.') }}</p>{% endif %}
<table class="list">
{% for l in items %}
<tr>
<td><a href="{{ url_for('listings.detail', listing_id=l.id) }}">{{ l.title }}</a></td>
<td>{{ l.category.name }}</td>
<td>{{ l.price_display or '—' }}</td>
<td><span class="badge {{ 'ok' if l.is_live else 'warn' }}">{{ l.status.value }}</span></td>
<td>{{ l.view_count }} {{ _('views') }}</td>
<td>
<a href="{{ url_for('listings.edit', listing_id=l.id) }}">{{ _('Edit') }}</a>
· <a href="{{ url_for('payments.boost_listing', listing_id=l.id) }}">{{ _('Boost') }}</a>
</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}