mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48:16 -06:00
14731 detal page
This commit is contained in:
parent
6953c5e759
commit
af601c53a9
@ -668,7 +668,8 @@ def get_local_plugins(plugins):
|
|||||||
plugins[plugin_config.name] = {
|
plugins[plugin_config.name] = {
|
||||||
'slug': plugin_config.name,
|
'slug': plugin_config.name,
|
||||||
'name': plugin_config.verbose_name,
|
'name': plugin_config.verbose_name,
|
||||||
'description': plugin_config.description,
|
'tag_line': plugin_config.description,
|
||||||
|
'description_short': None,
|
||||||
'author': plugin_config.author or _('Unknown Author'),
|
'author': plugin_config.author or _('Unknown Author'),
|
||||||
'version': plugin_config.version,
|
'version': plugin_config.version,
|
||||||
'icon': None,
|
'icon': None,
|
||||||
@ -702,12 +703,14 @@ def get_catalog_plugins(plugins):
|
|||||||
if data['config_name'] in plugins:
|
if data['config_name'] in plugins:
|
||||||
plugins[data['config_name']]['is_local'] = False
|
plugins[data['config_name']]['is_local'] = False
|
||||||
plugins[data['config_name']]['is_certified'] = data['release_latest']['is_certified']
|
plugins[data['config_name']]['is_certified'] = data['release_latest']['is_certified']
|
||||||
|
plugins[data['config_name']]['description_short'] = data['description_short']
|
||||||
else:
|
else:
|
||||||
plugins[data['config_name']] = {
|
plugins[data['config_name']] = {
|
||||||
'slug': data['config_name'],
|
'slug': data['config_name'],
|
||||||
'name': data['title_short'],
|
'name': data['title_short'],
|
||||||
'title_long': data['title_long'],
|
'title_long': data['title_long'],
|
||||||
'description': data['description_short'],
|
'tag_line': data['tag_line'],
|
||||||
|
'description_short': data['description_short'],
|
||||||
'author': data['author']['name'] or _('Unknown Author'),
|
'author': data['author']['name'] or _('Unknown Author'),
|
||||||
'version': 'x',
|
'version': 'x',
|
||||||
'icon': None,
|
'icon': None,
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
{% block subtitle %}
|
{% block subtitle %}
|
||||||
<div class="text-secondary fs-5">
|
<div class="text-secondary fs-5">
|
||||||
{{ plugin.description }}
|
{{ plugin.tag_line }}
|
||||||
</div>
|
</div>
|
||||||
{% endblock subtitle %}
|
{% endblock subtitle %}
|
||||||
|
|
||||||
@ -26,21 +26,36 @@ From
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class="nav-link active" role="tab">
|
<a class="nav-link active" id="overview-tab" data-bs-toggle="tab" data-bs-target="#overview" type="button" role="tab" aria-controls="edit-form" aria-selected="true">
|
||||||
{% trans "Overview" %}
|
{% trans "Overview" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class="nav-link" role="tab">
|
<button class="nav-link" id="version-history-tab" data-bs-toggle="tab" data-bs-target="#version-history" type="button" role="tab" aria-controls="object-list" aria-selected="false">
|
||||||
{% trans "Version history" %}
|
{% trans "Version history" %}
|
||||||
</a>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class="nav-link" role="tab">
|
<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" %}
|
||||||
</a>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% endblock tabs %}
|
{% endblock tabs %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
{# Component creation form #}
|
||||||
|
<div class="tab-pane show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
|
||||||
|
{{ plugin.description_short }}
|
||||||
|
</div>
|
||||||
|
<div class="tab-pane" id="version-history" role="tabpanel" aria-labelledby="version-history-tab">
|
||||||
|
y
|
||||||
|
</div>
|
||||||
|
<div class="tab-pane" id="install" role="tabpanel" aria-labelledby="install-tab">
|
||||||
|
z
|
||||||
|
</div>
|
||||||
|
{% endblock content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user