Skip to content

Commit 64c02f3

Browse files
authored
Merge pull request #118 from dtinit/user_oauth
User oauth - Moved to authenticated section
2 parents 8b59147 + 04b76f5 commit 64c02f3

File tree

1 file changed

+46
-40
lines changed

1 file changed

+46
-40
lines changed

testbed/core/templates/index.html

Lines changed: 46 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "_base.html" %}
2-
2+
33
{% block content %}
44
<main class="index">
55
{% if messages %}
@@ -9,62 +9,68 @@
99
{% endfor %}
1010
</ul>
1111
{% endif %}
12+
1213
<h1>ActivityPub Account Portability Testbed</h1>
1314
<br />
15+
1416
{% if user.is_authenticated %}
1517

16-
{% if source_actor or destination_actor %}
18+
{% if source_actor or destination_actor %}
19+
<p>
20+
Here are the ActivityPub Actors available for you to test LOLA account portability with:
21+
</p>
1722

18-
<p>
19-
Here are the ActivityPub Actors available for you to test LOLA account portability with:
20-
</p>
21-
{% if source_actor %}
22-
<h3>Source</h3>
23-
<div class="actor">
24-
<div>Username: {{ source_actor.username }}</div>
25-
<div><a href="{% url 'actor-detail' pk=source_actor.pk %}">Details</a></div>
26-
<div><a href="{% url 'actor-outbox' pk=source_actor.pk %}">Outbox</a></div>
27-
</div>
28-
{% endif %}
29-
{% if destination_actor %}
30-
<h3>Destination</h3>
31-
<div class="actor">
32-
<div>Username: {{ destination_actor.username }}</div>
33-
<div class="actor__links">
23+
{% if source_actor %}
24+
<h3>Source</h3>
25+
<div class="actor">
26+
<div>Username: {{ source_actor.username }}</div>
27+
<div><a href="{% url 'actor-detail' pk=source_actor.pk %}">Details</a></div>
28+
<div><a href="{% url 'actor-outbox' pk=source_actor.pk %}">Outbox</a></div>
29+
</div>
30+
{% endif %}
31+
32+
{% if destination_actor %}
33+
<h3>Destination</h3>
34+
<div class="actor">
35+
<div>Username: {{ destination_actor.username }}</div>
36+
<div class="actor__links">
3437
<a href="{% url 'actor-detail' pk=destination_actor.pk %}">Details</a>
3538
</div>
36-
{% endif %}
37-
38-
{% else %}
39-
<p>There are no ActivityPub Actors available for testing yet.</p>
40-
{% endif %}
39+
</div>
40+
{% endif %}
41+
42+
{% else %}
43+
<p>There are no ActivityPub Actors available for testing yet.</p>
44+
{% endif %}
45+
46+
{% if oauth_form %}
47+
<h3>Update Your OAuth Connection</h3>
48+
<div class="actor">
49+
<form method="post" class="oauth-form">
50+
{% csrf_token %}
51+
{{ oauth_form.as_p }}
52+
<br />
53+
<button type="submit">Update</button>
54+
</form>
55+
</div>
56+
{% endif %}
4157

4258
{% else %}
4359
<p>
44-
The <a href="https://www.w3.org/TR/activitypub/">ActivityPub</a> account portability testbed is an implementation of <a href="https://swicg.github.io/activitypub-data-portability/lola.html">LOLA</a>, a proposal for an interoperable approach to moving accounts between ActivityPub servers. The testbed implements LOLA as a source server currently, and we have plans to implement LOLA as a destination as well.
60+
The <a href="https://www.w3.org/TR/activitypub/">ActivityPub</a> account portability testbed is an implementation of
61+
<a href="https://swicg.github.io/activitypub-data-portability/lola.html">LOLA</a>, a proposal for an interoperable approach to moving accounts between ActivityPub servers.
62+
The testbed implements LOLA as a source server currently, and we have plans to implement LOLA as a destination as well.
4563
</p>
4664
<br />
4765
<p>
48-
If you are building a LOLA implementation, register for a test account <a href="{% url 'account_signup' %}">here</a>. The account will be populated with test data including posts, follows and item history. Use this account to test moving an ActivityPub Actor’s full account to your site.
66+
If you are building a LOLA implementation, register for a test account
67+
<a href="{% url 'account_signup' %}">here</a>. The account will be populated with test data including posts, follows and item history.
68+
Use this account to test moving an ActivityPub Actor’s full account to your site.
4969
</p>
5070
<br />
5171
<p>
52-
Accounts on this site are not full ActivityPub accounts in that they are not shared to the Fediverse or truly federated with other ActivityPubservers.
72+
Accounts on this site are not full ActivityPub accounts in that they are not shared to the Fediverse or truly federated with other ActivityPub servers.
5373
</p>
5474
{% endif %}
55-
</div>
56-
57-
<h3>Update Your OAuth Connection</h3>
58-
59-
{% if oauth_form %}
60-
<div class="actor">
61-
<form method="post" class="oauth-form">
62-
{% csrf_token %}
63-
{{ oauth_form.as_p }}
64-
<br/>
65-
<button type="submit">Update</button>
66-
</form>
67-
</div>
68-
{% endif %}
6975
</main>
7076
{% endblock %}

0 commit comments

Comments
 (0)