Node.js based forum software built for the modern web
<div class="acp-page-container">
<div class="row border-bottom py-2 m-0 mb-3 sticky-top acp-page-main-header align-items-center">
<div class="col-12 px-0 mb-1 mb-md-0 d-flex justify-content-between align-items-center">
<h4 class="fw-bold tracking-tight mb-0">{{tx("admin/manage/categories:federation.title", name)}}</h4>
<!-- IMPORT admin/partials/category/selector-dropdown-right.tpl -->
</div>
</div>
{{{ if !enabled }}}
<div class="alert alert-warning">
<p>{{tx("admin/manage/categories:federation.disabled")}}</p>
<a class="btn btn-primary" href="{config.relative_path}/admin/settings/activitypub">{{tx("admin/manage/categories:federation.disabled-cta")}}</a>
</div>
{{{ else }}}
<div class="row settings m-0">
<div class="col-12 col-md-8 px-0 mb-4" tabindex="0">
<div id="site-settings" class="mb-4">
<form role="form">
<h5 class="fw-bold settings-header">{{tx("admin/manage/categories:federation.syncing-header")}}</h5>
<p>{{tx("admin/manage/categories:federation.syncing-intro")}}</p>
<p class="form-text">{{tx("admin/manage/categories:federation.syncing-caveat")}}</p>
{{{ if !following.length }}}
<div class="alert alert-info">{{tx("admin/manage/categories:federation.syncing-none")}}</div>
{{{ else }}}
<table class="table">
<thead>
<tr>
<th>{{tx("admin/manage/categories:federation.syncing-actorUri")}}</th>
<th></th>
</tr>
</thead>
<tbody>
{{{ each following }}}
<tr>
<td>
<pre class="mb-0 mt-1">{./id}</pre>
{{{ if !./approved }}}
<span class="form-text text-warning">Pending</span>
{{{ end }}}
</td>
<td>
<button type="button" data-action="unfollow" data-actor="{./id}" class="btn btn-sm btn-danger">{{tx("admin/manage/categories:federation.syncing-unfollow")}}</button>
</td>
</tr>
{{{ end }}}
</tbody>
</table>
{{{ end }}}
<div class="mb-3">
<label class="form-label" for="syncing-add">{{tx("admin/manage/categories:federation.syncing-add")}}</label>
<div class="input-group">
<input id="syncing-add" type="url" class="form-control" />
<button data-action="follow" type="button" class="btn btn-primary">{{tx("admin/manage/categories:federation.syncing-follow")}}</button>
</div>
</div>
<hr />
<div class="mb-3">
<p>{{tx("admin/manage/categories:federation.followers")}}</p>
<table class="table small">
<tr>
<th>{{tx("admin/manage/categories:federation.followers-handle")}}</th>
<th>{{tx("admin/manage/categories:federation.followers-id")}}</th>
</tr>
{{{ if !followers.length}}}
<tr>
<td class="text-center border-0" colspan="2">
<em>{{tx("admin/manage/categories:federation.followers-none")}}</em>
</td>
</tr>
{{{ end }}}
{{{ each followers }}}
<tr data-uid="{./uid}">
<td class="w-100 text-truncate" style="max-width: 1px;">
{{buildAvatar(followers, "24px", true)}}
{./userslug}
</td>
<td class="w-0">
<div class="d-flex gap-2 flex-nowrap align-items-center">
<button type="button" class="btn btn-ghost btn-sm border" data-action="autofill" title="{{tx("admin/manage/categories:federation.followers-autofill")}}">
<i class="fa fa-exchange-alt text-primary"></i>
</button>
<code>{./uid}</code>
</div>
</td>
</tr>
{{{ end }}}
</table>
</div>
</form>
</div>
</div>
<!-- IMPORT admin/partials/category/sidebar.tpl -->
</div>
{{{ end }}}
</div>