{% extends "base.html" %} {% block title %}Message Templates - Server Monitoring{% endblock %} {% block page_title %}Message Templates{% endblock %} {% block content %}
Total Templates

{{ template_stats.get('total', 0) }}

Total Usage

{{ template_stats.get('total_usage', 0) }}

Categories

{{ template_stats.get('by_category', {}) | length }}

Avg Usage

{{ (template_stats.get('total_usage', 0) / template_stats.get('total', 1)) | round(1) }}

Message Templates
Manage and view compressed message templates
{% if templates %}
{% for template in templates %} {% endfor %}
Hash Template Text Category Usage Count Created Actions
{{ template.template_hash[:8] }}... {{ template.template_text[:80] }}{% if template.template_text | length > 80 %}...{% endif %} {{ template.category or 'uncategorized' }} {{ template.usage_count }} {{ template.created_at | local_dt if template.created_at else 'N/A' }}
{% else %}
No templates found

Message templates will appear here when devices start sending compressed logs.

{% endif %}
{% endblock %}