mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
update ostatus templates
This commit is contained in:
parent
f7c8f121b9
commit
d05e100421
2 changed files with 21 additions and 26 deletions
|
@ -1,23 +1,4 @@
|
|||
{% extends 'ostatus/template.html' %}
|
||||
{% load i18n %}
|
||||
{% load utilities %}
|
||||
{% load markdown %}
|
||||
|
||||
{% block title %}
|
||||
{% if not request.user.is_authenticated %}
|
||||
{% trans "Log in to " %}
|
||||
{% else %}
|
||||
{% trans "Error following from " %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block heading %}
|
||||
{% if not request.user.is_authenticated %}
|
||||
Let's log in first...
|
||||
{% else %}
|
||||
Uh oh...
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="block">
|
||||
|
|
|
@ -3,15 +3,30 @@
|
|||
{% load utilities %}
|
||||
{% load markdown %}
|
||||
|
||||
{% if error or not request.user.is_authenticated %}
|
||||
{% include 'ostatus/ostatus_error.html' %}
|
||||
{% block title %}
|
||||
{% if not request.user.is_authenticated %}
|
||||
{% trans "Log in to " %}
|
||||
{% elif error %}
|
||||
{% trans "Error following from " %}
|
||||
{% else %}
|
||||
{% trans "Follow from " %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{% trans "Follow from " %}{% endblock %}
|
||||
|
||||
{% block heading %}Follow from {{ site.name }}{% endblock %}
|
||||
{% block heading %}
|
||||
{% if not request.user.is_authenticated %}
|
||||
{% trans "Let's log in first..." %}
|
||||
{% elif error %}
|
||||
{% trans 'Uh oh...' %}
|
||||
{% else %}
|
||||
{% blocktrans %}Follow from {{ site.name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if error or not request.user.is_authenticated %}
|
||||
{% include 'ostatus/ostatus_error.html' with error=error user=user account=account %}
|
||||
{% else %}
|
||||
<div class="block card">
|
||||
<div class="card-content">
|
||||
<div class="media">
|
||||
|
@ -43,6 +58,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue