53 lines
1.5 KiB
Django/Jinja
53 lines
1.5 KiB
Django/Jinja
{% extends "base.jinja2" %}
|
|
{% block head %}
|
|
|
|
{% if ws_topic %}
|
|
<script>var WS_TOPIC = "{{ ws_topic }}";</script>
|
|
{% endif %}
|
|
<script src="/feed.js"></script>
|
|
|
|
{% if current_user and current_user.settings
|
|
and current_user.settings.get('reply-method') == 'indie-config' %}
|
|
<script src="{{url_for('static', filename='indieconfig.js')}}"></script>
|
|
<script src="{{url_for('static', filename='webaction.js')}}"></script>
|
|
{% endif %}
|
|
|
|
{% endblock head %}
|
|
|
|
{% block header %}
|
|
{% if current_user.is_authenticated %}
|
|
<form action="{{ url_for('.subscribe') }}" method="POST">
|
|
<input type="url" id="origin" name="origin" placeholder="Subscribe to URL" />
|
|
</form>
|
|
{% endif %}
|
|
|
|
{% if all_tags %}
|
|
<i class="fa fa-tags"></i>
|
|
{% for tag in all_tags|sort %}
|
|
<a href="{{ url_for('.index', tag=tag) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% endblock header %}
|
|
|
|
{% block body %}
|
|
<div class="button-link">
|
|
<a id="unfold-link" href="#">n New Entries</a>
|
|
</div>
|
|
|
|
<div id="fold">
|
|
</div>
|
|
|
|
{% for entry in entries %}
|
|
{% include '_entry.jinja2' with context %}
|
|
{% endfor %}
|
|
|
|
{% if entries and not solo %}
|
|
<div class="pager button-link">
|
|
<a id="older-link" href="{{ url_for_other_page(page=page+1) }}">Older</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<iframe style="display:none;" src="https://www.subtome.com/register-no-ui.html?name=Woodwind&url=https%3A%2F%2Fwoodwind.xyz%2Fsubscribe%3Forigin%3D%7Burl%7D"></iframe>
|
|
|
|
{% endblock body %}
|