mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
Lots of cleanup
This commit is contained in:
@@ -129,7 +129,7 @@ Context:
|
||||
{% for column in row.columns %}
|
||||
<div class="col">
|
||||
{% for panel in column.panels %}
|
||||
{% render_panel panel %}
|
||||
{% render panel %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
6
netbox/templates/ui/action.html
Normal file
6
netbox/templates/ui/action.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<a href="{{ url }}" class="btn btn-ghost-{{ button_class }} btn-sm">
|
||||
{% if button_icon %}
|
||||
<i class="mdi mdi-{{ button_icon }}" aria-hidden="true"></i>
|
||||
{% endif %}
|
||||
{{ label }}
|
||||
</a>
|
||||
@@ -4,12 +4,7 @@
|
||||
{% if actions %}
|
||||
<div class="card-actions">
|
||||
{% for action in actions %}
|
||||
<a href="{{ action.url }}" class="btn btn-ghost-{{ action.button_class|default:"primary" }} btn-sm">
|
||||
{% if action.button_icon %}
|
||||
<i class="mdi mdi-{{ action.button_icon }}" aria-hidden="true"></i>
|
||||
{% endif %}
|
||||
{{ action.label }}
|
||||
</a>
|
||||
{% render action %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user