Download this file

view_post.html    22 lines (20 with data), 720 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
{{value.html_text|safe}}
{{lib.related_artifacts(value)}}
<em class="grid-19">
Posted by <a href="{{base_post.author().url()}}">{{lib.gravatar_or_name(base_post.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 %}