{% import 'allura:templates/jinja_master/lib.html' as lib with context %}

<div class="grid-5"><label>Forum:</label> <a href="{{value.discussion.url()}}">{{value.discussion.name}}</a></div>
{% if value.first_post %}
  <div class="grid-5"><label>Creator:</label> <a href="{{value.first_post.author().url()}}">{{value.first_post.author().display_name}}</a></div>
  <div class="grid-4"><label>Created:</label> {{lib.abbr_date(value.first_post.timestamp)}}</div>
{% endif %}
<div class="grid-5"><label>Updated:</label> {{lib.abbr_date(value.mod_date)}}</div>

{% if show_moderate and h.has_access(value, 'moderate')() %}
  <div id="mod_thread_form" style="display: none;">
    <h2>Moderate Thread</h2>
    {{widgets.moderate_thread.display(value=value, action=value.url()+'moderate')}}
    <div style="clear: both;">&nbsp;</div>
  </div>
{% endif %}

{% if h.has_access(value, 'post')() %}
  <div id="tag_thread_holder" style="display:none" class="grid-18">
    {{widgets.tag_post.display(value=value,submit_text='Save', action=value.url() + 'tag')}}
  </div>
{% endif %}
