2018-04-24 00:16:22 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
2018-06-12 14:35:23 +02:00
|
|
|
{% load static %}
|
2019-01-30 16:56:13 +01:00
|
|
|
{% load cache %}
|
2018-04-24 00:16:22 +02:00
|
|
|
|
2018-04-24 14:09:16 +02:00
|
|
|
{% block title %}
|
2018-09-24 16:48:25 +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-09-24 16:48:25 +02:00
|
|
|
{% if form %}
|
|
|
|
<h1 class="title">Post</h1>
|
|
|
|
<div class="box">
|
|
|
|
{% include "main/post_minimal_partial.html" %}
|
|
|
|
</div>
|
|
|
|
<hr class="is-hidden">
|
2018-05-23 14:27:45 +02:00
|
|
|
{% endif %}
|
2018-09-24 16:48:25 +02:00
|
|
|
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
2018-09-24 17:11:08 +02:00
|
|
|
<div id="timeline">
|
|
|
|
{% for toot in toots %}
|
2019-01-30 16:56:13 +01:00
|
|
|
{% cache 600 toot_partial toot.id %}
|
|
|
|
{% if toot.reblog %}
|
|
|
|
{% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar_static %}
|
|
|
|
{% else %}
|
|
|
|
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
|
|
|
{% endif %}
|
|
|
|
{% endcache %}
|
2018-09-24 17:11:08 +02:00
|
|
|
<hr class="is-hidden">
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% block pagination %}
|
|
|
|
<div class="around-pagination">
|
|
|
|
<div class="columns">
|
|
|
|
{% if next %}
|
|
|
|
<p class="column is-one-quarter"></p>
|
|
|
|
<p class="column">
|
2019-05-03 16:00:42 +02:00
|
|
|
<a class="pagination-previous is-one-quarter"
|
2018-09-24 17:11:08 +02:00
|
|
|
href="{% url 'home_next' next.max_id %}"
|
2018-10-09 19:11:20 +02:00
|
|
|
{% if preferences.click_to_load %}
|
2018-09-24 17:11:08 +02:00
|
|
|
ic-get-from="{% url 'home_next' next.max_id %}"
|
|
|
|
ic-select-from-response="#timeline"
|
|
|
|
ic-indicator="#page-load-indicator"
|
|
|
|
ic-target="closest div.around-pagination"
|
2018-09-24 21:09:32 +02:00
|
|
|
ic-push-url="true"
|
2018-10-09 19:11:20 +02:00
|
|
|
{% endif %}
|
2018-09-24 17:11:08 +02:00
|
|
|
>
|
|
|
|
Older
|
|
|
|
</a>
|
|
|
|
</p>
|
2019-05-03 16:00:42 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if prev %}
|
|
|
|
<p class="column is-one-quarter">
|
|
|
|
<a class="pagination-next iss-fullwidth button"
|
|
|
|
href="{% url 'home_prev' prev.min_id %}">
|
|
|
|
Newer
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-09-24 17:11:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
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">
|
2018-09-24 16:48:25 +02:00
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
Mousetrap.bind('ctrl+enter', function(e) {
|
|
|
|
var form = document.querySelector('#post-form');
|
|
|
|
form.submit();
|
|
|
|
return true;
|
|
|
|
});
|
2018-06-12 14:35:23 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|