2018-04-24 00:16:22 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
2018-06-12 14:35:23 +02:00
|
|
|
{% load static %}
|
2018-04-24 00:16:22 +02:00
|
|
|
|
2018-04-24 14:09:16 +02:00
|
|
|
{% block title %}
|
2018-07-18 19:40:42 +02:00
|
|
|
Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timelime
|
2018-04-24 14:09:16 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-06-12 14:35:23 +02:00
|
|
|
{% block page_scripts %}
|
2018-06-22 13:53:25 +02:00
|
|
|
{% if not fullbrutalism %}
|
|
|
|
<script src="{% static 'js/mousetrap.min.js' %}" type="application/javascript"></script>
|
|
|
|
{% endif %}
|
2018-06-12 14:35:23 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-04-24 00:16:22 +02:00
|
|
|
{% block content %}
|
2018-05-07 01:46:51 +02:00
|
|
|
{% if form %}
|
2018-05-23 14:27:45 +02:00
|
|
|
<h1 class="title">Post</h1>
|
|
|
|
<div class="box">
|
|
|
|
{% include "main/post_minimal_partial.html" %}
|
|
|
|
</div>
|
|
|
|
<hr class="is-hidden">
|
2018-05-07 01:46:51 +02:00
|
|
|
{% endif %}
|
2018-05-23 14:27:45 +02:00
|
|
|
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
|
|
|
{% for toot in toots %}
|
|
|
|
{% if toot.reblog %}
|
|
|
|
{% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar %}
|
|
|
|
{% else %}
|
|
|
|
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
|
|
|
{% endif %}
|
|
|
|
<hr class="is-hidden">
|
|
|
|
{% endfor %}
|
2018-04-24 18:40:33 +02:00
|
|
|
|
2018-05-23 14:27:45 +02:00
|
|
|
{% block pagination %}
|
|
|
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
|
|
|
{% if prev %}
|
|
|
|
<a class="pagination-next" href="{% url 'home_prev' prev.since_id %}">Newer</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if next %}
|
|
|
|
<a class="pagination-previous" href="{% url 'home_next' next.max_id %}">Older</a>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
{% endblock %}
|
2018-04-24 00:16:22 +02:00
|
|
|
{% 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 %}
|