mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 20:12:42 -06:00
- Extract script list content into reusable partial template - Add object-list CSS class for proper embedded table styling - Hide module headers and management actions in widget context - Use compact buttons with icon-only labels for widgets - Add test coverage for embedded parameter handling The embedded version now renders cleanly in dashboard widgets while preserving full functionality in the main script list page.
24 lines
549 B
HTML
24 lines
549 B
HTML
{% extends 'generic/_base.html' %}
|
|
{% load buttons %}
|
|
{% load helpers %}
|
|
{% load perms %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Scripts" %}{% endblock %}
|
|
|
|
{% block tabs %}
|
|
<ul class="nav nav-tabs">
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link active" role="tab">{% trans "Scripts" %}</a>
|
|
</li>
|
|
</ul>
|
|
{% endblock tabs %}
|
|
|
|
{% block controls %}
|
|
{% add_button model %}
|
|
{% endblock controls %}
|
|
|
|
{% block content %}
|
|
{% include 'extras/inc/script_list_content.html' with embedded=False %}
|
|
{% endblock content %}
|