public: quick refactor
This commit is contained in:
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h6>Please <a href="/login">log in</a> to see more details</h6>
|
|
||||||
{% include "inventory_filter.html" %}
|
{% include "inventory_filter.html" %}
|
||||||
|
|
||||||
|
<p><a class="waves-effect waves-light btn" href="/login?redirect_url={{ redirect_url }}">Log in</a> to see more items</p>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Slug</th>
|
<th>Slug</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>In use</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -24,10 +24,11 @@
|
|||||||
</td>
|
</td>
|
||||||
<td><a href="/m/inventory/{{ item._id }}/view">{{ item | format_name }} {{ item.comment }}</a></td>
|
<td><a href="/m/inventory/{{ item._id }}/view">{{ item | format_name }} {{ item.comment }}</a></td>
|
||||||
<td>{{ item.type }}</td>
|
<td>{{ item.type }}</td>
|
||||||
<td>{% if item.inventory.user %}<i class="material-icons">check_circle</i>{% endif %}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<p><a class="waves-effect waves-light btn" href="/login?redirect_url={{ redirect_url }}">Log in</a> to see more items</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h6>Please <a href="/login?redirect_url={{ redirect_url }}">log in</a> to see more details</h6>
|
<title>{% if item.get("shortener").slug %}/{{ item.get("shortener").slug }}{% else %}k6{% endif %}: {{ item.name }}</title>
|
||||||
<p>Inventory item.</p>
|
|
||||||
|
<p><a class="waves-effect waves-light btn" href="/login?redirect_url={{ redirect_url }}">Log in</a> to see more details</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@@ -12,12 +13,17 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Type</td>
|
<td>Sticker</td>
|
||||||
<td>{{ item["type"] }}</td>
|
<td>
|
||||||
|
{% if item.get("shortener").slug %}
|
||||||
|
{{ item.get("shortener", {}).get("slug") | qr_code }}
|
||||||
|
<a href="http://k6.ee/{{ item.get("shortener").slug }}">
|
||||||
|
k6.ee/{{ item.get("shortener").slug }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Vendor</td>
|
<td>Vendor</td>
|
||||||
<td>{{ item.get("hardware").vendor }}</td>
|
<td>{{ item.get("hardware").vendor }}</td>
|
||||||
@@ -32,30 +38,14 @@
|
|||||||
<td>Name</td>
|
<td>Name</td>
|
||||||
<td>{{ item.name }}</td>
|
<td>{{ item.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>Sticker</td>
|
|
||||||
<td>
|
|
||||||
{% if item.get("shortener").slug %}
|
|
||||||
<a href="http://k6.ee/{{ item.get("shortener").slug }}">
|
|
||||||
k6.ee/{{ item.get("shortener").slug }}
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td class="tooltip" data-tooltip="Unauthenticated user can see this in public list">In use</td>
|
|
||||||
<td>{% if item.inventory.user %}<i class="material-icons">check_circle</i>{% endif %}</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<p><a class="waves-effect waves-light btn" href="/login?redirect_url={{ redirect_url }}">Log in</a> to see more details</p>
|
||||||
|
|
||||||
<h3>Photo</h3>
|
<h3>Photo</h3>
|
||||||
{% if item.has_photo %}
|
{% if item.has_photo %}
|
||||||
<img src="{{ photo_url }}" alt="" style="max-width: 800px; width: 100%;">
|
<img src="{{ photo_url }}" alt="" style="max-width: 800px; width: 100%;">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user