tag cloud is present, #1122 is implemented

This commit is contained in:
Thomas Citharel
2015-03-08 14:47:22 +01:00
parent 512ff18015
commit ab87a7fe69
6 changed files with 86 additions and 3 deletions

View File

@ -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;
}

View File

@ -19,7 +19,7 @@
{% trans "no tags" %}
{% endif %}
<ul>
{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&amp;tag_id={{ tag.id }}&amp;id={{ entry_id }}">✘</a></li>{% endfor %}
{% for tag in tags %}<li><span class="alreadytagged">{{ tag.value }}</span> <a href="./?action=remove_tag&amp;tag_id={{ tag.id }}&amp;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 }}">&laquo; {% trans "return to article" %}</a>
{% endblock %}