mirror of https://gitlab.com/brutaldon/brutaldon
Fix formatting of timeline template
This commit is contained in:
parent
af4173742b
commit
3782d6cd2f
|
@ -3,7 +3,7 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timelime
|
Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timelime
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_scripts %}
|
{% block page_scripts %}
|
||||||
|
@ -13,43 +13,43 @@ Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timelime
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if form %}
|
{% if form %}
|
||||||
<h1 class="title">Post</h1>
|
<h1 class="title">Post</h1>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{% include "main/post_minimal_partial.html" %}
|
{% include "main/post_minimal_partial.html" %}
|
||||||
</div>
|
</div>
|
||||||
<hr class="is-hidden">
|
<hr class="is-hidden">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
||||||
{% for toot in toots %}
|
{% for toot in toots %}
|
||||||
{% if toot.reblog %}
|
{% 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 %}
|
{% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar_static %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
{% include "main/toot_partial.html" with toot=toot reblog=False %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr class="is-hidden">
|
<hr class="is-hidden">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% block pagination %}
|
{% block pagination %}
|
||||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
||||||
{% if prev %}
|
{% if prev %}
|
||||||
<a class="pagination-next" href="{% url 'home_prev' prev.since_id %}">Newer</a>
|
<a class="pagination-next" href="{% url 'home_prev' prev.since_id %}">Newer</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if next %}
|
{% if next %}
|
||||||
<a class="pagination-previous" href="{% url 'home_next' next.max_id %}">Older</a>
|
<a class="pagination-previous" href="{% url 'home_next' next.max_id %}">Older</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_scripts_inline %}
|
{% block page_scripts_inline %}
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
Mousetrap.bind('ctrl+enter', function(e) {
|
Mousetrap.bind('ctrl+enter', function(e) {
|
||||||
var form = document.querySelector('#post-form');
|
var form = document.querySelector('#post-form');
|
||||||
form.submit();
|
form.submit();
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue