Show More
@@ -113,3 +113,15 b' textarea, input {' | |||||
113 | margin-left: auto; |
|
113 | margin-left: auto; | |
114 | margin-right: auto; |
|
114 | margin-right: auto; | |
115 | } |
|
115 | } | |
|
116 | ||||
|
117 | .tag-image, .tag-text-data { | |||
|
118 | display: inline-block; | |||
|
119 | } | |||
|
120 | ||||
|
121 | .tag-text-data > h2 { | |||
|
122 | margin: 0; | |||
|
123 | } | |||
|
124 | ||||
|
125 | .tag-image { | |||
|
126 | margin-right: 5px; | |||
|
127 | } |
@@ -38,42 +38,44 b'' | |||||
38 |
|
38 | |||
39 | {% if tag %} |
|
39 | {% if tag %} | |
40 | <div class="tag_info"> |
|
40 | <div class="tag_info"> | |
41 | <div> |
|
41 | <div class="tag-image"> | |
42 | {% for image in random_images %} |
|
42 | {% for image in random_images %} | |
43 | <a href="{{ image.get_random_associated_post.get_absolute_url }}"><img |
|
43 | <a href="{{ image.get_random_associated_post.get_absolute_url }}"><img | |
44 | src="{{ image.image.url_200x150 }}" |
|
44 | src="{{ image.image.url_200x150 }}" | |
45 | width="{{ image.pre_width }}" |
|
45 | width="{{ image.pre_width }}" | |
46 | height="{{ image.pre_height }}"/></a> |
|
46 | height="{{ image.pre_height }}"/></a> | |
47 | {% endfor %} |
|
47 | {% endfor %} | |
48 | </div> |
|
48 | </div> | |
49 | <h2> |
|
49 | <div class="tag-text-data"> | |
50 | <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form"> |
|
50 | <h2> | |
51 | {% if is_favorite %} |
|
51 | <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form"> | |
52 | <button name="method" value="unsubscribe" class="fav">β </button> |
|
52 | {% if is_favorite %} | |
53 | {% else %} |
|
53 | <button name="method" value="unsubscribe" class="fav">β </button> | |
54 | <button name="method" value="subscribe" class="not_fav">β </button> |
|
54 | {% else %} | |
55 | {% endif %} |
|
55 | <button name="method" value="subscribe" class="not_fav">β </button> | |
56 | </form> |
|
56 | {% endif %} | |
57 | <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form"> |
|
57 | </form> | |
58 | {% if is_hidden %} |
|
58 | <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form"> | |
59 | <button name="method" value="unhide" class="fav">H</button> |
|
59 | {% if is_hidden %} | |
60 | {% else %} |
|
60 | <button name="method" value="unhide" class="fav">H</button> | |
61 | <button name="method" value="hide" class="not_fav">H</button> |
|
61 | {% else %} | |
|
62 | <button name="method" value="hide" class="not_fav">H</button> | |||
|
63 | {% endif %} | |||
|
64 | </form> | |||
|
65 | {% autoescape off %} | |||
|
66 | {{ tag.get_view }} | |||
|
67 | {% endautoescape %} | |||
|
68 | {% if moderator %} | |||
|
69 | <span class="moderator_info">| <a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a></span> | |||
62 | {% endif %} |
|
70 | {% endif %} | |
63 |
</ |
|
71 | </h2> | |
64 |
{% |
|
72 | {% if tag.get_description %} | |
65 |
{ |
|
73 | {% autoescape off %} | |
66 | {% endautoescape %} |
|
74 | <p>{{ tag.get_description }}</p> | |
67 |
|
|
75 | {% endautoescape %} | |
68 | <span class="moderator_info">[<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]</span> |
|
|||
69 | {% endif %} |
|
76 | {% endif %} | |
70 | </h2> |
|
77 | <p>{% blocktrans with active_thread_count=tag.get_active_thread_count thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ active_thread_count}}/{{ thread_count }} threads and {{ post_count }} posts.{% endblocktrans %}</p> | |
71 | {% if tag.get_description %} |
|
78 | </div> | |
72 | {% autoescape off %} |
|
|||
73 | <p>{{ tag.get_description }}</p> |
|
|||
74 | {% endautoescape %} |
|
|||
75 | {% endif %} |
|
|||
76 | <p>{% blocktrans with active_thread_count=tag.get_active_thread_count thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ active_thread_count}}/{{ thread_count }} threads and {{ post_count }} posts.{% endblocktrans %}</p> |
|
|||
77 | </div> |
|
79 | </div> | |
78 | {% endif %} |
|
80 | {% endif %} | |
79 |
|
81 |
General Comments 0
You need to be logged in to leave comments.
Login now