Skip to content

Commit

Permalink
Remove config conditionals from views
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdub committed Dec 11, 2024
1 parent 8e433e5 commit c05f5fe
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,9 @@ <h1>{% block title %}Configuration Overview{% endblock %}</h1>
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Execute <span class="caret"></span>
</button>
<ul class="dropdown-menu">
{% if compliance %}
<li><a href="{% url 'extras:job_run_by_class_path' class_path='nautobot_golden_config.jobs.ComplianceJob' %}">Compliance</a></li>
{% endif %}
{% if intended %}
<li><a href="{% url 'extras:job_run_by_class_path' class_path='nautobot_golden_config.jobs.IntendedJob' %}">Intended</a></li>
{% endif %}
{% if backup %}
<li><a href="{% url 'extras:job_run_by_class_path' class_path='nautobot_golden_config.jobs.BackupJob' %}">Backup</a></li>
{% endif %}
{% if not compliance and not intended and not backup %}
<li><a href="#" class="disabled">Features are not enabled.</a></li>
{% endif %}
</ul>
</div>
{% endblock %}
Expand Down

0 comments on commit c05f5fe

Please sign in to comment.