{% 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>
