From 5a127e7fd711c52b2a1e2a5ca303426e207fe2d5 Mon Sep 17 00:00:00 2001 From: xiaji Date: Mon, 9 Mar 2026 14:03:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A6=96=E9=A1=B5):=20=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=9A=90=E8=97=8F=E5=8A=9F=E8=83=BD=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E5=8F=AA=E6=98=BE=E7=A4=BA=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E6=AC=A2=E8=BF=8E=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/templates/core/base.html | 4 ++++ core/templates/core/index.html | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/core/templates/core/base.html b/core/templates/core/base.html index 148fd01..57ad7ba 100644 --- a/core/templates/core/base.html +++ b/core/templates/core/base.html @@ -448,6 +448,7 @@ 首页 + {% if user.is_authenticated %} + {% endif %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 5c294a8..93d063a 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,6 +1,7 @@ {% extends 'core/base.html' %} {% block content %} +{% if user.is_authenticated %}
@@ -372,4 +373,21 @@ setCurrentYear(); }); +{% else %} + +
+
+
+
+ +

欢迎使用家庭日报系统

+

请先登录以使用系统功能

+ + 登录系统 + +
+
+
+
+{% endif %} {% endblock %}