<header class="wrapper-response-header">
  <div class="response-header-content">
    <%= author_display %>
    <p class="posted-details">
        <span class="timeago" title="<%= created_at %>"><%= created_at %></span>
        <% if (obj.endorsement) { %>
            -
            <%
            var fmt = null;
            if (thread.get("thread_type") == "question") {
              if (endorsement.username) {
                // Translators: time_ago is a placeholder for a fuzzy, relative timestamp
                // like "4 hours ago" or "about a month ago"
                fmt = gettext("marked as answer %(time_ago)s by %(user)s");
              } else {
                // Translators: time_ago is a placeholder for a fuzzy, relative timestamp
                // like "4 hours ago" or "about a month ago"
                fmt = gettext("marked as answer %(time_ago)s");
              }
            } else {
              if (endorsement.username) {
                // Translators: time_ago is a placeholder for a fuzzy, relative timestamp
                // like "4 hours ago" or "about a month ago"
                fmt = gettext("endorsed %(time_ago)s by %(user)s");
              } else {
                // Translators: time_ago is a placeholder for a fuzzy, relative timestamp
                // like "4 hours ago" or "about a month ago"
                fmt = gettext("endorsed %(time_ago)s");
              }
            }
            var time_ago = interpolate(
              '<span class="timeago" title="%(time)s">%(time)s</span>',
              {time: endorsement.time},
              true
            );
            %>
            <%= interpolate(fmt, {time_ago: time_ago, user: endorser_display}, true) %>
        <% } %>
      </p>
      <div class="post-labels">
          <span class="post-label-reported"><i class="icon fa fa-flag"></i><%- gettext("Reported") %></span>
      </div>
      </div>
      <div class="response-header-actions">
        <%=
            _.template(
                $('#forum-actions').html(),
                {
                    contentId: cid,
                    contentType: 'response',
                    primaryActions: ['vote', thread.get('thread_type') == 'question' ? 'answer' : 'endorse'],
                    secondaryActions: ['edit', 'delete', 'report'],
                    readOnly: readOnly
                }
            )
        %>
      </div>
</header>

<div class="response-body"><%- body %></div>
