<%! from django.utils.translation import ugettext as _ %>

<article class="discussion-article" data-id="{{id}}">
    <div class="discussion-post local">
        <header>
            <h3>{{title}}</h3>
            <p class="posted-details">                
                {{#user}}
                <a href="{{user_url}}" class="username">{{username}}</a>
                {{/user}}
                {{^user}}
                ${_("anonymous")}
                {{/user}}

                <span class="timeago" title="{{created_at}}">{{created_at}}</span>
                <span class="post-status-closed top-post-status" style="display: none">
                    &bull; ${_("This thread is closed.")}
                </span>
            </p>
        </header>
        <div class="post-body">{{abbreviatedBody}}</div>
    </div>
    <div class="local post-tools">
        <a href="{{permalink}}">${_("View discussion")}</a>
    </div>

</article>
