mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-13 21:49:26 +02:00
Implement basic bookmark page
This commit is contained in:
1
bookmarks/templates/bookmarks/detail.html
Normal file
1
bookmarks/templates/bookmarks/detail.html
Normal file
@@ -0,0 +1 @@
|
||||
<h2>Edit bookmark {{ bookmark.id }}</h2>
|
22
bookmarks/templates/bookmarks/index.html
Normal file
22
bookmarks/templates/bookmarks/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "bookmarks/layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Bookmarks</h2>
|
||||
<ul class="bookmark-list">
|
||||
{% for bookmark in bookmarks %}
|
||||
<li>
|
||||
<p>
|
||||
<a href="{{ bookmark.url }}" target="_blank">{{ bookmark.title }}</a>
|
||||
</p>
|
||||
{% if bookmark.description is not None %}
|
||||
<p>{{ bookmark.description }}</p>
|
||||
{% endif %}
|
||||
<p>
|
||||
<a href="{% url 'bookmarks:detail' bookmark.id %}">Edit</a>
|
||||
<a href="{% url 'bookmarks:remove' bookmark.id %}"
|
||||
onclick="return confirm('Do you really want to delete this bookmark?')">Remove</a>
|
||||
</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
16
bookmarks/templates/bookmarks/layout.html
Normal file
16
bookmarks/templates/bookmarks/layout.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>linkdings</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>linkdings</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user