2018-04-30 14:58:10 +02:00
|
|
|
{% extends "base.html" %}
|
2018-06-12 14:35:23 +02:00
|
|
|
{% load static %}
|
2018-04-30 14:58:10 +02:00
|
|
|
|
|
|
|
{% block title %} Brutaldon - toot {% endblock %}
|
|
|
|
|
2018-06-12 14:35:23 +02:00
|
|
|
{% block page_scripts %}
|
|
|
|
<script src="{% static 'js/mousetrap.min.js' %}" type="application/javascript"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-04-30 14:58:10 +02:00
|
|
|
{% block content %}
|
|
|
|
<h1 class="title" >Toot!</h1>
|
|
|
|
<div class="box">
|
|
|
|
{% include "main/post_partial.html" %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
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>
|
|
|
|
{% endblock %}
|