Move inventory to new repo

This commit is contained in:
2023-06-16 13:52:49 +03:00
commit 2b8820d4d7
25 changed files with 1903 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
{% include "inventory_filter.html" %}
<table>
<thead>
<tr>
<th>Slug</th>
<th>Public</th>
<th>Name</th>
<th>Type</th>
<th>Owner</th>
<th>User</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td>
{% if item.shortener %}
<a href="http://k6.ee/{{ item.shortener.slug }}">{{ item.shortener.slug }}</a>
{% endif %}
</td>
<td>{% if item.inventory.public %}<i class="material-icons">check_circle</i>{% else %}&nbsp;{% endif %}</td>
<td><a href="/m/inventory/{{ item._id }}/view">{{ item | format_name }} {{ item.comment }}</a></td>
<td>{{ item.type }}</td>
<td>{{ item | owner_link}}</td>
<td>{{ item | user_link}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>
<a class="waves-effect waves-light btn" href="/m/inventory/add">Add item</a>
</p>
</div>
{% endblock %}