{# Shared by the active-players banner and the Agent Performance page: good = 60%+ active, warn = 30-59%, low = under 30%, none = no players. #} {% macro level(activity) %}{{ activity.total == 0 ? 'none' : (activity.percent >= 60 ? 'good' : (activity.percent >= 30 ? 'warn' : 'low')) }}{% endmacro %}