Show More
@@ -41,8 +41,8 b'' | |||||
41 | <div class="message"> |
|
41 | <div class="message"> | |
42 | <div class="post-info"> |
|
42 | <div class="post-info"> | |
43 | <span class="title">{{ thread.thread.title }}</span> |
|
43 | <span class="title">{{ thread.thread.title }}</span> | |
44 |
|
|
44 | <a class="post_id" href="{% url 'thread' thread.thread.id %}" | |
45 |
|
|
45 | >(#{{ thread.thread.id }})</a> | |
46 | [{{ thread.thread.pub_time }}] |
|
46 | [{{ thread.thread.pub_time }}] | |
47 | [<a class="link" href="{% url 'thread' thread.thread.id %}#form" |
|
47 | [<a class="link" href="{% url 'thread' thread.thread.id %}#form" | |
48 | >{% trans "Reply" %}</a>] |
|
48 | >{% trans "Reply" %}</a>] |
@@ -103,7 +103,10 b' def tag(request, tag_name, page=0):' | |||||
103 | """Get all tag threads (posts without a parent).""" |
|
103 | """Get all tag threads (posts without a parent).""" | |
104 |
|
104 | |||
105 | tag = get_object_or_404(Tag, name=tag_name) |
|
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 | if request.method == 'POST': |
|
111 | if request.method == 'POST': | |
109 | form = ThreadForm(request.POST, request.FILES, |
|
112 | form = ThreadForm(request.POST, request.FILES, |
General Comments 0
You need to be logged in to leave comments.
Login now