mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-15 16:01:33 +00:00
Allow to show recently submitted pages, and create them from the page
This commit is contained in:
parent
e33c13ecfa
commit
91a6a26746
4 changed files with 58 additions and 3 deletions
|
|
@ -33,5 +33,31 @@
|
|||
</div>
|
||||
|
||||
{{ form_row(form.submit) }}
|
||||
|
||||
{% if recentBrowserPages is not empty %}
|
||||
<hr class="{{ offset_label }} mt-4">
|
||||
|
||||
<div class="row mb-1">
|
||||
<label class="col-form-label {{ col_label }}">
|
||||
{% trans %}browser_plugin.recent_pages.title{% endtrans %}
|
||||
</label>
|
||||
<div class="{{ col_input }}">
|
||||
<p class="text-muted small mb-2">{% trans %}browser_plugin.recent_pages.help{% endtrans %}</p>
|
||||
<div class="list-group list-group-numbered">
|
||||
{% for page in recentBrowserPages %}
|
||||
<button type="submit" name="submitted_page_token" value="{{ page.token }}" formnovalidate
|
||||
class="list-group-item d-flex justify-content-between align-items-start text-start">
|
||||
<div class="ms-2 me-auto">
|
||||
<div class="fw-bold">{{ page.title }}</div>
|
||||
<small class="text-muted">{{ page.url }}</small>
|
||||
</div>
|
||||
<span class="badge text-bg-primary rounded-pill">{{ page.submittedAt|format_time("short") }}</span>
|
||||
</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue