mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make package info conditional
This commit is contained in:
parent
41954fd2d6
commit
99c3bc5529
@ -48,12 +48,15 @@
|
||||
{% endif %}
|
||||
</table>
|
||||
|
||||
{% if plugin.is_package==False %}
|
||||
<p>{% trans 'The code information is pulled from the latest git commit for this plugin. It might not reflect official version numbers or information but the actual code running.' %}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h4>{% trans "Package information" %}</h4>
|
||||
<table class='table table-striped table-condensed'>
|
||||
<col width='25'>
|
||||
{% if plugin.is_package==False %}
|
||||
<tr>
|
||||
<td><span class='fas fa-user'></span></td>
|
||||
<td>{% trans "Commit Author" %}</td><td>{{ plugin.package.author }} - {{ plugin.package.mail }}{% include "clip.html" %}</td>
|
||||
@ -70,6 +73,11 @@
|
||||
<td><span class='fas fa-envelope'></span></td>
|
||||
<td>{% trans "Commit Message" %}</td><td>{{ plugin.package.message }}{% include "clip.html" %}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td>{% trans "This plugin was installed as a package" %}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td><span class='text-{{plugin.sign_color}} fas fa-check'></span></td>
|
||||
<td>{% trans "Sign Status" %}</td>
|
||||
|
Loading…
Reference in New Issue
Block a user