1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00

Put the tag selection in a collapsible element to prevent clutter

This commit is contained in:
2016-09-14 12:50:37 +02:00
parent 9e2bdac9ee
commit 2cdb0ebccb
2 changed files with 33 additions and 20 deletions

View File

@@ -46,7 +46,11 @@
{% if tags %}
<div class="row">
<p>
<div class="col s12">
<ul class="collapsible" data-collapsible="expandable">
<li>
<div class="collapsible-header"><i class="material-icons">label</i>Filter on star/problem/comment/tag</div>
<div class="collapsible-body" style="padding: 10px;">
<div class="chip">
<a href="{{ url_for('bookmarks', userkey=userkey, filtermethod='starred') }}"><i class="tiny material-icons yellow-text">star</i></a>
</div>
@@ -61,7 +65,9 @@
<a href="{{ url_for('tag', userkey=userkey, tag=tag) }}">{{ tag }}</a>
</div>
{% endfor %}
</p>
</li>
</ul>
</div>
</div>
{% endif %}

View File

@@ -82,12 +82,19 @@
{% if tags %}
<div class="row">
<div class="col s12">
<ul class="collapsible" data-collapsible="expandable">
<li>
<div class="collapsible-header"><i class="material-icons">label</i>Existing tags</div>
<div class="collapsible-body" style="padding: 10px;">
{% for tag in tags %}
<div class="chip clickable" id="tag_{{ tag }}">
{{ tag }}
</div>
{% endfor %}
</div>
</li>
</ul>
</div>
{% for tag in tags %}
<script type="text/javascript">
$(function () {