25 lines
1018 B
HTML
25 lines
1018 B
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 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></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|