{% extends "two_column_body.html" %}
{% from "macros.html" import timeago %}
<!-- reopen.html -->
{% block title %}{{ settings.WORDS_REOPEN_QUESTION|escape }}{% endblock %}
{% block content %}
<h1>{{ settings.WORDS_REOPEN_QUESTION|escape }}</h1>
<p class="row">{% trans %}Title{% endtrans %}:
  <a href="{{ question.get_absolute_url() }}">
    <span class="big">{{ question.get_question_title()|escape }}</span>
  </a>
</p>
<p class="row">{% trans username = closed_by_username|escape %}Closed by:
  <a href="{{closed_by_profile_url}}">{{username}}</a>
{% endtrans %}
</p>
<p class="row">
  {% trans %}Close reason:{% endtrans %} "<strong>{{question.thread.close_reason_text|escape}}</strong>".
</p>
<p class="row">
  {% trans %}When:{% endtrans %} {{ timeago(question.thread.closed_at) }}
</p>
<form id="fmclose" style="margin-bottom: 1rem" action="{{ url('reopen',  question.id ) }}" method="post" >{{ csrf_input }}
  <div class="row">
    <input class="btn" type="submit" value="{{ settings.WORDS_REOPEN_QUESTION|escape }}"/>
    <input class="js-btn-back btn btn-muted" type="button" value="{% trans %}Cancel{% endtrans %}"/>
  </div>
</form>
{% endblock %}
{% block endjs %}
<script type="text/javascript">
  $().ready(function(){
    $('.js-btn-back').bind('click', function(){ history.back(); });
  });
</script>
{% endblock %}
<!-- end reopen.html -->
