##// END OF EJS Templates
Fixed tag view.
neko259 -
r164:390191f3 default
parent child Browse files
Show More
@@ -41,8 +41,8 b''
41 41 <div class="message">
42 42 <div class="post-info">
43 43 <span class="title">{{ thread.thread.title }}</span>
44 <a class="post_id" href="{% url 'thread' thread.thread.id %}"
45 >(#{{ thread.thread.id }})</a>
44 <a class="post_id" href="{% url 'thread' thread.thread.id %}"
45 >(#{{ thread.thread.id }})</a>
46 46 [{{ thread.thread.pub_time }}]
47 47 [<a class="link" href="{% url 'thread' thread.thread.id %}#form"
48 48 >{% trans "Reply" %}</a>]
@@ -103,7 +103,10 b' def tag(request, tag_name, page=0):'
103 103 """Get all tag threads (posts without a parent)."""
104 104
105 105 tag = get_object_or_404(Tag, name=tag_name)
106 threads = Post.objects.get_threads(tag=tag, page=int(page))
106 threads = []
107 for thread in Post.objects.get_threads(tag=tag, page=int(page)):
108 threads.append({'thread': thread,
109 'bumpable': thread.can_bump()})
107 110
108 111 if request.method == 'POST':
109 112 form = ThreadForm(request.POST, request.FILES,
General Comments 0
You need to be logged in to leave comments. Login now