mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-13 21:49:26 +02:00
Implement tag cloud on bookmark page
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{% extends "bookmarks/layout.html" %}
|
||||
{% load shared %}
|
||||
{% load bookmarks %}
|
||||
|
||||
{% block content %}
|
||||
<div class="columns">
|
||||
@@ -65,6 +66,7 @@
|
||||
<div class="content-area-header">
|
||||
<h2>Tags</h2>
|
||||
</div>
|
||||
{% tag_cloud tags %}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
14
bookmarks/templates/bookmarks/tag_cloud.html
Normal file
14
bookmarks/templates/bookmarks/tag_cloud.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% load shared %}
|
||||
|
||||
<div class="tag-cloud">
|
||||
{% for group in groups %}
|
||||
<p class="group">
|
||||
<span class="group-label mr-2">{{ group.char }}</span>
|
||||
{% for tag in group.tags %}
|
||||
<a href="?{% append_query_param q=tag.name %}">
|
||||
<span class="mr-2">{{ tag.name }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
</div>
|
Reference in New Issue
Block a user