Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Capirca policy html templates. #280

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 %}