2018-04-30 20:31:59 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
2018-06-12 14:35:23 +02:00
|
|
|
{% load static %}
|
2018-04-30 20:31:59 +02:00
|
|
|
|
|
|
|
{% block title %}
|
2018-07-18 19:40:42 +02:00
|
|
|
Brutaldon ({{ own_acct.username }}) - reply
|
2018-06-12 14:35:23 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block page_scripts %}
|
|
|
|
<script src="{% static 'js/mousetrap.min.js' %}" type="application/javascript"></script>
|
2018-04-30 20:31:59 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-06-12 14:35:23 +02:00
|
|
|
<h1 class="title">Thread</h1>
|
|
|
|
{% for ancestor in context.ancestors %}
|
|
|
|
{% include "main/toot_partial.html" with toot=ancestor %}
|
|
|
|
<hr class="is-hidden">
|
|
|
|
{% endfor %}
|
|
|
|
{% include "main/toot_partial.html" with toot=toot active=True %}
|
|
|
|
<hr class="is-hidden">
|
|
|
|
<div class="box">
|
|
|
|
{% include "main/post_partial.html" %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
2018-04-30 20:31:59 +02:00
|
|
|
|
2018-06-12 14:35:23 +02:00
|
|
|
{% block page_scripts_inline %}
|
|
|
|
<script type="application/javascript">
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
Mousetrap.bind('ctrl+enter', function(e) {
|
|
|
|
var form = document.querySelector('#post-form');
|
|
|
|
form.submit();
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2018-04-30 20:31:59 +02:00
|
|
|
{% endblock %}
|