mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
Update logic for determining whether to display plugin installation instructions
This commit is contained in:
parent
2d8732f807
commit
3faf6dfbac
@ -686,5 +686,4 @@ class PluginView(UserPassesTestMixin, View):
|
|||||||
return render(request, 'core/plugin.html', {
|
return render(request, 'core/plugin.html', {
|
||||||
'plugin': plugin,
|
'plugin': plugin,
|
||||||
'table': table,
|
'table': table,
|
||||||
'show_install': settings.RELEASE.edition == 'Community'
|
|
||||||
})
|
})
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{% trans "Version history" %}
|
{% trans "Version history" %}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{% if show_install %}
|
{% if 'commercial' not in settings.RELEASE.features %}
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button class="nav-link" id="install-tab" data-bs-toggle="tab" data-bs-target="#install" type="button" role="tab" aria-controls="object-list" aria-selected="false">
|
<button class="nav-link" id="install-tab" data-bs-toggle="tab" data-bs-target="#install" type="button" role="tab" aria-controls="object-list" aria-selected="false">
|
||||||
{% trans "Install" %}
|
{% trans "Install" %}
|
||||||
@ -83,7 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if show_install %}
|
{% if 'commercial' not in settings.RELEASE.features %}
|
||||||
<div class="tab-pane" id="install" role="tabpanel" aria-labelledby="install-tab">
|
<div class="tab-pane" id="install" role="tabpanel" aria-labelledby="install-tab">
|
||||||
<p>You can install this plugin from the command line with PyPi.</p>
|
<p>You can install this plugin from the command line with PyPi.</p>
|
||||||
<p>The following commands may be helpful; always refer to <a href="{{ plugin.homepage_url }}" target="_blank">the plugin's own documentation <i class="mdi mdi-launch"></i></a> and the <a href="https://netboxlabs.com/docs/netbox/en/stable/plugins/installation/" target="_blank">Installing a Plugin unit <i class="mdi mdi-launch"></i></a> of the NetBox documentation.</p>
|
<p>The following commands may be helpful; always refer to <a href="{{ plugin.homepage_url }}" target="_blank">the plugin's own documentation <i class="mdi mdi-launch"></i></a> and the <a href="https://netboxlabs.com/docs/netbox/en/stable/plugins/installation/" target="_blank">Installing a Plugin unit <i class="mdi mdi-launch"></i></a> of the NetBox documentation.</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user