microblog.pub/app/templates/lookup.html

20 lines
710 B
HTML
Raw Normal View History

2022-06-22 20:11:22 +02:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
{% block content %}
2022-06-26 11:09:43 +02:00
2022-07-09 08:15:33 +02:00
<div class="box">
2022-06-26 11:09:43 +02:00
<p>Interact with an ActivityPub object via its URL or look for a user using <i>@user@domain.tld</i></p>
2022-07-03 22:01:47 +02:00
<form class="form" action="{{ url_for("get_lookup") }}" method="GET">
2022-07-04 19:02:30 +02:00
<input type="text" name="query" value="{{ query if query else "" }}" autofocus>
2022-06-22 20:11:22 +02:00
<input type="submit" value="Lookup">
</form>
2022-07-09 08:15:33 +02:00
</div>
2022-07-09 19:26:18 +02:00
{% if ap_object and ap_object.ap_type in actor_types %}
2022-06-22 20:11:22 +02:00
{{ utils.display_actor(ap_object, actors_metadata) }}
{% elif ap_object %}
2022-07-14 19:05:45 +02:00
{{ utils.display_object(ap_object, actors_metadata=actors_metadata) }}
2022-06-22 20:11:22 +02:00
{% endif %}
{% endblock %}