Add unlisted visibility level
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-01-20 22:46:35 +02:00
parent 225ee04ca7
commit 464abb8732
5 changed files with 25 additions and 17 deletions

View File

@@ -16,7 +16,7 @@
<thead>
<tr>
<th>Slug</th>
<th>Public</th>
<th>Visibility</th>
<th>Name</th>
<th>Type</th>
<th>Location</th>
@@ -38,7 +38,7 @@
<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>{{ item.inventory.visibility }}</td>
<td><a href="/m/inventory/{{ item._id }}/view">{{ item | format_name }} {{ item.comment }}</a></td>
<td>{{ item.type }}</td>
<td>{{ item.location }}</td>

View File

@@ -97,6 +97,11 @@
<td>{{ form.location }}</td>
</tr>
<tr>
<td>Visibility</td>
<td>{{ form.inventory.visibility }}</td>
</tr>
</tbody>
</table>
@@ -107,13 +112,6 @@
</label>
</p>
<p>
<label>
{{ form.inventory.public }}
<span>Public, show this inventory item for unauthenticated users</span>
</label>
</p>
<h5>Tags</h5>
<div class="placeholder-dark chips">
<input style="width: auto !important;">

View File

@@ -125,8 +125,8 @@
</tr>
<tr>
<td class="tooltip" data-tooltip="Unauthenticated user can see this in public list">Public</td>
<td>{% if item.inventory.public %}<i class="material-icons">check_circle</i>{% endif %}</td>
<td class="tooltip" data-tooltip="Who can see the item">Visibility</td>
<td>{{ item.inventory.visibility }}</td>
</tr>
<tr>