Implement basic bookmark page

This commit is contained in:
Sascha Ißbrücker
2019-06-27 08:09:51 +02:00
commit fc2794aa61
25 changed files with 567 additions and 0 deletions

View File

@@ -0,0 +1 @@
<h2>Edit bookmark {{ bookmark.id }}</h2>

View 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 %}

View 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>