##// END OF EJS Templates
Removed obsolete parameter from post view tag
neko259 -
r988:67afa53e default
parent child Browse files
Show More
@@ -324,8 +324,8 b' class Post(models.Model, Viewable):'
324 are same for every post and don't need to be computed over and over.
324 are same for every post and don't need to be computed over and over.
325 """
325 """
326
326
327 thread = self.get_thread()
327 is_opening = kwargs.get(PARAMETER_IS_OPENING, self.is_opening())
328 is_opening = kwargs.get(PARAMETER_IS_OPENING, self.is_opening())
328 thread = kwargs.get(PARAMETER_THREAD, self.get_thread())
329 can_bump = kwargs.get(PARAMETER_BUMPABLE, thread.can_bump())
329 can_bump = kwargs.get(PARAMETER_BUMPABLE, thread.can_bump())
330
330
331 if is_opening:
331 if is_opening:
@@ -34,7 +34,7 b''
34 {% with can_bump=thread.can_bump %}
34 {% with can_bump=thread.can_bump %}
35 {% for post in thread.get_replies %}
35 {% for post in thread.get_replies %}
36 {% with is_opening=forloop.first %}
36 {% with is_opening=forloop.first %}
37 {% post_view post moderator=moderator is_opening=is_opening thread=thread bumpable=can_bump opening_post_id=opening_post.id %}
37 {% post_view post moderator=moderator is_opening=is_opening bumpable=can_bump opening_post_id=opening_post.id %}
38 {% endwith %}
38 {% endwith %}
39 {% endfor %}
39 {% endfor %}
40 {% endwith %}
40 {% endwith %}
@@ -53,10 +53,7 b' def post_view(post, moderator=False, nee'
53 else:
53 else:
54 is_opening = post.is_opening()
54 is_opening = post.is_opening()
55
55
56 if 'thread' in kwargs:
56 thread = post.get_thread()
57 thread = kwargs['thread']
58 else:
59 thread = post.get_thread()
60
57
61 if 'can_bump' in kwargs:
58 if 'can_bump' in kwargs:
62 can_bump = kwargs['can_bump']
59 can_bump = kwargs['can_bump']
General Comments 0
You need to be logged in to leave comments. Login now