{% set source_feature = (feature_by_capability or {}).get(capability.id) %}
{% set own_chart = ((view_prefs or {}).get('charts') or {}).get(capability.id) %}{% set chart = own_chart or (view_prefs or {}).get('chart') or 'line' %}
{% set cid = capability.id|replace('.', '-') %}
{{ capability.name }} {{ fresh_tag(capability.id) }}{% if source_feature and source_feature.source %} {{ source_feature.source }}{% endif %}
{{ capability.description }}
{% if capability.graph and chart_types %}{{ chart_menu(capability, inventory, session, chart, own_chart) }}{% endif %}{% if state_class == 'status-warning' %}{% else %}{{ capability.display_state }}{% endif %}