From a348aa849a3aef31195f138aa53a2bcce76855f1 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Sun, 8 Sep 2024 18:53:37 +1000 Subject: [PATCH] UI --- links/templates/links/link_list.html | 9 +++++++-- requirements.txt | 2 ++ templates/base.html | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/links/templates/links/link_list.html b/links/templates/links/link_list.html index edec56c..b892e7a 100644 --- a/links/templates/links/link_list.html +++ b/links/templates/links/link_list.html @@ -2,8 +2,13 @@ {% load i18n %} {% block content %} -

{% trans "Link List" %}

- {% trans "Create New Link" %} +
+

{% trans "Link List" %}

+ + {% trans "Create New Link" %} + +
+
{% csrf_token %}
diff --git a/requirements.txt b/requirements.txt index 6f6e263..b85443f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,5 @@ django-widget-tweaks==1.5.0 sqlparse==0.5.1 # 虽然 Chart.js 是通过 CDN 加载的,但我们在这里记录它的使用 # chart.js==3.7.0 +# Add this line to your requirements.txt file +fontawesome-free==5.15.3 diff --git a/templates/base.html b/templates/base.html index e62b126..de15f40 100644 --- a/templates/base.html +++ b/templates/base.html @@ -52,6 +52,7 @@ background-color: #f8f9fa; } +