This commit is contained in:
2024-09-08 18:53:37 +10:00
parent a91b98c5ac
commit a348aa849a
3 changed files with 10 additions and 2 deletions
+7 -2
View File
@@ -2,8 +2,13 @@
{% load i18n %}
{% block content %}
<h1 class="mb-4">{% trans "Link List" %}</h1>
<a href="{% url 'link_create' %}" class="btn btn-primary mb-3">{% trans "Create New Link" %}</a>
<div class="d-flex justify-content-between align-items-center mb-4">
<h1>{% trans "Link List" %}</h1>
<a href="{% url 'link_create' %}" class="btn btn-primary">
<i class="fas fa-plus me-2"></i>{% trans "Create New Link" %}
</a>
</div>
<form method="post" action="{% url 'delete_selected' %}">
{% csrf_token %}
<div class="table-responsive">
+2
View File
@@ -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
+1
View File
@@ -52,6 +52,7 @@
background-color: #f8f9fa;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top">