Parent: [014b4e] (diff)

Child: [ad7e64] (diff)

Download this file

thread_widget.html    53 lines (51 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% import 'jinja_master/lib.html' as lib with context %}
<div>
<div class="row">
<div class="column grid_12">
{% if limit %}
{{widgets.page_list.display(limit=limit, page=page, count=count)}}
{% endif %}
<div id="comment">
{% set posts = value.find_posts(page=page, limit=limit) %}
{% if posts %}
{% for t in value.create_post_threads(posts) %}
<ul>
{{widgets.post_thread.display(value=t['post'], indent=0, show_subject=show_subject,
supress_promote=True, page=page, limit=limit)}}
</ul>
{% endfor %}
{% endif %}
{% if h.has_artifact_access('moderate', value)() %}
<div id="allow_moderate"></div>
{% endif %}
{% if h.has_artifact_access('post', value)() %}
<div id="tag_thread_holder" style="display:none">
{{widgets.tag_post.display(value=value,submit_text='Save', action=value.url() + 'tag')}}
</div>
{% endif %}
</div>
<div style="clear:both"></div>
{% if limit and count>limit %}
<div>
{{widgets.page_list.display(limit=limit, page=page, count=count)}}
</div>
{% endif %}
</div>
</div>
</div>
{% if h.has_artifact_access('post', value)() %}
<div id="new_post_holder">
<a name="comment"></a>
<div class="row reply">
<div class="grid-3 tcenter">
<p class="gravatar">
{{lib.gravatar(c.user, size=48)}}<br/><br/>
<a href="{{c.user.url()}}">{{c.user.display_name}}</a>
</p>
</div>
<div class="grid-16">
{{widgets.edit_post.display(submit_text='Save', action=value.url() + 'post')}}
</div>
</div>
</div>
{% endif %}