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

<div class="discussion-post local">
    <div><a href="javascript:void(0)" class="dogear action-follow" data-tooltip="follow"></a></div>
    <header>
        <a href="#" class="vote-btn" role="button" aria-pressed="false"/>
        <h3>{{title}}</h3>
        <div class="discussion-flag-abuse notflagged" data-role="thread-flag">
        <i class="icon icon-flag"></i><span class="flag-label"/></div>

        <div class="discussion-pin-inline pinned  pinned-{{pinned}}" data-tooltip="${_("This thread has been pinned by course staff.")}">                
        <i class="icon icon-pushpin"></i><span class="pin-label">${_("Pinned")}</span></div>

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

    <ul class="moderator-actions post-extended-content">
        <li style="display: none"><a class="action-edit" href="javascript:void(0)"><span class="edit-icon"></span> ${_("Edit")}</a></li>
        <li style="display: none"><a class="action-delete" href="javascript:void(0)"><span class="delete-icon"></span> ${_("Delete")}</a></li>
        <li style="display: none"><a class="action-openclose" href="javascript:void(0)"><span class="edit-icon"></span> ${_("Close")}</a></li>
    </ul>
</div>
