Skip to content

Commit

Permalink
Fixed Capirca policy html templates. (#280)
Browse files Browse the repository at this point in the history
* Fixed Capirca policy html templates.

* changelog

* Update nautobot_firewall_models/tables.py

---------

Co-authored-by: Stephen Kiely <[email protected]>
  • Loading branch information
gsnider2195 and smk4664 authored Oct 24, 2024
1 parent 61b34bd commit 1026477
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions changes/280.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed Capirca policy html templates.
2 changes: 1 addition & 1 deletion nautobot_firewall_models/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class CapircaPolicyTable(BaseTable):

pk = ToggleColumn()
device = tables.TemplateColumn(
template_code="""<a href="{% url 'plugins:nautobot_firewall_models:capircapolicy' pk=record.pk %}" <strong>{{ record.device }}</strong></a> """
template_code="""<a href="{% url 'plugins:nautobot_firewall_models:capircapolicy' pk=record.pk %}">{{ record.device }}</a> """
)

class Meta(BaseTable.Meta):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,26 @@
<h1>Capirca - {{ object.device }}</h1>
<div class="panel panel-default" style="padding-bottom: 5px">
<div style="padding-left: 10px">
<div class="panel-heading"><strong>Capirca Configuration</strong>
</div>
<pre>{{ object.cfg }}</pre>
<div class="panel-heading"><strong>Capirca Configuration</strong></div>
<pre>{{ object.cfg }}</pre>
</div>
</div>
<div class="panel panel-default" style="padding-bottom: 5px">
<div style="padding-left: 10px">
<div class="panel-heading"><strong>Capirca Policy</strong>
<div class="panel-heading"><strong>Capirca Policy</strong></div>
<pre>{{ object.pol }}</pre>
</div>
<pre>{{ object.pol }}</pre>
</div>
</div>
<div class="panel panel-default" style="padding-bottom: 5px">
<div style="padding-left: 10px">
<div class="panel-heading"><strong>Capirca Networks</strong>
<div class="panel-heading"><strong>Capirca Networks</strong></div>
<pre>{{ object.net }}</pre>
</div>
<pre>{{ object.net }}</pre>
</div>
</div>
<div class="panel panel-default" style="padding-bottom: 5px">
<div style="padding-left: 10px">
<div class="panel-heading"><strong>Capirca Services</strong>
<div class="panel-heading"><strong>Capirca Services</strong></div>
<pre>{{ object.svc }}</pre>
</div>
<pre>{{ object.svc }}</pre>
</div>
{% endblock %}
{% endblock %}

0 comments on commit 1026477

Please sign in to comment.