{% extends 'default/base.html' %} {% load humanize %} {% block content %}
{% include "ztree/ztree_js.html" %}
Hosts
主机总数

{{ hosts }}

All host
Users
用户总数

{{ users }}

{{ percent_user }}
All user
count
当天项目发布统计
{% for k,v in swan_data.items %}
{#
{{ k }}发布:
#}
{{ v.count }} 次
{{ k }}
{% endfor %}
Problems
故障总数

{{ problems }}

All Problems
Project
项目数

{{ project }}

All Problems
swan
发布日志
{% for i in swan_log %}
{{ i.swan_datetime|naturaltime }}

{{ i.username }}

发布: {{ i.project_name }}

{{ i.swan_name }} -> {{ i.module_name }}分支

状态: {{ i.message }}

{% if i.update_log %}

更新内容: {{ i.update_log|linebreaksbr }}

{% endif %}

{{ i.swan_datetime }}

{% endfor %}
{% endblock %}