forked from wallabag/wallabag
tag cloud is present, #1122 is implemented
This commit is contained in:
@ -455,3 +455,33 @@ pre code {
|
||||
border: 1px solid #ddd;
|
||||
font-size: 0.96em;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Tags-related styles
|
||||
========================================================================== */
|
||||
|
||||
.suggestedtag {
|
||||
padding: 4px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#tagcloud .smallesttag {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
#tagcloud .smalltag {
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
#tagcloud .mediumtag {
|
||||
font-size:medium;
|
||||
}
|
||||
|
||||
#tagcloud .largetag {
|
||||
font-size:large;
|
||||
}
|
||||
|
||||
#tagcloud .largesttag {
|
||||
font-size:larger;
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
{% trans "no tags" %}
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %}
|
||||
{% for tag in tags %}<li><span class="alreadytagged">{{ tag.value }}</span> <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %}
|
||||
</ul>
|
||||
<form method="post" action="./?action=add_tag" id="editTags">
|
||||
<input type="hidden" name="entry_id" value="{{ entry_id }}" />
|
||||
@ -30,6 +30,7 @@
|
||||
{% trans "You can enter multiple tags, separated by commas." %}</p>
|
||||
|
||||
</form>
|
||||
<br>
|
||||
All existing tags :
|
||||
<ul id="tagcloud">{% for eachtag in alltags %}<li class="suggestedtag {{ eachtag.cssclass }}">{{ eachtag.value }}</li>{% endfor %}</ul>
|
||||
<a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user