##// END OF EJS Templates
Show tag image to the left
neko259 -
r1262:9546c441 default
parent child Browse files
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,7 +38,7 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 }}"
@@ -46,6 +46,7 b''
46 height="{{ image.pre_height }}"/></a>
46 height="{{ image.pre_height }}"/></a>
47 {% endfor %}
47 {% endfor %}
48 </div>
48 </div>
49 <div class="tag-text-data">
49 <h2>
50 <h2>
50 <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form">
51 <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form">
51 {% if is_favorite %}
52 {% if is_favorite %}
@@ -65,7 +66,7 b''
65 {{ tag.get_view }}
66 {{ tag.get_view }}
66 {% endautoescape %}
67 {% endautoescape %}
67 {% if moderator %}
68 {% if moderator %}
68 <span class="moderator_info">[<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]</span>
69 <span class="moderator_info">| <a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a></span>
69 {% endif %}
70 {% endif %}
70 </h2>
71 </h2>
71 {% if tag.get_description %}
72 {% if tag.get_description %}
@@ -75,6 +76,7 b''
75 {% endif %}
76 {% 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 <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>
78 </div>
79 </div>
78 {% endif %}
80 {% endif %}
79
81
80 {% if threads %}
82 {% if threads %}
General Comments 0
You need to be logged in to leave comments. Login now