Show More
@@ -68,6 +68,9 b'' | |||
|
68 | 68 | </div> |
|
69 | 69 | {% if post.is_opening and post.thread_new.tags.exists %} |
|
70 | 70 | <div class="metadata"> |
|
71 | {% if post.is_opening %} | |
|
72 | {{ post.thread_new.get_images_count }} {% trans 'images' %}. | |
|
73 | {% endif %} | |
|
71 | 74 | <span class="tags"> |
|
72 | 75 | {% for tag in post.thread_new.get_tags %} |
|
73 | 76 | <a class="tag" href="{% url 'tag' tag.name %}"> |
@@ -51,6 +51,10 b' def image_actions(*args, **kwargs):' | |||
|
51 | 51 | |
|
52 | 52 | @register.inclusion_tag('boards/post.html', name='post_view') |
|
53 | 53 | def post_view(*args, **kwargs): |
|
54 | """ | |
|
55 | Get post | |
|
56 | """ | |
|
57 | ||
|
54 | 58 | post = args[0] |
|
55 | 59 | |
|
56 | 60 | return { 'post': post } |
@@ -58,6 +62,11 b' def post_view(*args, **kwargs):' | |||
|
58 | 62 | |
|
59 | 63 | @register.inclusion_tag('boards/post.html', name='post_view_truncated') |
|
60 | 64 | def post_view_truncated(*args, **kwargs): |
|
65 | """ | |
|
66 | Get post with truncated text. If the 'open' or 'reply' link is needed, pass | |
|
67 | the second parameter as True. | |
|
68 | """ | |
|
69 | ||
|
61 | 70 | post = args[0] |
|
62 | 71 | if len(args) > 1: |
|
63 | 72 | need_open_link = args[1] |
General Comments 0
You need to be logged in to leave comments.
Login now