Change instance list buttons from "join" to "browse" (#202)

* Change instance list buttons from "join" to "browse"

This seems more inviting, as its not necessary to create an
account before browsing the content

* update translations

* fix lint
This commit is contained in:
Nutomic 2023-06-29 22:40:33 +02:00 committed by GitHub
parent 4a6aae17e4
commit 3e23e6b8fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 16 deletions

@ -1 +1 @@
Subproject commit e010e8230daf4c75562001382173458c3f4b0154
Subproject commit 1bc69869fda7ee144ddfbc4d9fb29af3a0d4619e

@ -1 +1 @@
Subproject commit 14eef8c998578f60c895a38f55f58c29691f7c23
Subproject commit 0dc13b4ea11daaa07d964c17f7a622e3a222367a

@ -1 +1 @@
Subproject commit 4553c749cb0fb74d62fd156ebd119dc479693dfd
Subproject commit 2eac19b2a21d77d711b8a0b0a534affe0d4d6851

View file

@ -115,9 +115,6 @@ export class Instances extends Component<any, any> {
let domain = instance.domain;
let description = instance.site_info.site_view.site.description;
let icon = instance.site_info.site_view.site.icon;
let require_application =
instance.site_info.site_view.local_site.registration_mode ==
"requireapplication";
return (
<div class="card col-6">
<header>
@ -134,15 +131,9 @@ export class Instances extends Component<any, any> {
<br />
<p class="join-desc">{description}</p>
<footer>
{require_application ? (
<a class="button primary" href={`https://${domain}`}>
{i18n.t("apply_to_join")}
</a>
) : (
<a class="button primary" href={`https://${domain}`}>
{i18n.t("join")}
</a>
)}
<a class="button primary" href={`https://${domain}`}>
{i18n.t("browse_instance")}
</a>
</footer>
</div>
);

View file

@ -9,7 +9,7 @@ export class LinkLine extends Component<any, any> {
render() {
return (
<>
<Link to="/instances">{i18n.t("join")}</Link>
<Link to="/instances">{i18n.t("join_a_server")}</Link>
<Link to="/news">{i18n.t("news")}</Link>
<Link to="/apps">{i18n.t("apps")}</Link>
<Link to="/donate">{i18n.t("donate")}</Link>