diff --git a/nautobot_golden_config/tables.py b/nautobot_golden_config/tables.py index 57adbaaf..a4cc40ab 100644 --- a/nautobot_golden_config/tables.py +++ b/nautobot_golden_config/tables.py @@ -262,24 +262,19 @@ class GoldenConfigTable(BaseTable): text=lambda record: record.device.name, verbose_name="Device", ) - - if ENABLE_BACKUP: - backup_last_success_date = Column( - verbose_name="Backup Status", empty_values=(), order_by="backup_last_success_date" - ) - if ENABLE_INTENDED: - intended_last_success_date = Column( - verbose_name="Intended Status", - empty_values=(), - order_by="intended_last_success_date", - ) - if ENABLE_COMPLIANCE: - compliance_last_success_date = Column( - verbose_name="Compliance Status", - empty_values=(), - order_by="compliance_last_success_date", - ) - + backup_last_success_date = Column( + verbose_name="Backup Status", empty_values=(), order_by="backup_last_success_date" + ) + intended_last_success_date = Column( + verbose_name="Intended Status", + empty_values=(), + order_by="intended_last_success_date", + ) + compliance_last_success_date = Column( + verbose_name="Compliance Status", + empty_values=(), + order_by="compliance_last_success_date", + ) actions = TemplateColumn( template_code=ALL_ACTIONS, verbose_name="Actions", extra_context=CONFIG_FEATURES, orderable=False ) diff --git a/nautobot_golden_config/templates/nautobot_golden_config/goldenconfig_list.html b/nautobot_golden_config/templates/nautobot_golden_config/goldenconfig_list.html index f8a38c5c..fdd13d3d 100644 --- a/nautobot_golden_config/templates/nautobot_golden_config/goldenconfig_list.html +++ b/nautobot_golden_config/templates/nautobot_golden_config/goldenconfig_list.html @@ -37,15 +37,9 @@