##// END OF EJS Templates
Made tags list page look like tag cloud
neko259 -
r511:a23cbb55 1.6-dev
parent child Browse files
Show More
@@ -390,3 +390,11 b' pre {'
390 background: #222;
390 background: #222;
391 border: solid 1px white;
391 border: solid 1px white;
392 }
392 }
393
394 .tag_item {
395 display: inline-block;
396 background: #555;
397 border: 1px solid #ccc;
398 margin: 0.3ex;
399 padding: 0.2ex;
400 }
@@ -344,4 +344,11 b' input[type="submit"]:hover {'
344 .current_page, .current_mode {
344 .current_page, .current_mode {
345 border: solid 1px #000;
345 border: solid 1px #000;
346 padding: 2px;
346 padding: 2px;
347 } No newline at end of file
347 }
348
349 .tag_item {
350 display: inline-block;
351 border: 1px solid #ccc;
352 margin: 0.3ex;
353 padding: 0.2ex;
354 }
@@ -9,33 +9,34 b''
9 {% block content %}
9 {% block content %}
10
10
11 <div class="post">
11 <div class="post">
12 {% if all_tags %}
12 {% if all_tags %}
13 {% for tag in all_tags %}
13 {% for tag in all_tags %}
14 {% if tag in user.fav_tags.all %}
14 <div class="tag_item">
15 <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}"
15 {% if tag in user.fav_tags.all %}
16 class="fav"></a>
16 <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}"
17 {% else %}
17 class="fav"></a>
18 <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}"
18 {% else %}
19 class="not_fav"></a>
19 <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}"
20 {% endif %}
20 class="not_fav"></a>
21 <a class="tag" href="{% url 'tag' tag.name %}"
21 {% endif %}
22 style="font-size: {{ tag.get_font_value }}em">
22 <a class="tag" href="{% url 'tag' tag.name %}"
23 #{{ tag.name }}</a>
23 style="font-size: {{ tag.get_font_value }}em">
24 ({{ tag.get_post_count }} {% trans 'threads' %})
24 #{{ tag.name }}</a>
25 {% if tag.linked %}
25 ({{ tag.get_post_count }} {% trans 'threads' %})
26 ( +
26 {% if tag.linked %}
27 {% for linked_tag in tag.get_linked_tags %}
27 ( +
28 <a class="tag" href="{% url 'tag' linked_tag.name %}">
28 {% for linked_tag in tag.get_linked_tags %}
29 #{{ linked_tag.name }}
29 <a class="tag" href="{% url 'tag' linked_tag.name %}">
30 </a>
30 #{{ linked_tag.name }}
31 {% endfor %}
31 </a>
32 )
32 {% endfor %}
33 {% endif %}
33 )
34 <br />
34 {% endif %}
35 {% endfor %}
35 </div>
36 {% else %}
36 {% endfor %}
37 {% trans 'No tags found.' %}
37 {% else %}
38 {% endif %}
38 {% trans 'No tags found.' %}
39 {% endif %}
39 </div>
40 </div>
40
41
41 {% endblock %}
42 {% endblock %}
@@ -13,3 +13,4 b' thread.'
13 * Pagination changes. Pages counter now starts from 1 instead of 0
13 * Pagination changes. Pages counter now starts from 1 instead of 0
14 * Added API for viewing threads and posts
14 * Added API for viewing threads and posts
15 * New tag popularity algorithm
15 * New tag popularity algorithm
16 * Tags list page changes. Now tags list is more like a tag cloud
General Comments 0
You need to be logged in to leave comments. Login now