{% extends 'generic/object.html' %} {% load helpers %} {% load i18n %} {% load render_table from django_tables2 %} {% block content %}

{% trans "Credential" %}

{% if object.credential_type == 'ssh_key' %} {% endif %}
{% trans "Name" %} {{ object.name }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Type" %} {% badge object.get_credential_type_display %}
{% trans "Username" %} {{ object.username|placeholder }}
{% trans "Secret" %} {% if object.secret %} •••••••• {% trans "Set" %} {% else %} {% trans "Not set" %} {% endif %}
{% trans "Key Passphrase" %} {% if object.passphrase %} {% trans "Set" %} {% else %} {% trans "None" %} {% endif %}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/custom_fields.html' %}

{% trans "Assignments" %} {% if perms.netbox_orchestrator.add_credentialassignment %} {% trans "Add Assignment" %} {% endif %}

{% render_table assignments_table %}

{% trans "Matched Devices & VMs" %}

{% if matched_targets.has_global %}

{% trans "This credential has a global catch-all assignment — it applies to every device and VM not matched by a more specific credential." %}

{% endif %} {% if matched_targets.matches %} {% for row in matched_targets.matches %} {% endfor %}
{% trans "Object" %} {% trans "Matched via" %}
{{ row.object|linkify }} {{ row.reason }}
{% if matched_targets.truncated %}

{% trans "List truncated — more objects match than shown." %}

{% endif %} {% elif not matched_targets.has_global %}

{% trans "No devices or VMs currently resolve to this credential." %}

{% endif %}
{% endblock content %}