Download this file

preview_post.html    26 lines (25 with data), 869 Bytes

 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
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
<div style="margin-bottom: 10px">
<h3>
<a href="{{value.url()}}">{{value.title}}</a>
</h3>
{{value.html_text_preview|safe}}
<em class="grid-19">
Posted by <a href="{{value.author().url()}}">{{lib.gravatar_or_name(value.author(), size=16)}}</a> {{lib.abbr_date(value.timestamp)}}
{% if value.state != 'published' %}
<span>| {{value.state.capitalize()}}</span>
{% endif %}
{% if h.has_access(value, 'write')() %}
<span>| <a href="{{value.url()}}edit">Edit</a></span>
{% endif %}
</em>
{% if value.labels: %}
<em class="grid-19">
<strong>Labels:</strong>
{% for l in value.labels %}
<span><a href="{{c.app.url}}search?q=labels_t:{{l}}">{{l}}</a> </span>
{% endfor %}
</em>
{% endif %}
<div style="clear: both"></div>
</div>