diff --git a/templates/ca_detail.html b/templates/ca_detail.html index 1d05498..eb5dc07 100644 --- a/templates/ca_detail.html +++ b/templates/ca_detail.html @@ -7,25 +7,25 @@

CA机构详情: {{ ca.name }} (路径: {{ ca.name|to_pinyin }})

-
+
- 导出CA + 导出CA - 生成CRL + 生成CRL {% if crl %} - 下载CRL + 下载CRL {% endif %}
@@ -34,29 +34,29 @@
-
-
- 基本信息 +
+
+ 基本信息
-
-
通用名
+
+
通用名
{{ ca.common_name }}
-
组织
+
组织
{{ ca.organization }}
-
组织单位
+
组织单位
{{ ca.organizational_unit or 'N/A' }}
-
国家
+
国家
{{ ca.country }}
-
州/省
+
州/省
{{ ca.state or 'N/A' }}
-
城市
+
城市
{{ ca.locality or 'N/A' }}
@@ -65,38 +65,37 @@
-
-
- 技术信息 +
+
+ 技术信息
-
-
密钥长度
+
+
密钥长度
{{ ca.key_size }}位
- -
有效期
-
- {{ ca.days_valid }}天 - {% if ca.created_at %} - (至 {{ (ca.created_at + timedelta(days=ca.days_valid)).strftime('%Y-%m-%d') }}) - {% endif %} -
+
有效期
+
+ {{ ca.days_valid }}天 + {% if ca.created_at %} + (至 {{ (ca.created_at + timedelta(days=ca.days_valid)).strftime('%Y-%m-%d') }}) + {% endif %} +
-
创建者
+
创建者
{{ get_username(ca.created_by) }}
-
创建时间
+
创建时间
{{ ca.created_at.strftime('%Y-%m-%d %H:%M') }}
-
证书路径
+
证书路径
{{ ca.cert_path }} 拼音路径: {{ ca.cert_path|to_pinyin }}
-
私钥路径
+
私钥路径
{{ ca.key_path }} 拼音路径: {{ ca.key_path|to_pinyin }} @@ -108,60 +107,70 @@
-
+
- 颁发的证书 - {{ certificates|length }} + 颁发的证书 + {{ certificates|length }}
-
+
{% if certificates %}
- +
- + - + {% for cert in certificates %} - - + + -
IDID 通用名 状态 有效期至 创建时间操作操作
{{ cert.id }}{{ cert.common_name }}{{ cert.id }} + + {{ cert.common_name }} + + {% if cert.status == 'active' %} - 有效 + + 有效 + {% elif cert.status == 'revoked' %} - 已吊销 + + 已吊销 + {% else %} - 已过期 + + 已过期 + {% endif %} {{ cert.expires_at.strftime('%Y-%m-%d') }} {{ cert.created_at.strftime('%Y-%m-%d') }} +
{% else %} -