mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
urls overview in plugin settings
This commit is contained in:
parent
1296e631d9
commit
21dee0d459
@ -26,6 +26,25 @@
|
||||
<h4>{% trans "URLs" %}</h4>
|
||||
{% define plugin.base_url as base %}
|
||||
<p>{% blocktrans %}The Base-URL for this plugin is <a href="/{{ base }}"><strong>{{ base }}</strong></a>.{% endblocktrans %}</p>
|
||||
|
||||
<table class='table table-striped table-condensed'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Name" %}</th>
|
||||
<th>{% trans "URL" %}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, entry in plugin.urlpatterns.reverse_dict.items %}{% if key %}
|
||||
<tr>
|
||||
<td>{{key}}</td>
|
||||
<td>{{entry.1}}</td>
|
||||
<td><a href="/{{ base }}{{entry.1}}">{% trans 'open' %}</a></td>
|
||||
</tr>
|
||||
{% endif %}{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user