Spaces:
Sleeping
Sleeping
Download templates/admin_dashboard.html from phucbienvan/phucbv: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/phucbienvan/phucbv/resolve/main/templates/admin_dashboard.html
- Command line
-
hf download hf://spaces/phucbienvan/phucbv/templates/admin_dashboard.html
-
curl -L -o admin_dashboard.html https://huggingface.co/spaces/phucbienvan/phucbv/resolve/main/templates/admin_dashboard.html
1.06 kB
| <html lang="vi"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Admin - Quản lý bài viết</title> | |
| <link rel="stylesheet" href="/static/css/style.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h2>Quản trị bài viết</h2> | |
| <a href="/admin/logout" style="float:right;">Đăng xuất</a> | |
| <a href="/admin/create"><button>Tạo bài mới</button></a> | |
| <table border="1" cellspacing="0" cellpadding="6" style="margin-top:15px;"> | |
| <tr><th>Tiêu đề</th><th>Ngày</th><th>Xem</th><th>Sửa</th><th>Xóa</th></tr> | |
| {% for post in posts %} | |
| <tr> | |
| <td>{{ post.title }}</td> | |
| <td>{{ post.date }}</td> | |
| <td><a href="/post/{{ post.id }}" target="_blank">Xem</a></td> | |
| <td><a href="/admin/edit/{{ post.id }}">Sửa</a></td> | |
| <td><a href="/admin/delete/{{ post.id }}" onclick="return confirm('Xoá?');">Xóa</a></td> | |
| </tr> | |
| {% endfor %} | |
| </table> | |
| </div> | |
| </body> | |
| </html> | |