2018-05-09 21:09:52 +02:00
|
|
|
{% extends "base" %}
|
2018-05-13 19:19:23 +02:00
|
|
|
{% import "macros" as macros %}
|
2018-05-09 21:09:52 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ instance.name }}
|
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-06-26 17:58:11 +02:00
|
|
|
<h1>{{ "Welcome on {{ instance_name | escape }}" | _(instance_name=instance.name) }}</h1>
|
2018-05-12 14:56:38 +02:00
|
|
|
|
2018-09-05 17:19:57 +02:00
|
|
|
{% if account %}
|
|
|
|
{{ macros::tabs(links=['/', '/feed', '/federated', '/local'], titles=['Latest articles', 'Your feed', 'Federated feed', 'Local feed'], selected=1) }}
|
2018-09-05 19:03:02 +02:00
|
|
|
|
|
|
|
{{ macros::home_feed(title='Your feed', link='/feed', articles=user_feed) }}
|
|
|
|
{{ macros::home_feed(title='Federated feed', link='/federated', articles=federated) }}
|
|
|
|
{{ macros::home_feed(title='Local feed', link='/local', articles=local) }}
|
|
|
|
{% include "instance/description" %}
|
2018-09-05 17:19:57 +02:00
|
|
|
{% else %}
|
|
|
|
{{ macros::tabs(links=['/', '/federated', '/local'], titles=['Latest articles', 'Federated feed', 'Local feed'], selected=1) }}
|
|
|
|
|
2018-09-05 19:03:02 +02:00
|
|
|
{{ macros::home_feed(title='Federated feed', link='/federated', articles=federated) }}
|
|
|
|
{% include "instance/description" %}
|
|
|
|
{{ macros::home_feed(title='Local feed', link='/local', articles=local) }}
|
|
|
|
{% endif %}
|
2018-05-09 21:09:52 +02:00
|
|
|
{% endblock content %}
|