mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-22 09:31:07 +00:00
Add note about restricted mode on index page
This commit is contained in:
parent
a2bd41a00f
commit
6125e5e63a
1 changed files with 85 additions and 73 deletions
|
@ -1,20 +1,22 @@
|
||||||
@use crate::{
|
@use crate::{
|
||||||
config::{Config, UrlKind},
|
config::{Config, UrlKind},
|
||||||
data::Node,
|
data::Node,
|
||||||
templates::{info, instance, statics::index_css},
|
templates::{info, instance, statics::index_css},
|
||||||
};
|
};
|
||||||
|
|
||||||
@(nodes: &[Node], config: &Config)
|
@(nodes: &[Node], config: &Config)
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head lang="en">
|
|
||||||
|
<head lang="en">
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>@config.hostname() | ActivityPub Relay</title>
|
<title>@config.hostname() | ActivityPub Relay</title>
|
||||||
<link rel="stylesheet" href="/static/@index_css.name" type="text/css" />
|
<link rel="stylesheet" href="/static/@index_css.name" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
<h1>@Config::software_name()<span class="smaller">@Config::software_version()</span></h1>
|
<h1>@Config::software_name()<span class="smaller">@Config::software_version()</span></h1>
|
||||||
|
@ -47,6 +49,15 @@
|
||||||
<section>
|
<section>
|
||||||
<h3>Joining</h3>
|
<h3>Joining</h3>
|
||||||
<article class="joining">
|
<article class="joining">
|
||||||
|
@if config.restricted_mode() {
|
||||||
|
<h4>
|
||||||
|
This relay is Restricted
|
||||||
|
</h4>
|
||||||
|
<p>
|
||||||
|
This relay is currently in Restricted Mode, which means servers need to be approved ahead of time by the relay
|
||||||
|
administrator. Please contact the admin before attempting to join.
|
||||||
|
</p>
|
||||||
|
}
|
||||||
<p>
|
<p>
|
||||||
If you are the admin of a server that supports activitypub relays, you can add
|
If you are the admin of a server that supports activitypub relays, you can add
|
||||||
this relay to your server.
|
this relay to your server.
|
||||||
|
@ -77,5 +88,6 @@
|
||||||
<a href="@config.source_code()">@config.source_code()</a>
|
<a href="@config.source_code()">@config.source_code()</a>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue