mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2025-04-20 17:46:43 +00:00
* ensure domains are stored as ascii in the database * convert domains to unicode on the frontend
81 lines
2 KiB
Text
81 lines
2 KiB
Text
-extends "base.haml"
|
|
-set page="Instances"
|
|
|
|
-block head
|
|
%script(type="application/javascript" src="/static/instance.js" nonce="{{view.request['hash']}}" defer)
|
|
|
|
-block content
|
|
%details.section
|
|
%summary << Add Instance
|
|
#add-item
|
|
%label(for="new-actor") << Actor
|
|
%input(type="url" id="new-actor" placeholder="Actor URL")
|
|
|
|
%label(for="new-inbox") << Inbox
|
|
%input(type="url" id="new-inbox" placeholder="Inbox URL")
|
|
|
|
%label(for="new-followid") << Follow ID
|
|
%input(type="url" id="new-followid" placeholder="Follow ID URL")
|
|
|
|
%label(for="new-software") << Software
|
|
%input(id="new-software" placeholder="software")
|
|
|
|
%input#add-instance(type="button" value="Add Instance")
|
|
|
|
-if requests
|
|
%fieldset.section.requests
|
|
%legend << Follow Requests
|
|
.data-table
|
|
%table#requests
|
|
%thead
|
|
%tr
|
|
%td.instance << Instance
|
|
%td.software << Software
|
|
%td.date << Joined
|
|
%td.approve
|
|
%td.deny
|
|
|
|
%tbody
|
|
-for request in requests
|
|
%tr(id="{{request.domain}}")
|
|
%td.instance
|
|
%a(href="https://{{request.domain}}" target="_new") -> =request.domain.encode().decode("idna")
|
|
|
|
%td.software
|
|
=request.software or "n/a"
|
|
|
|
%td.date
|
|
=request.created.strftime("%Y-%m-%d")
|
|
|
|
%td.approve
|
|
%a(href="#" title="Approve Request") << ✓
|
|
|
|
%td.deny
|
|
%a(href="#" title="Deny Request") << ✖
|
|
|
|
%fieldset.section.instances
|
|
%legend << Instances
|
|
|
|
.data-table
|
|
%table#instances
|
|
%thead
|
|
%tr
|
|
%td.instance << Instance
|
|
%td.software << Software
|
|
%td.date << Joined
|
|
%td.remove
|
|
|
|
%tbody
|
|
-for instance in instances
|
|
%tr(id="{{instance.domain}}")
|
|
%td.instance
|
|
%a(href="https://{{instance.domain}}/" target="_new") -> =instance.domain.encode().decode("idna")
|
|
|
|
%td.software
|
|
=instance.software or "n/a"
|
|
|
|
%td.date
|
|
=instance.created.strftime("%Y-%m-%d")
|
|
|
|
%td.remove
|
|
%a(href="#" title="Remove Instance") << ✖
|