{% extends "base.html" %} {% block title %}{{ server.hostname or server.ip_address }} Updates - Update Manager{% endblock %} {% block content %} {% if snapshot %}
Total Updates
{{ snapshot.total_updates }}
Security Updates
{{ snapshot.security_updates }}
Package Manager
{{ snapshot.package_manager }}
Last Checked
{{ snapshot.checked_at.strftime('%Y-%m-%d %H:%M') }}
{% if snapshot.total_updates > 0 %}

Available Updates

{% for pkg in snapshot.packages %} {% endfor %}
Package Current Version New Version Type
{{ pkg.name }} {{ pkg.current_version or '-' }} {{ pkg.new_version }} {% if pkg.security %} Security {% else %} Regular {% endif %}
{% else %}

โœ… All packages are up to date!

{% endif %} {% else %}

No update information available yet.

{% endif %} {% if history %}

Operation History

{% for h in history %} {% endfor %}
Operation Status Started Initiated By Details
{% if h.operation == 'check' %} ๐Ÿ” Check {% elif h.operation == 'dry_run' %} ๐Ÿงช Dry Run {% elif h.operation == 'update' %} โฌ†๏ธ Update {% elif h.operation == 'refresh' %} ๐Ÿ”„ Refresh {% else %} {{ h.operation }} {% endif %} {% if h.status == 'success' %} Success {% elif h.status == 'failed' %} Failed {% elif h.status == 'running' %} Running {% else %} {{ h.status }} {% endif %} {{ h.started_at.strftime('%Y-%m-%d %H:%M') }} {{ h.initiated_by or '-' }} {% if h.packages_updated %} {{ h.packages_updated }} packages {% endif %} {% if h.output or h.error_message %} View Log {% endif %}
{% endif %} {% endblock %}