Compare commits

..

No commits in common. "70f6b85a21510f1d141cf1c1348e51b9aaf9bea0" and "31287c88995feb4cc6130ad8b0ee2f9534e224c0" have entirely different histories.

48 changed files with 1094 additions and 1100 deletions

View file

@ -57,7 +57,7 @@ steps:
- pull_request - pull_request
- name: web-setup - name: web-setup
image: node:20-alpine image: node:18-alpine
volumes: volumes:
- name: yarn_cache - name: yarn_cache
path: /tmp/cache path: /tmp/cache
@ -72,7 +72,7 @@ steps:
- pull_request - pull_request
- name: web-lint - name: web-lint
image: node:20-alpine image: node:18-alpine
commands: commands:
- yarn --cwd ./web/source lint - yarn --cwd ./web/source lint
depends_on: depends_on:
@ -83,7 +83,7 @@ steps:
- pull_request - pull_request
- name: web-build - name: web-build
image: node:20-alpine image: node:18-alpine
commands: commands:
- yarn --cwd ./web/source build - yarn --cwd ./web/source build
depends_on: depends_on:
@ -224,3 +224,5 @@ steps:
--- ---
kind: signature kind: signature
hmac: 1b89e3a538fbca72eb9a0b398cd82f09a774ba3649013e19d36012eda327e83f hmac: 1b89e3a538fbca72eb9a0b398cd82f09a774ba3649013e19d36012eda327e83f
...

View file

@ -3,9 +3,6 @@
"go.lintFlags": [ "go.lintFlags": [
"--fast" "--fast"
], ],
"go.testEnvVars": {
"WAZERO_COMPILATION_CACHE": "~/.cache/wazero"
},
"gopls": { "gopls": {
"analyses": { "analyses": {
"composites": false "composites": false
@ -22,9 +19,5 @@
], ],
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit" "source.fixAll.eslint": "explicit"
}, }
"html.format.wrapLineLength": 0,
"html.format.wrapAttributes": "preserve",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
} }

View file

@ -19,7 +19,7 @@ WORKDIR /go/src/github.com/superseriousbusiness/gotosocial
RUN /go/bin/swagger generate spec -o /go/src/github.com/superseriousbusiness/gotosocial/swagger.yaml --scan-models RUN /go/bin/swagger generate spec -o /go/src/github.com/superseriousbusiness/gotosocial/swagger.yaml --scan-models
# stage 2: generate the web/assets/dist bundles # stage 2: generate the web/assets/dist bundles
FROM --platform=${BUILDPLATFORM} node:20-alpine AS bundler FROM --platform=${BUILDPLATFORM} node:18-alpine AS bundler
COPY web web COPY web web
RUN yarn --cwd ./web/source install && \ RUN yarn --cwd ./web/source install && \

View file

@ -1780,7 +1780,7 @@ func (suite *InternalToFrontendTestSuite) TestStatusToAPIStatusPendingApproval()
"muted": false, "muted": false,
"bookmarked": false, "bookmarked": false,
"pinned": false, "pinned": false,
"content": "<p>Hi <span class=\"h-card\"><a href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">@<span>1happyturtle</span></a></span>, can I reply?</p><hr><p><i lang=\"en\"> Note from localhost:8080: This reply is pending your approval. You can quickly accept it by liking, boosting or replying to it. You can also accept or reject it at the following link: <a href=\"http://localhost:8080/settings/user/interaction-requests/01J5QVXCCEATJYSXM9H6MZT4JR\" rel=\"noreferrer noopener nofollow\" target=\"_blank\">http://localhost:8080/settings/user/interaction-requests/01J5QVXCCEATJYSXM9H6MZT4JR</a>.</i></p>", "content": "<p>Hi <span class=\"h-card\"><a href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">@<span>1happyturtle</span></a></span>, can I reply?</p><hr><p><i lang=\"en\"> Note from localhost:8080: This reply is pending your approval. You can quickly accept it by liking, boosting or replying to it. You can also accept or reject it at the following link: <a href=\"http://localhost:8080/settings/user/interaction_requests/01J5QVXCCEATJYSXM9H6MZT4JR\" rel=\"noreferrer noopener nofollow\" target=\"_blank\">http://localhost:8080/settings/user/interaction_requests/01J5QVXCCEATJYSXM9H6MZT4JR</a>.</i></p>",
"reblog": null, "reblog": null,
"application": { "application": {
"name": "superseriousbusiness", "name": "superseriousbusiness",

View file

@ -214,8 +214,8 @@ func (c *Converter) pendingReplyNote(
// Build the settings panel URL at which the user // Build the settings panel URL at which the user
// can view + approve/reject the interaction request. // can view + approve/reject the interaction request.
// //
// Eg., https://example.org/settings/user/interaction-requests/01J5QVXCCEATJYSXM9H6MZT4JR // Eg., https://example.org/settings/user/interaction_requests/01J5QVXCCEATJYSXM9H6MZT4JR
settingsURL = proto + "://" + host + "/settings/user/interaction-requests/" + intReq.ID settingsURL = proto + "://" + host + "/settings/user/interaction_requests/" + intReq.ID
) )
var note strings.Builder var note strings.Builder

View file

@ -29,8 +29,7 @@ module.exports = [
} }
}, },
plugins: { plugins: {
"license-header": require("eslint-plugin-license-header"), "license-header": require("eslint-plugin-license-header")
"only-warn": require("eslint-plugin-only-warn")
}, },
rules: { rules: {
"license-header/header": ["error", __dirname + "/.license-header.js"] "license-header/header": ["error", __dirname + "/.license-header.js"]

View file

@ -47,7 +47,7 @@
"@babel/preset-typescript": "^7.24.1", "@babel/preset-typescript": "^7.24.1",
"@browserify/envify": "^6.0.0", "@browserify/envify": "^6.0.0",
"@browserify/uglifyify": "^6.0.0", "@browserify/uglifyify": "^6.0.0",
"@f0x52/eslint-config": "^2.0.11", "@f0x52/eslint-config": "^2.0.9",
"@types/html-to-text": "^9.0.4", "@types/html-to-text": "^9.0.4",
"@types/is-valid-domain": "^0.0.2", "@types/is-valid-domain": "^0.0.2",
"@types/papaparse": "^5.3.9", "@types/papaparse": "^5.3.9",
@ -62,7 +62,6 @@
"css-extract": "^2.0.0", "css-extract": "^2.0.0",
"eslint": "^9.14.0", "eslint": "^9.14.0",
"eslint-plugin-license-header": "^0.6.0", "eslint-plugin-license-header": "^0.6.0",
"eslint-plugin-only-warn": "^1.1.0",
"factor-bundle": "^2.5.0", "factor-bundle": "^2.5.0",
"icssify": "^2.0.0", "icssify": "^2.0.0",
"postcss": "^8.4.18", "postcss": "^8.4.18",

View file

@ -39,9 +39,9 @@ export default function UserLogoutCard() {
return ( return (
<div className="account-card"> <div className="account-card">
<img className="avatar" src={profile.avatar} alt="" /> <img className="avatar" src={profile.avatar} alt="" />
<b className="text-cutoff">{profile.display_name.length > 0 ? profile.display_name : profile.acct}</b> <h3 className="text-cutoff">{profile.display_name?.length > 0 ? profile.display_name : profile.acct}</h3>
<span className="text-cutoff">@{profile.username}@{instance?.account_domain}</span> <span className="text-cutoff">@{profile.username}@{instance?.account_domain}</span>
<a onClick={() => void logoutQuery()} href="#" aria-label="Log out" title="Log out" className="logout"> <a onClick={logoutQuery} href="#" aria-label="Log out" title="Log out" className="logout">
<i className="fa fa-fw fa-sign-out" aria-hidden="true" /> <i className="fa fa-fw fa-sign-out" aria-hidden="true" />
</a> </a>
</div> </div>

View file

@ -188,7 +188,7 @@ const extended = gtsApi.injectEndpoints({
return { data: null }; return { data: null };
}, },
}), }),
logout: build.mutation<null, void>({ logout: build.mutation({
queryFn: (_arg, api) => { queryFn: (_arg, api) => {
api.dispatch(oauthRemove()); api.dispatch(oauthRemove());
return { data: null }; return { data: null };

View file

@ -18,13 +18,9 @@
*/ */
import React from "react"; import React from "react";
import { Redirect, Route, Router, Switch } from "wouter";
import { BaseUrlContext, useBaseUrl } from "../../../lib/navigation/util";
import InteractionRequestDetail from "./detail";
import InteractionRequestsSearchForm from "./search"; import InteractionRequestsSearchForm from "./search";
function InteractionRequests() { export default function InteractionRequests() {
return ( return (
<div className="interaction-requests-view"> <div className="interaction-requests-view">
<div className="form-section-docs"> <div className="form-section-docs">
@ -38,25 +34,3 @@ function InteractionRequests() {
</div> </div>
); );
} }
/**
* - /settings/users/interaction-requests/search
* - /settings/users/interaction-requests/{reqId}
*/
export default function InteractionRequestsRouter() {
const parentUrl = useBaseUrl();
const thisBase = "/interaction-requests";
const absBase = parentUrl + thisBase;
return (
<BaseUrlContext.Provider value={absBase}>
<Router base={thisBase}>
<Switch>
<Route path="/search" component={InteractionRequests} />
<Route path="/:reqId" component={InteractionRequestDetail} />
<Redirect to="/search" />
</Switch>
</Router>
</BaseUrlContext.Provider>
);
}

View file

@ -45,7 +45,7 @@ export default function UserMenu() {
/> />
<MenuItem <MenuItem
name="Interaction Requests" name="Interaction Requests"
itemUrl="interaction-requests" itemUrl="interaction_requests"
icon="fa-commenting-o" icon="fa-commenting-o"
/> />
<MenuItem <MenuItem

View file

@ -26,7 +26,8 @@ import UserMigration from "./migration";
import PostSettings from "./posts"; import PostSettings from "./posts";
import EmailPassword from "./emailpassword"; import EmailPassword from "./emailpassword";
import ExportImport from "./export-import"; import ExportImport from "./export-import";
import InteractionRequestsRouter from "./interactions"; import InteractionRequests from "./interactions";
import InteractionRequestDetail from "./interactions/detail";
/** /**
* - /settings/user/profile * - /settings/user/profile
@ -34,7 +35,7 @@ import InteractionRequestsRouter from "./interactions";
* - /settings/user/emailpassword * - /settings/user/emailpassword
* - /settings/user/migration * - /settings/user/migration
* - /settings/user/export-import * - /settings/user/export-import
* - /settings/users/interaction-requests * - /settings/users/interaction_requests
*/ */
export default function UserRouter() { export default function UserRouter() {
const baseUrl = useBaseUrl(); const baseUrl = useBaseUrl();
@ -51,11 +52,33 @@ export default function UserRouter() {
<Route path="/emailpassword" component={EmailPassword} /> <Route path="/emailpassword" component={EmailPassword} />
<Route path="/migration" component={UserMigration} /> <Route path="/migration" component={UserMigration} />
<Route path="/export-import" component={ExportImport} /> <Route path="/export-import" component={ExportImport} />
<Route path="/interaction-requests/*?" component={InteractionRequestsRouter} /> <InteractionRequestsRouter />
<Redirect to="/profile" /> <Route><Redirect to="/profile" /></Route>
</Switch> </Switch>
</ErrorBoundary> </ErrorBoundary>
</Router> </Router>
</BaseUrlContext.Provider> </BaseUrlContext.Provider>
); );
} }
/**
* - /settings/users/interaction_requests/search
* - /settings/users/interaction_requests/{reqId}
*/
function InteractionRequestsRouter() {
const parentUrl = useBaseUrl();
const thisBase = "/interaction_requests";
const absBase = parentUrl + thisBase;
return (
<BaseUrlContext.Provider value={absBase}>
<Router base={thisBase}>
<Switch>
<Route path="/search" component={InteractionRequests} />
<Route path="/:reqId" component={InteractionRequestDetail} />
<Route><Redirect to="/search"/></Route>
</Switch>
</Router>
</BaseUrlContext.Provider>
);
}

View file

@ -1345,10 +1345,10 @@
dependencies: dependencies:
levn "^0.4.1" levn "^0.4.1"
"@f0x52/eslint-config@^2.0.11": "@f0x52/eslint-config@^2.0.9":
version "2.0.11" version "2.0.9"
resolved "https://registry.yarnpkg.com/@f0x52/eslint-config/-/eslint-config-2.0.11.tgz#a8f1cdc057344b6fa61794b7bea437f0b6e269c5" resolved "https://registry.yarnpkg.com/@f0x52/eslint-config/-/eslint-config-2.0.9.tgz#96320799d6c1ecaabd663091a796a765ca075869"
integrity sha512-QsNeb3uQ/CR5XNKbI98ThchD2vj4IjMh8oEMoFQiB7ae51NCUruSQiE91hq4IvvXGZy4li61loavO4avbm6DJA== integrity sha512-4XiXUe6wMm5btpMBXpkB90W6aSl4EtuUSmswc9LtsByTvmYQ4+dn0zXoRh2WkWzvZx/VHFIxqu73BMeHHzBDxg==
dependencies: dependencies:
"@eslint/js" "^9.11.0" "@eslint/js" "^9.11.0"
"@stylistic/eslint-plugin" "^2.8.0" "@stylistic/eslint-plugin" "^2.8.0"
@ -3541,11 +3541,6 @@ eslint-plugin-license-header@^0.6.0:
dependencies: dependencies:
requireindex "^1.2.0" requireindex "^1.2.0"
eslint-plugin-only-warn@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.1.0.tgz#c6ddc37ddc4e72c121f07be565fcb7b6671fe78a"
integrity sha512-2tktqUAT+Q3hCAU0iSf4xAN1k9zOpjK5WO8104mB0rT/dGhOa09582HN5HlbxNbPRZ0THV7nLGvzugcNOSjzfA==
eslint-scope@^8.2.0: eslint-scope@^8.2.0:
version "8.2.0" version "8.2.0"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.2.0.tgz#377aa6f1cb5dc7592cfd0b7f892fd0cf352ce442" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.2.0.tgz#377aa6f1cb5dc7592cfd0b7f892fd0cf352ce442"

View file

@ -19,25 +19,25 @@
{{- with . }} {{- with . }}
<main> <main>
<section> <section>
<h1>404: Not Found</h1> <h1>404: Not Found</h1>
<p> <p>
GoToSocial only serves Public statuses via the web. GoToSocial only serves Public statuses via the web.
</p> </p>
<p> <p>
If you reached this page by clicking on a status link, If you reached this page by clicking on a status link,
it's likely that the status is not Public. You can try it's likely that the status is not Public. You can try
entering the status URL in your client's search bar, entering the status URL in your client's search bar,
to view the status from your account. If that doesn't to view the status from your account. If that doesn't
work, it's possible that the status has been deleted by work, it's possible that the status has been deleted by
the author, you don't have permission to view it, or it the author, you don't have permission to view it, or it
doesn't exist at all. doesn't exist at all.
</p> </p>
<p> <p>
If you believe this 404 was an error, you can contact If you believe this 404 was an error, you can contact
the instance admin. Provide them with the following the instance admin. Provide them with the following
request ID: <code>{{- .requestID -}}</code>. request ID: <code>{{- .requestID -}}</code>.
</p> </p>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -37,9 +37,9 @@
{{- if .languages }} {{- if .languages }}
<p>This instance prefers the following languages:</p> <p>This instance prefers the following languages:</p>
<ol> <ol>
{{- range .languages }} {{- range .languages }}
<li>{{- . -}}</li> <li>{{- . -}}</li>
{{- end }} {{- end }}
</ol> </ol>
{{- else }} {{- else }}
<p>No preferred languages have yet been set for this instance.</p> <p>No preferred languages have yet been set for this instance.</p>
@ -50,9 +50,9 @@
{{- if .instance.Rules }} {{- if .instance.Rules }}
<p>This instance has the following rules:</p> <p>This instance has the following rules:</p>
<ol> <ol>
{{- range .instance.Rules }} {{- range .instance.Rules }}
<li>{{- .Text -}}</li> <li>{{- .Text -}}</li>
{{- end }} {{- end }}
</ol> </ol>
{{- else }} {{- else }}
<p>No rules have yet been set for this instance.</p> <p>No rules have yet been set for this instance.</p>
@ -61,7 +61,7 @@
{{- define "customCSSLimits" -}} {{- define "customCSSLimits" -}}
<a href="https://docs.gotosocial.org/en/latest/user_guide/settings/#custom-css" target="_blank" <a href="https://docs.gotosocial.org/en/latest/user_guide/settings/#custom-css" target="_blank"
rel="noopener noreferrer">Custom CSS</a> is&nbsp; rel="noopener noreferrer">Custom CSS</a> is&nbsp;
{{- if .instance.Configuration.Accounts.AllowCustomCSS -}} {{- if .instance.Configuration.Accounts.AllowCustomCSS -}}
<b>enabled</b> <b>enabled</b>
{{- else -}} {{- else -}}
@ -84,113 +84,113 @@ Polls can have up to
{{- with . }} {{- with . }}
<nav class="sidebar" aria-labelledby="toc"> <nav class="sidebar" aria-labelledby="toc">
<h2 id="toc">Table of Contents</h2> <h2 id="toc">Table of Contents</h2>
<div> <div>
<ol> <ol>
<li><a href="#about">About</a></li> <li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li> <li><a href="#contact">Contact</a></li>
<li><a href="#features">Features</a></li> <li><a href="#features">Features</a></li>
<li><a href="#languages">Languages</a></li> <li><a href="#languages">Languages</a></li>
<li><a href="#signup">Register an Account</a></li> <li><a href="#signup">Register an Account</a></li>
<li><a href="#rules">Rules</a></li> <li><a href="#rules">Rules</a></li>
<li><a href="#terms">Terms and Conditions</a></li> <li><a href="#terms">Terms and Conditions</a></li>
<li><a href="#moderated-servers">Moderated Servers</a></li> <li><a href="#moderated-servers">Moderated Servers</a></li>
</ol> </ol>
</div> </div>
</nav> </nav>
<main class="single-page"> <main class="single-page">
<section role="region" aria-labelledby="about"> <section role="region" aria-labelledby="about">
<h2 id="about">About {{ .instance.Title -}}</h2> <h2 id="about">About {{ .instance.Title -}}</h2>
<div> <div>
{{- with . }} {{- with . }}
{{- include "description" . | indent 3 }} {{- include "description" . | indent 3 }}
{{- end }} {{- end }}
</div> </div>
</section> </section>
<section role="region" aria-labelledby="contact"> <section role="region" aria-labelledby="contact">
<h2 id="contact">Admin Contact</h2> <h2 id="contact">Admin Contact</h2>
<div> <div>
{{- if .instance.ContactAccount }} {{- if .instance.ContactAccount }}
<a href="{{- .instance.ContactAccount.URL -}}" class="account-card"> <a href="{{- .instance.ContactAccount.URL -}}" class="account-card">
<img class="avatar" src="{{- .instance.ContactAccount.Avatar -}}" alt="" /> <img class="avatar" src="{{- .instance.ContactAccount.Avatar -}}" alt="" />
<b> <b>
{{- if .instance.ContactAccount.DisplayName -}} {{- if .instance.ContactAccount.DisplayName -}}
{{- emojify .instance.ContactAccount.Emojis (escape .instance.ContactAccount.DisplayName) -}} {{- emojify .instance.ContactAccount.Emojis (escape .instance.ContactAccount.DisplayName) -}}
{{- else -}} {{- else -}}
{{- .instance.ContactAccount.Username -}} {{- .instance.ContactAccount.Username -}}
{{- end -}} {{- end -}}
</b> </b>
<span>@{{- .instance.ContactAccount.Username -}}</span> <span>@{{- .instance.ContactAccount.Username -}}</span>
</a> </a>
{{- else }} {{- else }}
<p>This instance has not yet set a contact account.</p> <p>This instance has not yet set a contact account.</p>
{{- end }} {{- end }}
{{- if .instance.Email }} {{- if .instance.Email }}
<p>Email: <a href="mailto:{{- .instance.Email -}}">{{- .instance.Email -}}</a></p> <p>Email: <a href="mailto:{{- .instance.Email -}}">{{- .instance.Email -}}</a></p>
{{- else }} {{- else }}
<p>This instance has not yet set a contact email address.</p> <p>This instance has not yet set a contact email address.</p>
{{- end }} {{- end }}
</div> </div>
</section> </section>
<section role="region" aria-labelledby="features"> <section role="region" aria-labelledby="features">
<h2 id="features">Instance Features</h2> <h2 id="features">Instance Features</h2>
<div> <div>
<ul> <ul>
<li>{{- template "statusLimits" . -}}</li> <li>{{- template "statusLimits" . -}}</li>
<li>{{- template "pollLimits" . -}}</li> <li>{{- template "pollLimits" . -}}</li>
<li>{{- template "customCSSLimits" . -}}</li> <li>{{- template "customCSSLimits" . -}}</li>
</ul> </ul>
</div> </div>
</section> </section>
<section role="region" aria-labelledby="languages"> <section role="region" aria-labelledby="languages">
<h2 id="languages">Languages</h2> <h2 id="languages">Languages</h2>
<div> <div>
{{- with . }} {{- with . }}
{{- include "languages" . | indent 3 }} {{- include "languages" . | indent 3 }}
{{- end }} {{- end }}
</div> </div>
</section> </section>
{{- include "index_register.tmpl" . | indent 1 }} {{- include "index_register.tmpl" . | indent 1 }}
<section role="region" aria-labelledby="rules"> <section role="region" aria-labelledby="rules">
<h2 id="rules">Instance Rules</h2> <h2 id="rules">Instance Rules</h2>
<div> <div>
{{- with . }} {{- with . }}
{{- include "rules" . | indent 3 }} {{- include "rules" . | indent 3 }}
{{- end }} {{- end }}
</div> </div>
</section> </section>
<section role="region" aria-labelledby="terms"> <section role="region" aria-labelledby="terms">
<h2 id="terms">Terms and Conditions</h2> <h2 id="terms">Terms and Conditions</h2>
<div> <div>
{{- with . }} {{- with . }}
{{- include "termsAndConditions" . | indent 3 }} {{- include "termsAndConditions" . | indent 3 }}
{{- end }} {{- end }}
</div> </div>
</section> </section>
<section role="region" aria-labelledby="moderated-servers"> <section role="region" aria-labelledby="moderated-servers">
<h2 id="moderated-servers">Moderated servers</h2> <h2 id="moderated-servers">Moderated servers</h2>
<div> <div>
<p> <p>
ActivityPub instances federate with other instances by exchanging data with them over the network. ActivityPub instances federate with other instances by exchanging data with them over the network.
Exchanged data includes things like accounts, statuses, likes, boosts, and media attachments. Exchanged data includes things like accounts, statuses, likes, boosts, and media attachments.
This exchange of data can be prevented for instances on specific domains via a domain block created This exchange of data can be prevented for instances on specific domains via a domain block created
by an instance admin. When an instance is domain blocked by another instance: by an instance admin. When an instance is domain blocked by another instance:
</p> </p>
<ul> <ul>
<li>Any existing data from the blocked instance is deleted from the storage of the instance doing the <li>Any existing data from the blocked instance is deleted from the storage of the instance doing the
blocking.</li> blocking.</li>
<li>Interaction between the two instances is cut off in both directions; neither instance can interact <li>Interaction between the two instances is cut off in both directions; neither instance can interact
with the other.</li> with the other.</li>
<li>No new data from the blocked instance will be created on the instance that blocks it.</li> <li>No new data from the blocked instance will be created on the instance that blocks it.</li>
</ul> </ul>
<p> <p>
{{- if .blocklistExposed }} {{- if .blocklistExposed }}
<a href="/about/suspended">View the list of domains blocked by this instance</a> <a href="/about/suspended">View the list of domains blocked by this instance</a>
{{- else }} {{- else }}
This instance does not publically share their list of blocked domains. This instance does not publically share their list of blocked domains.
{{- end }} {{- end }}
</p> </p>
</div> </div>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,25 +19,25 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="with-form" aria-labelledby="authorize"> <section class="with-form" aria-labelledby="authorize">
<h2 id="authorize">Authorize app</h2> <h2 id="authorize">Authorize app</h2>
<form action="/oauth/authorize" method="POST"> <form action="/oauth/authorize" method="POST">
<p>Hi <b>{{- .user -}}</b>!</p> <p>Hi <b>{{- .user -}}</b>!</p>
<p> <p>
Application Application
{{- if .appwebsite }} {{- if .appwebsite }}
<a href="{{- .appwebsite -}}" rel="nofollow noreferrer noopener" target="_blank">{{- .appname -}}</a> <a href="{{- .appwebsite -}}" rel="nofollow noreferrer noopener" target="_blank">{{- .appname -}}</a>
{{- else }} {{- else }}
<b>{{- .appname -}}</b> <b>{{- .appname -}}</b>
{{- end }} {{- end }}
would like to perform actions on your behalf, with scope would like to perform actions on your behalf, with scope
<em>{{- .scope -}}</em>. <em>{{- .scope -}}</em>.
</p> </p>
<p> <p>
To continue, the application will redirect to: <code>{{- .redirect -}}</code> To continue, the application will redirect to: <code>{{- .redirect -}}</code>
</p> </p>
<button type="submit" class="btn btn-success">Allow</button> <button type="submit" class="btn btn-success">Allow</button>
</form> </form>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,15 +19,15 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="with-form" aria-labelledby="confirm"> <section class="with-form" aria-labelledby="confirm">
<h2 id="confirm">Confirm email address</h2> <h2 id="confirm">Confirm email address</h2>
<form action="/confirm_email?token={{ .token }}" method="POST"> <form action="/confirm_email?token={{ .token }}" method="POST">
<p> <p>
Hi <b>{{- .username -}}</b>! Hi <b>{{- .username -}}</b>!
Please click the button to confirm your email address <b>{{- .email -}}</b>. Please click the button to confirm your email address <b>{{- .email -}}</b>.
</p> </p>
<button type="submit" class="btn btn-success">Confirm</button> <button type="submit" class="btn btn-success">Confirm</button>
</form> </form>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,12 +19,12 @@
{{- with . }} {{- with . }}
<main> <main>
<section aria-labelledby="confirmed"> <section aria-labelledby="confirmed">
<h2 id="confirmed">Email address confirmed</h2> <h2 id="confirmed">Email address confirmed</h2>
<p>Email address <b>{{- .email -}}</b> is now confirmed!</p> <p>Email address <b>{{- .email -}}</b> is now confirmed!</p>
{{- if not .approved }} {{- if not .approved }}
<p>Once an admin has approved your sign-up, you will be able to log in and use your account.</p> <p>Once an admin has approved your sign-up, you will be able to log in and use your account.</p>
{{- end }} {{- end }}
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,34 +19,34 @@
{{- with . }} {{- with . }}
<main> <main>
<section> <section>
<h1>Suspended Instances</h1> <h1>Suspended Instances</h1>
<p> <p>
The following list of domains have been suspended The following list of domains have been suspended
by the administrator(s) of this server. by the administrator(s) of this server.
</p> </p>
<p> <p>
All current and future accounts on these instances are All current and future accounts on these instances are
blocked, and no more data is federated to the remote servers. blocked, and no more data is federated to the remote servers.
This extends to subdomains, so an entry for 'example.com' This extends to subdomains, so an entry for 'example.com'
includes 'social.example.com' as well. includes 'social.example.com' as well.
</p> </p>
<div class="list domain-blocklist"> <div class="list domain-blocklist">
<div class="header entry"> <div class="header entry">
<div class="domain">Domain</div> <div class="domain">Domain</div>
<div class="public_comment">Public comment</div> <div class="public_comment">Public comment</div>
</div> </div>
{{- range .blocklist }} {{- range .blocklist }}
<div class="entry" id="{{- .Domain -}}"> <div class="entry" id="{{- .Domain -}}">
<div class="domain"> <div class="domain">
<a class="text-cutoff" href="#{{- .Domain -}}" title="{{- .Domain -}}">{{- .Domain -}}</a> <a class="text-cutoff" href="#{{- .Domain -}}" title="{{- .Domain -}}">{{- .Domain -}}</a>
</div> </div>
<div class="public_comment"> <div class="public_comment">
<p>{{- .PublicComment -}}</p> <p>{{- .PublicComment -}}</p>
</div> </div>
</div> </div>
{{- end }} {{- end }}
</div> </div>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -23,13 +23,10 @@ Someone has submitted a new account sign-up to your instance.
They provided the following details: They provided the following details:
Email address: Email address: {{ .SignupEmail }}
{{ .SignupEmail }} Username: {{ .SignupUsername }}
Username:
{{ .SignupUsername }}
{{- if .SignupReason }} {{- if .SignupReason }}
Reason: Reason: {{ .SignupReason }}
{{ .SignupReason }}
{{- end }} {{- end }}
To view the sign-up, paste the following link into your browser: {{ .SignupURL }} To view the sign-up, paste the following link into your browser: {{ .SignupURL }}

View file

@ -19,14 +19,14 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="error"> <section class="error">
<h1>An error occured:</h1> <h1>An error occured:</h1>
<pre>{{- .error -}}</pre> <pre>{{- .error -}}</pre>
{{- if .requestID }} {{- if .requestID }}
<div> <div>
<span>Request ID:</span> <code>{{- .requestID -}}</code> <span>Request ID:</span> <code>{{- .requestID -}}</code>
</div> </div>
{{- end }} {{- end }}
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,30 +19,30 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="with-form" aria-labelledby="finalize"> <section class="with-form" aria-labelledby="finalize">
<h2 id="finalize">Finalize sign-in to {{ .instance.Title -}}</h2> <h2 id="finalize">Finalize sign-in to {{ .instance.Title -}}</h2>
<form action="/oauth/finalize" method="POST"> <form action="/oauth/finalize" method="POST">
<p> <p>
Hi <b>{{- .name -}}</b>! Hi <b>{{- .name -}}</b>!
</p> </p>
<p> <p>
You are about to create an account on <b>{{- .instance.Title -}}</b>. You are about to create an account on <b>{{- .instance.Title -}}</b>.
To finish the process, you must select your username. To finish the process, you must select your username.
</p> </p>
<div class="labelinput"> <div class="labelinput">
<label for="username"> <label for="username">
Username (lowercase a-z, numbers, and underscores; max 64 characters).<br /> Username (lowercase a-z, numbers, and underscores; max 64 characters).<br />
<small>Your username will be part of your fediverse handle, and cannot be changed later, so choose <small>Your username will be part of your fediverse handle, and cannot be changed later, so choose
thoughtfully!</small> thoughtfully!</small>
</label> </label>
<input id="username" type="text" name="username" required <input id="username" type="text" name="username" required
placeholder="Please enter your desired username" pattern="^[a-z0-9_]{1,64}$" placeholder="Please enter your desired username" pattern="^[a-z0-9_]{1,64}$"
title="lowercase a-z, numbers, and underscores; max 64 characters" title="lowercase a-z, numbers, and underscores; max 64 characters"
value="{{- .preferredUsername -}}"> value="{{- .preferredUsername -}}">
</div> </div>
<input type="hidden" name="name" value="{{- .name -}}"> <input type="hidden" name="name" value="{{- .name -}}">
<button type="submit" class="btn btn-success">Submit</button> <button type="submit" class="btn btn-success">Submit</button>
</form> </form>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -27,15 +27,15 @@
{{- with . }} {{- with . }}
<main class="index-page sectioned"> <main class="index-page sectioned">
<section role="region" aria-labelledby="about"> <section role="region" aria-labelledby="about">
<h2 id="about">About this instance</h2> <h2 id="about">About this instance</h2>
<div> <div>
{{- include "shortDescription" . | indent 3 }} {{- include "shortDescription" . | indent 3 }}
<a href="/about">See more details</a> <a href="/about">See more details</a>
</div> </div>
</section> </section>
{{- include "index_what_is_this.tmpl" . | indent 1 }} {{- include "index_what_is_this.tmpl" . | indent 1 }}
{{- include "index_register.tmpl" . | indent 1 }} {{- include "index_register.tmpl" . | indent 1 }}
{{- include "index_apps.tmpl" . | indent 1 }} {{- include "index_apps.tmpl" . | indent 1 }}
</main> </main>
{{- end }} {{- end }}

View file

@ -19,64 +19,64 @@
{{- with . }} {{- with . }}
<section role="region" class="apps" aria-labelledby="apps"> <section role="region" class="apps" aria-labelledby="apps">
<h2 id="apps">Client applications</h2> <h2 id="apps">Client applications</h2>
<div> <div>
<p> <p>
Have an account on this instance and want to log in? Have an account on this instance and want to log in?
GoToSocial does not provide its own webclient, but implements the Mastodon client API. GoToSocial does not provide its own webclient, but implements the Mastodon client API.
You can use a variety of clients to log in to your account here: You can use a variety of clients to log in to your account here:
</p> </p>
<ul class="applist nodot" role="group"> <ul class="applist nodot" role="group">
<li class="applist-entry"> <li class="applist-entry">
<div class="applist-text"> <div class="applist-text">
<p><strong>Semaphore</strong> is a web client designed for speed and simplicity.</p> <p><strong>Semaphore</strong> is a web client designed for speed and simplicity.</p>
<a href="https://semaphore.social/" rel="nofollow noreferrer noopener" target="_blank"> <a href="https://semaphore.social/" rel="nofollow noreferrer noopener" target="_blank">
Use Semaphore Use Semaphore
</a> </a>
</div> </div>
<svg role="img" aria-labelledby="semaphore-title semaphore-desc" class="applist-logo redraw" <svg role="img" aria-labelledby="semaphore-title semaphore-desc" class="applist-logo redraw"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 146 120" width="100" height="100"> xmlns="http://www.w3.org/2000/svg" viewBox="0 0 146 120" width="100" height="100">
<title id="semaphore-title">The Semaphore logo</title> <title id="semaphore-title">The Semaphore logo</title>
<desc id="semaphore-desc">A waving flag</desc> <desc id="semaphore-desc">A waving flag</desc>
<path <path
d="M68.13 0C53.94 0 42.81 20 13.9 27.1l-2.23-5.29a6.5 6.5 0 0 0-5.17-10.4 6.5 6.5 0 0 0-.81 12.95L46.2 120l5.99-2.5-14.42-33.33c22.8-6.86 32.51-22.16 49.83-20.58 9.9.9 4.87 19.56 8.11 17.93 16.22-8.15 32.44-11.41 50.29-11.41-7.96-9.78-17.38-20.55-22.71-31.74L120.8 32c-2.32-7.33-2.56-14.75.87-22.22-9.74-3.26-21.1 0-32.45 4.9C82.2 9.77 79.5 0 68.13 0zM15.26 30.42c8.95 6.63 13.63 13.86 16.07 20.94l1.62 6.32c1.24 6.58 1.07 12.8 1.27 18.03z"> d="M68.13 0C53.94 0 42.81 20 13.9 27.1l-2.23-5.29a6.5 6.5 0 0 0-5.17-10.4 6.5 6.5 0 0 0-.81 12.95L46.2 120l5.99-2.5-14.42-33.33c22.8-6.86 32.51-22.16 49.83-20.58 9.9.9 4.87 19.56 8.11 17.93 16.22-8.15 32.44-11.41 50.29-11.41-7.96-9.78-17.38-20.55-22.71-31.74L120.8 32c-2.32-7.33-2.56-14.75.87-22.22-9.74-3.26-21.1 0-32.45 4.9C82.2 9.77 79.5 0 68.13 0zM15.26 30.42c8.95 6.63 13.63 13.86 16.07 20.94l1.62 6.32c1.24 6.58 1.07 12.8 1.27 18.03z">
</path> </path>
</svg> </svg>
</li> </li>
<li class="applist-entry"> <li class="applist-entry">
<div class="applist-text"> <div class="applist-text">
<p><strong>Tusky</strong> is a lightweight mobile client for Android.</p> <p><strong>Tusky</strong> is a lightweight mobile client for Android.</p>
<a href="https://tusky.app" rel="nofollow noreferrer noopener" target="_blank"> <a href="https://tusky.app" rel="nofollow noreferrer noopener" target="_blank">
Get Tusky Get Tusky
</a> </a>
</div> </div>
<img class="applist-logo" src="/assets/tusky.svg" <img class="applist-logo" src="/assets/tusky.svg"
alt="The Tusky mascot, a cartoon elephant tooting happily" alt="The Tusky mascot, a cartoon elephant tooting happily"
title="The Tusky mascot, a cartoon elephant tooting happily" width="100" height="100" /> title="The Tusky mascot, a cartoon elephant tooting happily" width="100" height="100" />
</li> </li>
<li class="applist-entry"> <li class="applist-entry">
<div class="applist-text"> <div class="applist-text">
<p><strong>Feditext</strong> (beta) is a beautiful client for iOS, iPadOS and macOS.</p> <p><strong>Feditext</strong> (beta) is a beautiful client for iOS, iPadOS and macOS.</p>
<a href="https://github.com/feditext/feditext" rel="nofollow noreferrer noopener" target="_blank"> <a href="https://github.com/feditext/feditext" rel="nofollow noreferrer noopener" target="_blank">
Get Feditext Get Feditext
</a> </a>
</div> </div>
<img class="applist-logo" src="/assets/feditext.svg" <img class="applist-logo" src="/assets/feditext.svg"
alt="The Feditext logo, the characters 'ft' at a slight angle" alt="The Feditext logo, the characters 'ft' at a slight angle"
title="The Feditext logo, the characters 'ft' at a slight angle" width="100" height="100" /> title="The Feditext logo, the characters 'ft' at a slight angle" width="100" height="100" />
</li> </li>
<li class="applist-entry"> <li class="applist-entry">
<div class="applist-text"> <div class="applist-text">
<p>Or try one of the <strong>Mastodon clients</strong> listed on the official Mastodon page.</p> <p>Or try one of the <strong>Mastodon clients</strong> listed on the official Mastodon page.</p>
<a href="https://joinmastodon.org/apps" rel="nofollow noreferrer noopener" target="_blank"> <a href="https://joinmastodon.org/apps" rel="nofollow noreferrer noopener" target="_blank">
Get Mastodon apps Get Mastodon apps
</a> </a>
</div> </div>
<img class="applist-logo" src="/assets/mastodon.svg" <img class="applist-logo" src="/assets/mastodon.svg"
alt="The Mastodon logo, the character 'M' in a speech bubble" alt="The Mastodon logo, the character 'M' in a speech bubble"
title="The Mastodon logo, the character 'M' in a speech bubble" width="100" height="100" /> title="The Mastodon logo, the character 'M' in a speech bubble" width="100" height="100" />
</li> </li>
</ul> </ul>
</div> </div>
</section> </section>
{{- end }} {{- end }}

View file

@ -28,15 +28,15 @@ New account registration is currently&nbsp;
{{- with . }} {{- with . }}
<section role="region" aria-labelledby="signup"> <section role="region" aria-labelledby="signup">
<h2 id="signup">Register an Account on {{ .instance.Title -}}</h2> <h2 id="signup">Register an Account on {{ .instance.Title -}}</h2>
<div> <div>
<p>{{- template "registrationLimits" . -}}</p> <p>{{- template "registrationLimits" . -}}</p>
{{- if .instance.Registrations }} {{- if .instance.Registrations }}
<p>To register a new account, please first read the <a href="/about#rules">rules</a> and <a <p>To register a new account, please first read the <a href="/about#rules">rules</a> and <a
href="/about#terms">terms</a>.</p> href="/about#terms">terms</a>.</p>
<p>Then, use the <a href="/signup">sign-up page</a> to register an account.</p> <p>Then, use the <a href="/signup">sign-up page</a> to register an account.</p>
<p>Manual admin approval is <b>required</b> for new accounts.</p> <p>Manual admin approval is <b>required</b> for new accounts.</p>
{{- end }} {{- end }}
</div> </div>
</section> </section>
{{- end }} {{- end }}

View file

@ -19,50 +19,50 @@
{{- with . }} {{- with . }}
<section role="region" class="what-is-this" aria-labelledby="what-is-this"> <section role="region" class="what-is-this" aria-labelledby="what-is-this">
<h2 id="what-is-this">What is this?</h2> <h2 id="what-is-this">What is this?</h2>
<div> <div>
<p> <p>
The web page you're reading right now is served by an instance of GoToSocial, The web page you're reading right now is served by an instance of GoToSocial,
a federated, distributed, open-source microblogging software which connects a federated, distributed, open-source microblogging software which connects
to other instances across a network known as the "fediverse". to other instances across a network known as the "fediverse".
</p> </p>
<h3 id="what-is-an-instance">What is an "instance"?</h3> <h3 id="what-is-an-instance">What is an "instance"?</h3>
<p> <p>
"Instance" is a term commonly used for one node in the fediverse. Each instance "Instance" is a term commonly used for one node in the fediverse. Each instance
has its own web address, user(s), culture, rules, and settings. Instances exchange has its own web address, user(s), culture, rules, and settings. Instances exchange
data by "talking" to each other over the internet using a protocol called ActivityPub. data by "talking" to each other over the internet using a protocol called ActivityPub.
</p> </p>
<a class="activitypub-logo-wrapper" href="https://activitypub.rocks/" rel="nofollow noreferrer noopener" <a class="activitypub-logo-wrapper" href="https://activitypub.rocks/" rel="nofollow noreferrer noopener"
target="_blank"> target="_blank">
<img class="activitypub-logo" src="/assets/activitypub_light.svg" alt="ActivityPub logo by mray, CC0 1.0" <img class="activitypub-logo" src="/assets/activitypub_light.svg" alt="ActivityPub logo by mray, CC0 1.0"
title="ActivityPub logo by mray, CC0 1.0" width="250" height="65" /> title="ActivityPub logo by mray, CC0 1.0" width="250" height="65" />
Learn more about ActivityPub (opens in a new tab). Learn more about ActivityPub (opens in a new tab).
</a> </a>
<p> <p>
Each instance can, in theory, talk to each other instance, allowing people to talk Each instance can, in theory, talk to each other instance, allowing people to talk
to one another across a decentralized network that has no single authority in charge. to one another across a decentralized network that has no single authority in charge.
</p> </p>
<p> <p>
There are thousands of fediverse instances, connecting millions of people together. There are thousands of fediverse instances, connecting millions of people together.
</p> </p>
<h3 id="how-do-i-join-the-fediverse">How do I join the fediverse?</h3> <h3 id="how-do-i-join-the-fediverse">How do I join the fediverse?</h3>
<p> <p>
You can join the fediverse by running your own instance of an ActivityPub software, You can join the fediverse by running your own instance of an ActivityPub software,
or by finding an existing instance that aligns with your values and expectations, or by finding an existing instance that aligns with your values and expectations,
and registering an account. and registering an account.
</p> </p>
<p> <p>
To help you find an instance that suits you, you can try one of the following tools: To help you find an instance that suits you, you can try one of the following tools:
</p> </p>
<ul> <ul>
<li><a href="https://fediverse.observer" rel="nofollow noreferrer noopener" target="_blank">Fediverse <li><a href="https://fediverse.observer" rel="nofollow noreferrer noopener" target="_blank">Fediverse
Observer (opens in a new tab)</a></li> Observer (opens in a new tab)</a></li>
<li><a href="https://fedidb.org/network" rel="nofollow noreferrer noopener" target="_blank">FediDB (opens in <li><a href="https://fedidb.org/network" rel="nofollow noreferrer noopener" target="_blank">FediDB (opens in
a new tab)</a></li> a new tab)</a></li>
</ul> </ul>
{{- if .instance.Registrations }} {{- if .instance.Registrations }}
<p>Or, just <a href="signup">register for an account on this instance</a>!</p> <p>Or, just <a href="signup">register for an account on this instance</a>!</p>
{{- end }} {{- end }}
</div> </div>
</section> </section>
{{- end }} {{- end }}

View file

@ -19,10 +19,10 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="oob-token"> <section class="oob-token">
<h1>Hi <b>{{- .user -}}</b>!</h1> <h1>Hi <b>{{- .user -}}</b>!</h1>
<p>Here's your out-of-band token with scope "<em>{{- .scope -}}</em>", use it wisely:</p> <p>Here's your out-of-band token with scope "<em>{{- .scope -}}</em>", use it wisely:</p>
<code>{{- .oobToken -}}</code> <code>{{- .oobToken -}}</code>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -45,45 +45,45 @@ image/webp
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="{{- if .robotsMeta -}}{{- .robotsMeta -}}{{- else -}}noindex, nofollow{{- end -}}"> <meta name="robots" content="{{- if .robotsMeta -}}{{- .robotsMeta -}}{{- else -}}noindex, nofollow{{- end -}}">
{{- if .ogMeta }} {{- if .ogMeta }}
{{- include "page_ogmeta.tmpl" . | indent 2 }} {{- include "page_ogmeta.tmpl" . | indent 2 }}
{{- else }} {{- else }}
{{- end }} {{- end }}
{{- if .rssFeed }} {{- if .rssFeed }}
<link rel="alternate" type="application/rss+xml" href="{{- .rssFeed -}}" title="{{- template "instanceTitle" . -}}"> <link rel="alternate" type="application/rss+xml" href="{{- .rssFeed -}}" title="{{- template "instanceTitle" . -}}">
{{- else }} {{- else }}
{{- end }} {{- end }}
{{- if .account }} {{- if .account }}
<link rel="alternate" type="application/activity+json" href="/users/{{- .account.Username -}}"> <link rel="alternate" type="application/activity+json" href="/users/{{- .account.Username -}}">
{{- else if .status }} {{- else if .status }}
<link rel="alternate" type="application/activity+json" <link rel="alternate" type="application/activity+json"
href="/users/{{- .status.Account.Username -}}/statuses/{{- .status.ID -}}"> href="/users/{{- .status.Account.Username -}}/statuses/{{- .status.ID -}}">
{{- else }} {{- else }}
{{- end }} {{- end }}
<link rel="icon" href="{{- .instance.Thumbnail -}}" type="{{- template "thumbnailType" . -}}"> <link rel="icon" href="{{- .instance.Thumbnail -}}" type="{{- template "thumbnailType" . -}}">
<link rel="apple-touch-icon" href="{{- .instance.Thumbnail -}}" type="{{- template "thumbnailType" . -}}"> <link rel="apple-touch-icon" href="{{- .instance.Thumbnail -}}" type="{{- template "thumbnailType" . -}}">
<link rel="apple-touch-startup-image" href="{{- .instance.Thumbnail -}}" type="{{- template "thumbnailType" . -}}"> <link rel="apple-touch-startup-image" href="{{- .instance.Thumbnail -}}" type="{{- template "thumbnailType" . -}}">
{{- include "page_stylesheets.tmpl" . | indent 2 }} {{- include "page_stylesheets.tmpl" . | indent 2 }}
{{- range .javascript }} {{- range .javascript }}
<script type="text/javascript" src="{{- . -}}" async="" defer=""></script> <script type="text/javascript" src="{{- . -}}" async="" defer=""></script>
{{- end }} {{- end }}
<title>{{- template "instanceTitle" . -}}</title> <title>{{- template "instanceTitle" . -}}</title>
</head> </head>
<body class="page{{if .pageType}} {{.pageType}}{{end}}"> <body class="page{{if .pageType}} {{.pageType}}{{end}}">
<header class="page-header{{if .largeHeader}} large{{end}}"> <header class="page-header{{if .largeHeader}} large{{end}}">
{{- include "page_header.tmpl" . | indent 3 }} {{- include "page_header.tmpl" . | indent 3 }}
</header> </header>
<div class="page-content"> <div class="page-content">
{{- include .pageContent . | indent 3 | outdentPre }} {{- include .pageContent . | indent 3 | outdentPre }}
</div> </div>
<footer class="page-footer"> <footer class="page-footer">
{{- include "page_footer.tmpl" . | indent 3 }} {{- include "page_footer.tmpl" . | indent 3 }}
</footer> </footer>
</body> </body>
</html> </html>

View file

@ -19,35 +19,35 @@
{{- with . }} {{- with . }}
<nav> <nav>
<ul class="nodot"> <ul class="nodot">
<li id="about"> <li id="about">
<a href="/about" class="nounderline"> <a href="/about" class="nounderline">
About {{ .instance.Title }} About {{ .instance.Title }}
</a> </a>
</li> </li>
<li id="version"> <li id="version">
<a href="https://github.com/superseriousbusiness/gotosocial" class="nounderline" <a href="https://github.com/superseriousbusiness/gotosocial" class="nounderline"
rel="nofollow noreferrer noopener" target="_blank"> rel="nofollow noreferrer noopener" target="_blank">
<span aria-hidden="true">🦥</span> <span aria-hidden="true">🦥</span>
Source - GoToSocial {{ .instance.Version }} Source - GoToSocial {{ .instance.Version }}
<span aria-hidden="true">🦥</span> <span aria-hidden="true">🦥</span>
</a> </a>
</li> </li>
{{- if .instance.ContactAccount }} {{- if .instance.ContactAccount }}
<li id="contact"> <li id="contact">
<a href="/@{{- .instance.ContactAccount.Username -}}" class="nounderline"> <a href="/@{{- .instance.ContactAccount.Username -}}" class="nounderline">
Contact account - {{ .instance.ContactAccount.Username }} Contact account - {{ .instance.ContactAccount.Username }}
</a> </a>
</li> </li>
{{- end }} {{- end }}
{{- if .instance.Email }} {{- if .instance.Email }}
<li id="email"> <li id="email">
<a href="mailto:{{- .instance.Email -}}" class="nounderline" rel="nofollow noreferrer noopener" <a href="mailto:{{- .instance.Email -}}" class="nounderline" rel="nofollow noreferrer noopener"
target="_blank"> target="_blank">
Email - {{ .instance.Email }} Email - {{ .instance.Email }}
</a> </a>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>
</nav> </nav>
{{- end }} {{- end }}

View file

@ -57,18 +57,18 @@ Instance Logo
{{- with . }} {{- with . }}
<a aria-label="{{- .instance.Title -}}. Go to instance homepage" href="/" class="nounderline"> <a aria-label="{{- .instance.Title -}}. Go to instance homepage" href="/" class="nounderline">
<picture> <picture>
{{- if .instance.ThumbnailStatic }} {{- if .instance.ThumbnailStatic }}
<source srcset="{{- .instance.ThumbnailStatic -}}" type="{{- .instance.ThumbnailStaticType -}}" <source srcset="{{- .instance.ThumbnailStatic -}}" type="{{- .instance.ThumbnailStaticType -}}"
media="(prefers-reduced-motion: reduce)" /> media="(prefers-reduced-motion: reduce)" />
{{- end }} {{- end }}
<img src="{{- .instance.Thumbnail -}}" alt="{{- template "thumbnailDescription" . -}}" <img src="{{- .instance.Thumbnail -}}" alt="{{- template "thumbnailDescription" . -}}"
title="{{- template "thumbnailDescription" . -}}" /> title="{{- template "thumbnailDescription" . -}}" />
</picture> </picture>
<h1>{{- .instance.Title -}}</h1> <h1>{{- .instance.Title -}}</h1>
</a> </a>
{{- if .showStrap }} {{- if .showStrap }}
<aside>home to {{ template "strapUsers" . }} who wrote {{ template "strapPosts" . }}, federating with <aside>home to {{ template "strapUsers" . }} who wrote {{ template "strapPosts" . }}, federating with
{{ template "strapInstances" . }}</aside> {{ template "strapInstances" . }}</aside>
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -20,16 +20,17 @@
{{- define "profileMovedTo" -}} {{- define "profileMovedTo" -}}
{{- with .account.Moved }} {{- with .account.Moved }}
<div class="moved-to"> <div class="moved-to">
<b> <b>
This account has permanently moved to This account has permanently moved to
<a <a
href="{{ .URL }}" href="{{ .URL }}"
class="nounderline" class="nounderline"
rel="nofollow noreferrer noopener" rel="nofollow noreferrer noopener"
target="_blank"> target="_blank"
@{{ .Username }} >
</a> @{{ .Username }}
</b> </a>
</b>
</div> </div>
{{- end }} {{- end }}
{{- end -}} {{- end -}}
@ -41,216 +42,226 @@
{{- define "avatarWidth" -}} {{- define "avatarWidth" -}}
{{- with .account }} {{- with .account }}
{{- if isNil .AvatarAttachment -}} {{- if isNil .AvatarAttachment -}}
{{- template "defaultAvatarDimension" . -}} {{- template "defaultAvatarDimension" . -}}
{{- else -}} {{- else -}}
{{- /* Use the avatar's proper dimensions. */ -}} {{- /* Use the avatar's proper dimensions. */ -}}
{{- .AvatarAttachment.Meta.Original.Width -}} {{- .AvatarAttachment.Meta.Original.Width -}}
{{- end -}} {{- end -}}
{{- end }} {{- end }}
{{- end -}} {{- end -}}
{{- define "avatarHeight" -}} {{- define "avatarHeight" -}}
{{- with .account }} {{- with .account }}
{{- if isNil .AvatarAttachment -}} {{- if isNil .AvatarAttachment -}}
{{- template "defaultAvatarDimension" . -}} {{- template "defaultAvatarDimension" . -}}
{{- else -}} {{- else -}}
{{- /* Use the avatar's proper dimensions. */ -}} {{- /* Use the avatar's proper dimensions. */ -}}
{{- .AvatarAttachment.Meta.Original.Height -}} {{- .AvatarAttachment.Meta.Original.Height -}}
{{- end -}} {{- end -}}
{{- end }} {{- end }}
{{- end -}} {{- end -}}
{{- define "avatarAlt" -}} {{- define "avatarAlt" -}}
Avatar for {{ .account.Username -}} Avatar for {{ .account.Username -}}
{{- if .account.AvatarDescription }} {{- if .account.AvatarDescription }}
{{- /* Add the avatar's image description. */ -}} {{- /* Add the avatar's image description. */ -}}
: {{ .account.AvatarDescription -}} : {{ .account.AvatarDescription -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- define "headerAlt" -}} {{- define "headerAlt" -}}
Header for {{ .account.Username -}} Header for {{ .account.Username -}}
{{- if .account.HeaderDescription }} {{- if .account.HeaderDescription }}
{{- /* Add the header's image description. */ -}} {{- /* Add the header's image description. */ -}}
: {{ .account.HeaderDescription -}} : {{ .account.HeaderDescription -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- define "avatar" -}} {{- define "avatar" -}}
{{- with . }} {{- with . }}
<div <div
class="media photoswipe-gallery odd single avatar-image-wrapper" class="media photoswipe-gallery odd single avatar-image-wrapper"
role="group"> role="group"
<a >
class="photoswipe-slide" <a
href="{{- .account.Avatar -}}" class="photoswipe-slide"
target="_blank" href="{{- .account.Avatar -}}"
data-pswp-width="{{- template "avatarWidth" . -}}px" target="_blank"
data-pswp-height="{{- template "avatarHeight" . -}}px" data-pswp-width="{{- template "avatarWidth" . -}}px"
data-cropped="true" data-pswp-height="{{- template "avatarHeight" . -}}px"
alt="{{- template "avatarAlt" . -}}" data-cropped="true"
title="{{- template "avatarAlt" . -}}"> alt="{{- template "avatarAlt" . -}}"
<picture title="{{- template "avatarAlt" . -}}"
aria-hidden="true"> >
{{- if .account.AvatarAttachment }} <picture
<source aria-hidden="true"
class="avatar" >
srcset="{{- .account.AvatarStatic -}}" {{- if .account.AvatarAttachment }}
type="{{- .account.AvatarAttachment.PreviewMIMEType -}}" <source
media="(prefers-reduced-motion: reduce)" /> class="avatar"
{{- end }} srcset="{{- .account.AvatarStatic -}}"
<img type="{{- .account.AvatarAttachment.PreviewMIMEType -}}"
class="avatar" media="(prefers-reduced-motion: reduce)"
src="{{- .account.Avatar -}}" />
alt="{{- template "avatarAlt" . -}}" {{- end }}
title="{{- template "avatarAlt" . -}}" <img
width="{{- template "avatarWidth" . -}}" class="avatar"
height="{{- template "avatarHeight" . -}}" /> src="{{- .account.Avatar -}}"
</picture> alt="{{- template "avatarAlt" . -}}"
</a> title="{{- template "avatarAlt" . -}}"
width="{{- template "avatarWidth" . -}}"
height="{{- template "avatarHeight" . -}}"
/>
</picture>
</a>
</div> </div>
{{- end }} {{- end }}
{{- end -}} {{- end -}}
{{- with . }} {{- with . }}
<main class="profile"> <main class="profile">
<h2 class="sr-only">Profile for {{ .account.Username -}}</h2> <h2 class="sr-only">Profile for {{ .account.Username -}}</h2>
<section class="profile-header" role="region" aria-label="Basic info"> <section class="profile-header" role="region" aria-label="Basic info">
{{- if .account.Moved }} {{- if .account.Moved }}
{{- include "profileMovedTo" . | indent 2 }} {{- include "profileMovedTo" . | indent 2 }}
{{- end }} {{- end }}
<div class="header-image-wrapper"> <div class="header-image-wrapper">
<picture> <picture>
{{- if .account.HeaderAttachment }} {{- if .account.HeaderAttachment }}
<source <source
srcset="{{- .account.HeaderStatic -}}" srcset="{{- .account.HeaderStatic -}}"
type="{{- .account.HeaderAttachment.PreviewMIMEType -}}" type="{{- .account.HeaderAttachment.PreviewMIMEType -}}"
media="(prefers-reduced-motion: reduce)" /> media="(prefers-reduced-motion: reduce)"
{{- end }} />
<img {{- end }}
src="{{- .account.Header -}}" <img
alt="{{- template "headerAlt" . -}}" src="{{- .account.Header -}}"
title="{{- template "headerAlt" . -}}" /> alt="{{- template "headerAlt" . -}}"
</picture> title="{{- template "headerAlt" . -}}"
</div> />
<div class="basic-info"> </picture>
{{- with . }} </div>
{{- include "avatar" . | indent 3 }} <div class="basic-info">
{{- end }} {{- with . }}
<dl class="namerole"> {{- include "avatar" . | indent 3 }}
<dt class="sr-only">Display name</dt> {{- end }}
<dd class="displayname text-cutoff"> <dl class="namerole">
{{- if .account.DisplayName -}} <dt class="sr-only">Display name</dt>
{{- emojify .account.Emojis (escape .account.DisplayName) -}} <dd class="displayname text-cutoff">
{{- else -}} {{- if .account.DisplayName -}}
{{- .account.Username -}} {{- emojify .account.Emojis (escape .account.DisplayName) -}}
{{- end -}} {{- else -}}
</dd> {{- .account.Username -}}
<div class="bot-username-wrapper"> {{- end -}}
{{- if .account.Bot }} </dd>
<dt class="sr-only">Bot account</dt> <div class="bot-username-wrapper">
<dd> {{- if .account.Bot }}
<span class="sr-only">true</span> <dt class="sr-only">Bot account</dt>
<div <dd>
class="bot-legend-wrapper" <span class="sr-only">true</span>
aria-hidden="true" <div
title="This is a bot account."> class="bot-legend-wrapper"
<i class="bot-icon fa fa-microchip"></i> aria-hidden="true"
<span class="bot-legend">bot</span> title="This is a bot account."
</div> >
</dd> <i class="bot-icon fa fa-microchip"></i>
{{- end }} <span class="bot-legend">bot</span>
<dt class="sr-only">Username</dt> </div>
<dd class="username text-cutoff">@{{- .account.Username -}}@{{- .instance.AccountDomain -}}</dd> </dd>
</div> {{- end }}
{{- if .account.Roles }} <dt class="sr-only">Username</dt>
<dt class="sr-only">Role</dt> <dd class="username text-cutoff">@{{- .account.Username -}}@{{- .instance.AccountDomain -}}</dd>
{{- range .account.Roles }} </div>
<dd class="role {{ .Name -}}">{{- .Name -}}</dd> {{- if .account.Roles }}
{{- end }} <dt class="sr-only">Role</dt>
{{- end }} {{- range .account.Roles }}
</dl> <dd class="role {{ .Name -}}">{{- .Name -}}</dd>
</div> {{- end }}
</section> {{- end }}
<div class="column-split"> </dl>
<section class="about-user" role="region" aria-labelledby="about-header"> </div>
<div class="col-header"> </section>
<h3 id="about-header">About<span class="sr-only">&nbsp;{{- .account.Username -}}</span></h3> <div class="column-split">
</div> <section class="about-user" role="region" aria-labelledby="about-header">
{{- if .account.Fields }} <div class="col-header">
{{- include "profile_fields.tmpl" . | indent 3 }} <h3 id="about-header">About<span class="sr-only">&nbsp;{{- .account.Username -}}</span></h3>
{{- end }} </div>
<h4 class="sr-only">Bio</h4> {{- if .account.Fields }}
<div class="bio"> {{- include "profile_fields.tmpl" . | indent 3 }}
{{- if .account.Note }} {{- end }}
{{ emojify .account.Emojis (noescape .account.Note) }} <h4 class="sr-only">Bio</h4>
{{- else }} <div class="bio">
<p>This GoToSocial user hasn't written a bio yet!</p> {{- if .account.Note }}
{{- end }} {{ emojify .account.Emojis (noescape .account.Note) }}
</div> {{- else }}
<h4 class="sr-only">Stats</h4> <p>This GoToSocial user hasn't written a bio yet!</p>
<dl class="accountstats"> {{- end }}
<dt>Joined</dt> </div>
<dd><time datetime="{{- .account.CreatedAt -}}">{{- .account.CreatedAt | timestampVague -}}</time></dd> <h4 class="sr-only">Stats</h4>
<dt>Posts</dt> <dl class="accountstats">
<dd>{{- .account.StatusesCount -}}</dd> <dt>Joined</dt>
<dt>Followed by</dt> <dd><time datetime="{{- .account.CreatedAt -}}">{{- .account.CreatedAt | timestampVague -}}</time></dd>
<dd>{{- if .account.HideCollections -}}<i>hidden</i>{{- else -}}{{- .account.FollowersCount -}}{{- end -}}</dd> <dt>Posts</dt>
<dt>Following</dt> <dd>{{- .account.StatusesCount -}}</dd>
<dd>{{- if .account.HideCollections -}}<i>hidden</i>{{- else -}}{{- .account.FollowingCount -}}{{- end -}}</dd> <dt>Followed by</dt>
</dl> <dd>{{- if .account.HideCollections -}}<i>hidden</i>{{- else -}}{{- .account.FollowersCount -}}{{- end -}}</dd>
</section> <dt>Following</dt>
<div class="statuses-wrapper" role="region" aria-label="Posts by {{ .account.Username -}}"> <dd>{{- if .account.HideCollections -}}<i>hidden</i>{{- else -}}{{- .account.FollowingCount -}}{{- end -}}</dd>
{{- if .pinned_statuses }} </dl>
<section class="pinned statuses" aria-labelledby="pinned"> </section>
<div class="col-header"> <div class="statuses-wrapper" role="region" aria-label="Posts by {{ .account.Username -}}">
<h3 id="pinned">Pinned posts</h3> {{- if .pinned_statuses }}
<a href="#recent">jump to recent</a> <section class="pinned statuses" aria-labelledby="pinned">
</div> <div class="col-header">
<div class="thread"> <h3 id="pinned">Pinned posts</h3>
{{- range .pinned_statuses }} <a href="#recent">jump to recent</a>
<article </div>
class="status expanded" <div class="thread">
{{- includeAttr "status_attributes.tmpl" . | indentAttr 6 }}> {{- range .pinned_statuses }}
{{- include "status.tmpl" . | indent 6 }} <article
</article> class="status expanded"
{{- end }} {{- includeAttr "status_attributes.tmpl" . | indentAttr 6 }}
</div> >
</section> {{- include "status.tmpl" . | indent 6 }}
{{- end }} </article>
<section class="recent statuses" aria-labelledby="recent"> {{- end }}
<div class="col-header"> </div>
<h3 id="recent" tabindex="-1">Recent posts</h3> </section>
{{- if .rssFeed }} {{- end }}
<a href="{{- .rssFeed -}}" class="rss-icon" aria-label="RSS feed"> <section class="recent statuses" aria-labelledby="recent">
<i class="fa fa-rss-square" aria-hidden="true"></i> <div class="col-header">
</a> <h3 id="recent" tabindex="-1">Recent posts</h3>
{{- end }} {{- if .rssFeed }}
</div> <a href="{{- .rssFeed -}}" class="rss-icon" aria-label="RSS feed">
<div class="thread"> <i class="fa fa-rss-square" aria-hidden="true"></i>
{{- if not .statuses }} </a>
<div data-nosnippet class="nothinghere">Nothing here!</div> {{- end }}
{{- else }} </div>
{{- range .statuses }} <div class="thread">
<article {{- if not .statuses }}
class="status expanded" <div data-nosnippet class="nothinghere">Nothing here!</div>
{{- includeAttr "status_attributes.tmpl" . | indentAttr 6 }}> {{- else }}
{{- include "status.tmpl" . | indent 6 }} {{- range .statuses }}
</article> <article
{{- end }} class="status expanded"
{{- end }} {{- includeAttr "status_attributes.tmpl" . | indentAttr 6 }}
</div> >
<nav class="backnextlinks"> {{- include "status.tmpl" . | indent 6 }}
{{- if .show_back_to_top }} </article>
<a href="/@{{- .account.Username -}}">Back to top</a> {{- end }}
{{- end }} {{- end }}
{{- if .statuses_next }} </div>
<a href="{{- .statuses_next -}}" class="next">Show older</a> <nav class="backnextlinks">
{{- end }} {{- if .show_back_to_top }}
</nav> <a href="/@{{- .account.Username -}}">Back to top</a>
</section> {{- end }}
</div> {{- if .statuses_next }}
</div> <a href="{{- .statuses_next -}}" class="next">Show older</a>
{{- end }}
</nav>
</section>
</div>
</div>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,14 +19,14 @@
{{- with . }} {{- with . }}
<div class="fields"> <div class="fields">
<h4 class="sr-only">Fields</h4> <h4 class="sr-only">Fields</h4>
<dl> <dl>
{{- range .account.Fields }} {{- range .account.Fields }}
<div class="field"> <div class="field">
<dt>{{- emojify $.account.Emojis (noescape .Name) -}}</dt> <dt>{{- emojify $.account.Emojis (noescape .Name) -}}</dt>
<dd>{{- emojify $.account.Emojis (noescape .Value) -}}</dd> <dd>{{- emojify $.account.Emojis (noescape .Value) -}}</dd>
</div> </div>
{{- end }} {{- end }}
</dl> </dl>
</div> </div>
{{- end }} {{- end }}

View file

@ -19,6 +19,6 @@
{{- with . }} {{- with . }}
<main class="settings"> <main class="settings">
<div id="root"></div> <div id="root"></div>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,19 +19,19 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="with-form" aria-labelledby="sign-in"> <section class="with-form" aria-labelledby="sign-in">
<h2 id="sign-in">Sign in</h2> <h2 id="sign-in">Sign in</h2>
<form action="/auth/sign_in" method="POST"> <form action="/auth/sign_in" method="POST">
<div class="labelinput"> <div class="labelinput">
<label for="email">Email</label> <label for="email">Email</label>
<input type="email" name="username" required placeholder="Please enter your email address"> <input type="email" name="username" required placeholder="Please enter your email address">
</div> </div>
<div class="labelinput"> <div class="labelinput">
<label for="password">Password</label> <label for="password">Password</label>
<input type="password" name="password" required placeholder="Please enter your password"> <input type="password" name="password" required placeholder="Please enter your password">
</div> </div>
<button type="submit" class="btn btn-success">Sign in</button> <button type="submit" class="btn btn-success">Sign in</button>
</form> </form>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,53 +19,53 @@
{{- with . }} {{- with . }}
<main> <main>
<section class="with-form" aria-labelledby="sign-up"> <section class="with-form" aria-labelledby="sign-up">
<h2 id="sign-up">Sign up for an account on {{ .instance.Title -}}</h2> <h2 id="sign-up">Sign up for an account on {{ .instance.Title -}}</h2>
{{- if not .registrationOpen }} {{- if not .registrationOpen }}
<p>This instance is not currently open to new sign-ups.</p> <p>This instance is not currently open to new sign-ups.</p>
{{- else }} {{- else }}
<form action="/signup" method="POST"> <form action="/signup" method="POST">
<div class="labelinput"> <div class="labelinput">
<label for="email">Email</label> <label for="email">Email</label>
<input id="email" type="email" name="email" required placeholder="Email address"> <input id="email" type="email" name="email" required placeholder="Email address">
</div> </div>
<div class="labelinput"> <div class="labelinput">
<label for="password">Password</label> <label for="password">Password</label>
<input id="password" type="password" name="password" required <input id="password" type="password" name="password" required
placeholder="Please enter your desired password" autocomplete="new-password"> placeholder="Please enter your desired password" autocomplete="new-password">
</div> </div>
<div class="labelinput"> <div class="labelinput">
<label for="username"> <label for="username">
Username (lowercase a-z, numbers, and underscores; max 64 characters).<br /> Username (lowercase a-z, numbers, and underscores; max 64 characters).<br />
<small>Your username will be part of your fediverse handle, and cannot be changed later, so choose <small>Your username will be part of your fediverse handle, and cannot be changed later, so choose
thoughtfully!</small> thoughtfully!</small>
</label> </label>
<input id="username" type="text" name="username" required <input id="username" type="text" name="username" required
placeholder="Please enter your desired username" pattern="^[a-z0-9_]{1,64}$" autocapitalize="off" placeholder="Please enter your desired username" pattern="^[a-z0-9_]{1,64}$" autocapitalize="off"
spellcheck="false" title="lowercase a-z, numbers, and underscores; max 64 characters"> spellcheck="false" title="lowercase a-z, numbers, and underscores; max 64 characters">
</div> </div>
{{- if .reasonRequired }} {{- if .reasonRequired }}
<div class="labelinput"> <div class="labelinput">
<label for="reason"> <label for="reason">
Reason you want to join {{ .instance.Title }} (40-500 characters).<br /> Reason you want to join {{ .instance.Title }} (40-500 characters).<br />
<small>The admin(s) will use this text to decide whether or not to approve your sign-up.</small> <small>The admin(s) will use this text to decide whether or not to approve your sign-up.</small>
</label> </label>
<textarea id="reason" name="reason" required <textarea id="reason" name="reason" required
placeholder="Enter a few sentences about why you want to join this instance. If you know someone on the instance already, you may want to mention them here. You might want to link to any other accounts you have elsewhere too." placeholder="Enter a few sentences about why you want to join this instance. If you know someone on the instance already, you may want to mention them here. You might want to link to any other accounts you have elsewhere too."
rows="8" minlength="40" maxlength="500" autocapitalize="sentences" rows="8" minlength="40" maxlength="500" autocapitalize="sentences"
title="40-500 characters"></textarea> title="40-500 characters"></textarea>
</div> </div>
{{- end }} {{- end }}
<div class="checkbox"> <div class="checkbox">
<label for="agreement">I have read and accept the <a href="/about#terms">terms and conditions</a> of <label for="agreement">I have read and accept the <a href="/about#terms">terms and conditions</a> of
{{ .instance.Title }}, and I agree to abide by the <a href="/about#rules">instance {{ .instance.Title }}, and I agree to abide by the <a href="/about#rules">instance
rules</a>.</label> rules</a>.</label>
<input id="agreement" type="checkbox" name="agreement" required value="true"> <input id="agreement" type="checkbox" name="agreement" required value="true">
</div> </div>
<input type="hidden" name="locale" value="en"> <input type="hidden" name="locale" value="en">
<button type="submit" class="btn btn-success">Submit</button> <button type="submit" class="btn btn-success">Submit</button>
</form> </form>
{{- end }} {{- end }}
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -19,12 +19,12 @@
{{- with . }} {{- with . }}
<main> <main>
<section aria-labelledby="signed-up"> <section aria-labelledby="signed-up">
<h2 id="signed-up">Thanks for signing up to {{ .instance.Title -}}!</h2> <h2 id="signed-up">Thanks for signing up to {{ .instance.Title -}}!</h2>
<p>Hi <b>{{- .username -}}</b>!</p> <p>Hi <b>{{- .username -}}</b>!</p>
<p>Your sign-up has been registered, and a confirmation email has been sent to <b>{{- .email -}}</b>.</p> <p>Your sign-up has been registered, and a confirmation email has been sent to <b>{{- .email -}}</b>.</p>
<p>Please check your email inbox and click the link to confirm your email.</p> <p>Please check your email inbox and click the link to confirm your email.</p>
<p>Once an admin has approved your sign-up, you will be able to log in and use your account.</p> <p>Once an admin has approved your sign-up, you will be able to log in and use your account.</p>
</section> </section>
</main> </main>
{{- end }} {{- end }}

View file

@ -20,7 +20,7 @@
{{- define "statusContent" -}} {{- define "statusContent" -}}
{{- with .Content }} {{- with .Content }}
<div class="content" lang="{{- $.LanguageTag.TagStr -}}"> <div class="content" lang="{{- $.LanguageTag.TagStr -}}">
{{ noescape . | emojify $.Emojis }} {{ noescape . | emojify $.Emojis }}
</div> </div>
{{- end }} {{- end }}
{{- end -}} {{- end -}}
@ -32,50 +32,50 @@
{{- with . }} {{- with . }}
<header class="status-header"> <header class="status-header">
{{- include "status_header.tmpl" . | indent 1 }} {{- include "status_header.tmpl" . | indent 1 }}
</header> </header>
<div class="status-body"> <div class="status-body">
{{- if .SpoilerText }} {{- if .SpoilerText }}
<details class="text-spoiler"> <details class="text-spoiler">
<summary> <summary>
<span class="spoiler-text" <span class="spoiler-text"
lang="{{- .LanguageTag.TagStr -}}">{{- emojify .Emojis (escape .SpoilerText) -}}</span> lang="{{- .LanguageTag.TagStr -}}">{{- emojify .Emojis (escape .SpoilerText) -}}</span>
<span class="button" role="button" tabindex="0">Toggle visibility</span> <span class="button" role="button" tabindex="0">Toggle visibility</span>
</summary> </summary>
<div class="text"> <div class="text">
{{- with . }} {{- with . }}
{{- include "statusContent" . | indent 3 }} {{- include "statusContent" . | indent 3 }}
{{- end }} {{- end }}
{{- if .Poll }} {{- if .Poll }}
{{- include "status_poll.tmpl" . | indent 3 }} {{- include "status_poll.tmpl" . | indent 3 }}
{{- end }} {{- end }}
</div> </div>
</details> </details>
{{- else }} {{- else }}
<div class="text"> <div class="text">
{{- with . }} {{- with . }}
{{- include "statusContent" . | indent 2 }} {{- include "statusContent" . | indent 2 }}
{{- end }} {{- end }}
{{- if .Poll }} {{- if .Poll }}
{{- include "status_poll.tmpl" . | indent 2 }} {{- include "status_poll.tmpl" . | indent 2 }}
{{- end }} {{- end }}
</div> </div>
{{- end }} {{- end }}
{{- if .MediaAttachments }} {{- if .MediaAttachments }}
{{- include "status_attachments.tmpl" . | indent 1 }} {{- include "status_attachments.tmpl" . | indent 1 }}
{{- end }} {{- end }}
</div> </div>
<aside class="status-info"> <aside class="status-info">
{{- include "status_info.tmpl" . | indent 1 }} {{- include "status_info.tmpl" . | indent 1 }}
</aside> </aside>
{{- if .Local }} {{- if .Local }}
<a href="{{- .URL -}}" class="status-link" data-nosnippet title="Open thread at this post"> <a href="{{- .URL -}}" class="status-link" data-nosnippet title="Open thread at this post">
Open thread at this post Open thread at this post
</a> </a>
{{- else }} {{- else }}
<a href="{{- .URL -}}" class="status-link" data-nosnippet rel="nofollow noreferrer noopener" target="_blank" <a href="{{- .URL -}}" class="status-link" data-nosnippet rel="nofollow noreferrer noopener" target="_blank"
title="Open remote post (opens in a new window)"> title="Open remote post (opens in a new window)">
Open remote post (opens in a new window) Open remote post (opens in a new window)
</a> </a>
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -24,22 +24,22 @@
{{- define "imagePreview" }} {{- define "imagePreview" }}
<img src="{{- .PreviewURL -}}" loading="lazy" {{- if .Description }} alt="{{- .Description -}}" <img src="{{- .PreviewURL -}}" loading="lazy" {{- if .Description }} alt="{{- .Description -}}"
title="{{- .Description -}}" {{- end }} width="{{- .Meta.Original.Width -}}" title="{{- .Description -}}" {{- end }} width="{{- .Meta.Original.Width -}}"
height="{{- .Meta.Original.Height -}}" /> height="{{- .Meta.Original.Height -}}" />
{{- end }} {{- end }}
{{- define "videoPreview" }} {{- define "videoPreview" }}
<img src="{{- .PreviewURL -}}" loading="lazy" {{- if .Description }} alt="{{- .Description -}}" <img src="{{- .PreviewURL -}}" loading="lazy" {{- if .Description }} alt="{{- .Description -}}"
title="{{- .Description -}}" {{- end }} width="{{- .Meta.Small.Width -}}" height="{{- .Meta.Small.Height -}}" /> title="{{- .Description -}}" {{- end }} width="{{- .Meta.Small.Width -}}" height="{{- .Meta.Small.Height -}}" />
{{- end }} {{- end }}
{{- define "audioPreview" }} {{- define "audioPreview" }}
{{- if and .PreviewURL .Meta.Small.Width }} {{- if and .PreviewURL .Meta.Small.Width }}
<img src="{{- .PreviewURL -}}" loading="lazy" {{- if .Description }} alt="{{- .Description -}}" <img src="{{- .PreviewURL -}}" loading="lazy" {{- if .Description }} alt="{{- .Description -}}"
title="{{- .Description -}}" {{- end }} width="{{- .Meta.Small.Width -}}" height="{{- .Meta.Small.Height -}}" /> title="{{- .Description -}}" {{- end }} width="{{- .Meta.Small.Width -}}" height="{{- .Meta.Small.Height -}}" />
{{- else }} {{- else }}
<img src="/assets/logo.webp" loading="lazy" {{- if .Description }} alt="{{- .Description -}}" <img src="/assets/logo.webp" loading="lazy" {{- if .Description }} alt="{{- .Description -}}"
title="{{- .Description -}}" {{- end }} width="518" height="460" /> title="{{- .Description -}}" {{- end }} width="518" height="460" />
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -55,82 +55,83 @@ media photoswipe-gallery {{ (len .) | oddOrEven }} {{ if eq (len .) 1 }}single{{
{{- with .MediaAttachments }} {{- with .MediaAttachments }}
<div class="{{- template "galleryClass" . -}}" role="group" aria-label="{{- template "attachmentsLength" . -}}"> <div class="{{- template "galleryClass" . -}}" role="group" aria-label="{{- template "attachmentsLength" . -}}">
{{- range $index, $media := . }} {{- range $index, $media := . }}
<div class="media-wrapper"> <div class="media-wrapper">
<details class="{{- $media.Type -}}-spoiler media-spoiler" {{- if not $media.Sensitive }} open{{- end -}}> <details class="{{- $media.Type -}}-spoiler media-spoiler" {{- if not $media.Sensitive }} open{{- end -}}>
<summary> <summary>
<div class="show sensitive button" aria-hidden="true">Show sensitive media</div> <div class="show sensitive button" aria-hidden="true">Show sensitive media</div>
<span class="eye button" role="button" tabindex="0" aria-label="Toggle media"> <span class="eye button" role="button" tabindex="0" aria-label="Toggle media">
<i class="hide fa fa-fw fa-eye-slash" aria-hidden="true"></i> <i class="hide fa fa-fw fa-eye-slash" aria-hidden="true"></i>
<i class="show fa fa-fw fa-eye" aria-hidden="true"></i> <i class="show fa fa-fw fa-eye" aria-hidden="true"></i>
</span> </span>
{{- if or (eq .Type "video") (eq .Type "gifv") }} {{- if or (eq .Type "video") (eq .Type "gifv") }}
{{- include "videoPreview" $media | indent 4 }} {{- include "videoPreview" $media | indent 4 }}
{{- else if eq .Type "image" }} {{- else if eq .Type "image" }}
{{- include "imagePreview" $media | indent 4 }} {{- include "imagePreview" $media | indent 4 }}
{{- else if eq .Type "audio" }} {{- else if eq .Type "audio" }}
{{- include "audioPreview" $media | indent 4 }} {{- include "audioPreview" $media | indent 4 }}
{{- end }} {{- end }}
</summary> </summary>
{{- if or (eq .Type "video") (eq .Type "gifv") }} {{- if or (eq .Type "video") (eq .Type "gifv") }}
<video <video
{{- if eq .Type "video" }} {{- if eq .Type "video" }}
preload="none" preload="none"
{{- else }} {{- else }}
preload="auto" preload="auto"
muted muted
{{- end }} {{- end }}
class="plyr-video photoswipe-slide{{- if eq .Type "gifv" }} gifv{{ end }}" class="plyr-video photoswipe-slide{{- if eq .Type "gifv" }} gifv{{ end }}"
controls controls
playsinline playsinline
data-pswp-index="{{- $index -}}" data-pswp-index="{{- $index -}}"
poster="{{- .PreviewURL -}}" poster="{{- .PreviewURL -}}"
data-pswp-width="{{- $media.Meta.Small.Width -}}px" data-pswp-width="{{- $media.Meta.Small.Width -}}px"
data-pswp-height="{{- $media.Meta.Small.Height -}}px" data-pswp-height="{{- $media.Meta.Small.Height -}}px"
{{- if .Description }} {{- if .Description }}
alt="{{- $media.Description -}}" alt="{{- $media.Description -}}"
title="{{- $media.Description -}}" title="{{- $media.Description -}}"
{{- end }}> {{- end }}
<source type="{{- $media.MIMEType -}}" src="{{- $media.URL -}}" /> >
</video> <source type="{{- $media.MIMEType -}}" src="{{- $media.URL -}}"/>
{{- else if eq .Type "audio" }} </video>
<video {{- else if eq .Type "audio" }}
preload="none" <video
class="plyr-video photoswipe-slide" preload="none"
controls class="plyr-video photoswipe-slide"
playsinline controls
data-pswp-index="{{- $index -}}" playsinline
{{- if and $media.PreviewURL $media.Meta.Small.Width }} data-pswp-index="{{- $index -}}"
poster="{{- .PreviewURL -}}" {{- if and $media.PreviewURL $media.Meta.Small.Width }}
data-pswp-width="{{- $media.Meta.Small.Width -}}px" poster="{{- .PreviewURL -}}"
data-pswp-height="{{- $media.Meta.Small.Height -}}px" {{- else }} poster="/assets/logo.webp" data-pswp-width="{{- $media.Meta.Small.Width -}}px"
width="518px" height="460px" {{- end }} {{- if .Description }} alt="{{- $media.Description -}}" data-pswp-height="{{- $media.Meta.Small.Height -}}px" {{- else }} poster="/assets/logo.webp"
title="{{- $media.Description -}}" {{- end }}> width="518px" height="460px" {{- end }} {{- if .Description }} alt="{{- $media.Description -}}"
<source type="{{- $media.MIMEType -}}" src="{{- $media.URL -}}" /> title="{{- $media.Description -}}" {{- end }}>
</video> <source type="{{- $media.MIMEType -}}" src="{{- $media.URL -}}" />
{{- else if eq .Type "image" }} </video>
<a class="photoswipe-slide" href="{{- $media.URL -}}" target="_blank" {{- else if eq .Type "image" }}
data-pswp-width="{{- $media.Meta.Original.Width -}}px" <a class="photoswipe-slide" href="{{- $media.URL -}}" target="_blank"
data-pswp-height="{{- $media.Meta.Original.Height -}}px" data-cropped="true" {{- if .Description }} data-pswp-width="{{- $media.Meta.Original.Width -}}px"
alt="{{- $media.Description -}}" title="{{- $media.Description -}}" {{- end }}> data-pswp-height="{{- $media.Meta.Original.Height -}}px" data-cropped="true" {{- if .Description }}
{{- with $media }} alt="{{- $media.Description -}}" title="{{- $media.Description -}}" {{- end }}>
{{- include "imagePreview" . | indent 4 }} {{- with $media }}
{{- end }} {{- include "imagePreview" . | indent 4 }}
</a> {{- end }}
{{- else }} </a>
<a class="unknown-attachment" href="{{- $media.RemoteURL -}}" rel="nofollow noreferrer noopener" {{- else }}
target="_blank" {{- if .Description }} <a class="unknown-attachment" href="{{- $media.RemoteURL -}}" rel="nofollow noreferrer noopener"
title="Open external media: {{ $media.Description -}}&#10;&#13;{{- $media.RemoteURL -}}" {{- else }} target="_blank" {{- if .Description }}
title="Open external media.&#10;&#13;{{- $media.RemoteURL -}}" {{- end }}> title="Open external media: {{ $media.Description -}}&#10;&#13;{{- $media.RemoteURL -}}" {{- else }}
<div class="placeholder" aria-hidden="true"> title="Open external media.&#10;&#13;{{- $media.RemoteURL -}}" {{- end }}>
<i class="placeholder-external-link fa fa-external-link"></i> <div class="placeholder" aria-hidden="true">
<i class="placeholder-icon fa fa-file-text"></i> <i class="placeholder-external-link fa fa-external-link"></i>
<div class="placeholder-link-to">External media</div> <i class="placeholder-icon fa fa-file-text"></i>
</div> <div class="placeholder-link-to">External media</div>
</a> </div>
{{- end }} </a>
</details> {{- end }}
</div> </details>
{{- end }} </div>
{{- end }}
</div> </div>
{{- end }} {{- end }}

View file

@ -19,31 +19,31 @@
{{- with .Account }} {{- with .Account }}
<address> <address>
{{- if $.Local }} {{- if $.Local }}
<a href="{{- .URL -}}" rel="author" title="Open profile"> <a href="{{- .URL -}}" rel="author" title="Open profile">
{{- else }} {{- else }}
<a href="{{- .URL -}}" rel="author nofollow noreferrer noopener" target="_blank" <a href="{{- .URL -}}" rel="author nofollow noreferrer noopener" target="_blank"
title="Open remote profile (opens in a new window)"> title="Open remote profile (opens in a new window)">
{{- end }} {{- end }}
<picture class="avatar" aria-hidden="true"> <picture class="avatar" aria-hidden="true">
{{- if .AvatarAttachment }} {{- if .AvatarAttachment }}
<source srcset="{{- .AvatarStatic -}}" type="{{- .AvatarAttachment.PreviewMIMEType -}}" <source srcset="{{- .AvatarStatic -}}" type="{{- .AvatarAttachment.PreviewMIMEType -}}"
media="(prefers-reduced-motion: reduce)" /> media="(prefers-reduced-motion: reduce)" />
{{- end }} {{- end }}
<img src="{{- .Avatar -}}" alt="Avatar for {{ .Username -}}" title="Avatar for {{ .Username -}}"> <img src="{{- .Avatar -}}" alt="Avatar for {{ .Username -}}" title="Avatar for {{ .Username -}}">
</picture> </picture>
<div class="author-strapline"> <div class="author-strapline">
<span class="displayname text-cutoff"> <span class="displayname text-cutoff">
{{- if .DisplayName -}} {{- if .DisplayName -}}
{{- emojify .Emojis (escape .DisplayName) -}} {{- emojify .Emojis (escape .DisplayName) -}}
{{- else -}} {{- else -}}
{{- .Username -}} {{- .Username -}}
{{- end -}} {{- end -}}
</span> </span>
<span class="sr-only">,</span> <span class="sr-only">,</span>
<span class="username text-cutoff">@{{- .Acct -}}</span> <span class="username text-cutoff">@{{- .Acct -}}</span>
</div> </div>
<span class="sr-only">(open profile)</span> <span class="sr-only">(open profile)</span>
</a> </a>
</address> </address>
{{- end }} {{- end }}

View file

@ -19,56 +19,56 @@
{{- with . }} {{- with . }}
<dl class="status-stats"> <dl class="status-stats">
<div class="stats-grouping"> <div class="stats-grouping">
<div class="stats-item published-at text-cutoff"> <div class="stats-item published-at text-cutoff">
<dt class="sr-only">Published</dt> <dt class="sr-only">Published</dt>
<dd> <dd>
<time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time> <time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
</dd> </dd>
</div> </div>
<div class="stats-grouping"> <div class="stats-grouping">
<div class="stats-item" title="Replies"> <div class="stats-item" title="Replies">
<dt> <dt>
<span class="sr-only">Replies</span> <span class="sr-only">Replies</span>
<i class="fa fa-reply-all" aria-hidden="true"></i> <i class="fa fa-reply-all" aria-hidden="true"></i>
</dt> </dt>
<dd>{{- .RepliesCount -}}</dd> <dd>{{- .RepliesCount -}}</dd>
</div> </div>
<div class="stats-item" title="Faves"> <div class="stats-item" title="Faves">
<dt> <dt>
<span class="sr-only">Favourites</span> <span class="sr-only">Favourites</span>
<i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star" aria-hidden="true"></i>
</dt> </dt>
<dd>{{- .FavouritesCount -}}</dd> <dd>{{- .FavouritesCount -}}</dd>
</div> </div>
<div class="stats-item" title="Boosts"> <div class="stats-item" title="Boosts">
<dt> <dt>
<span class="sr-only">Reblogs</span> <span class="sr-only">Reblogs</span>
<i class="fa fa-retweet" aria-hidden="true"></i> <i class="fa fa-retweet" aria-hidden="true"></i>
</dt> </dt>
<dd>{{- .ReblogsCount -}}</dd> <dd>{{- .ReblogsCount -}}</dd>
</div> </div>
{{- if .Pinned }} {{- if .Pinned }}
<div class="stats-item" title="Pinned"> <div class="stats-item" title="Pinned">
<dt> <dt>
<span class="sr-only">Pinned</span> <span class="sr-only">Pinned</span>
<i class="fa fa-thumb-tack" aria-hidden="true"></i> <i class="fa fa-thumb-tack" aria-hidden="true"></i>
</dt> </dt>
<dd class="sr-only">{{- .Pinned -}}</dd> <dd class="sr-only">{{- .Pinned -}}</dd>
</div> </div>
{{- else }} {{- else }}
{{- end }} {{- end }}
</div> </div>
</div> </div>
{{- if .LanguageTag.DisplayStr }} {{- if .LanguageTag.DisplayStr }}
<div class="stats-item language" title="{{ .LanguageTag.DisplayStr }}"> <div class="stats-item language" title="{{ .LanguageTag.DisplayStr }}">
<dt class="sr-only">Language</dt> <dt class="sr-only">Language</dt>
<dd> <dd>
<span class="sr-only">{{ .LanguageTag.DisplayStr }}</span> <span class="sr-only">{{ .LanguageTag.DisplayStr }}</span>
<span aria-hidden="true">{{- .LanguageTag.TagStr -}}</span> <span aria-hidden="true">{{- .LanguageTag.TagStr -}}</span>
</dd> </dd>
</div> </div>
{{- else }} {{- else }}
{{- end }} {{- end }}
</dl> </dl>
{{- end }} {{- end }}

View file

@ -32,50 +32,50 @@
{{- with . }} {{- with . }}
<figure class="poll"> <figure class="poll">
<figcaption class="poll-info"> <figcaption class="poll-info">
<span class="poll-expiry"> <span class="poll-expiry">
{{- if .Poll.Multiple -}} {{- if .Poll.Multiple -}}
Multiple-choice poll&nbsp; Multiple-choice poll&nbsp;
{{- else -}} {{- else -}}
Poll&nbsp; Poll&nbsp;
{{- end -}} {{- end -}}
{{- if .Poll.Expired -}} {{- if .Poll.Expired -}}
closed <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt | timestampPrecise -}}</time> closed <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt | timestampPrecise -}}</time>
{{- else if .Poll.ExpiresAt -}} {{- else if .Poll.ExpiresAt -}}
open until <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt | timestampPrecise -}}</time> open until <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt | timestampPrecise -}}</time>
{{- else -}} {{- else -}}
open forever open forever
{{- end -}} {{- end -}}
</span> </span>
<span class="sr-only">,</span> <span class="sr-only">,</span>
<span class="total-votes"> <span class="total-votes">
{{- template "votes" .Poll.VotesCount -}}&nbsp; {{- template "votes" .Poll.VotesCount -}}&nbsp;
{{- if .Poll.Expired -}} {{- if .Poll.Expired -}}
total total
{{- else -}} {{- else -}}
so far so far
{{- end -}} {{- end -}}
</span> </span>
</figcaption> </figcaption>
<ul class="poll-options nodot"> <ul class="poll-options nodot">
{{- range $index, $pollOption := .PollOptions }} {{- range $index, $pollOption := .PollOptions }}
<li class="poll-option"> <li class="poll-option">
<span class="sr-only">Option {{ increment $index }},</span> <span class="sr-only">Option {{ increment $index }},</span>
<span lang="{{- .LanguageTag.TagStr -}}">{{ emojify .Emojis (noescape $pollOption.Title) }}</span> <span lang="{{- .LanguageTag.TagStr -}}">{{ emojify .Emojis (noescape $pollOption.Title) }}</span>
<meter aria-hidden="true" min="0" max="100" value="{{- $pollOption.VoteShare -}}"></meter> <meter aria-hidden="true" min="0" max="100" value="{{- $pollOption.VoteShare -}}"></meter>
<div class="poll-vote-summary"> <div class="poll-vote-summary">
{{- if isNil $pollOption.VotesCount }} {{- if isNil $pollOption.VotesCount }}
Results not yet published. Results not yet published.
{{- else }} {{- else }}
{{- with deref $pollOption.VotesCount }} {{- with deref $pollOption.VotesCount }}
<span class="poll-vote-share">{{- $pollOption.VoteShareStr -}}&#37;</span> <span class="poll-vote-share">{{- $pollOption.VoteShareStr -}}&#37;</span>
<span class="sr-only">,</span> <span class="sr-only">,</span>
<span class="poll-vote-count">{{- template "votes" . -}}</span> <span class="poll-vote-count">{{- template "votes" . -}}</span>
{{- end }} {{- end }}
{{- end }} {{- end }}
</div> </div>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>
</figure> </figure>
{{- end }} {{- end }}

View file

@ -19,11 +19,11 @@
{{- with . }} {{- with . }}
<main> <main>
<h2 class="wrap-text" tabindex="-1">#{{- .tagName -}}</h2> <h2 class="wrap-text" tabindex="-1">#{{- .tagName -}}</h2>
<p>There's nothing here!</p> <p>There's nothing here!</p>
<p> <p>
For privacy reasons, GoToSocial doesn't (yet) implement public web views of tag timelines. For privacy reasons, GoToSocial doesn't (yet) implement public web views of tag timelines.
To soften the blow, here's a tongue twister: "I squeeze the soft sloth often in the mothy loft" 🦥 To soften the blow, here's a tongue twister: "I squeeze the soft sloth often in the mothy loft" 🦥
</p> </p>
</main> </main>
{{- end }} {{- end }}

View file

@ -64,36 +64,36 @@ Thread of {{ .context.ThreadLength }} posts
{{- with . }} {{- with . }}
</section> </section>
<section class="thread thread-replies" aria-labelledby="replies" open> <section class="thread thread-replies" aria-labelledby="replies" open>
<div class="col-header wrap replies{{- if not .context.ThreadRepliesShown }} hidden-only{{- end -}}"> <div class="col-header wrap replies{{- if not .context.ThreadRepliesShown }} hidden-only{{- end -}}">
<h2 id="replies">{{- template "repliesSummary" . -}}</h2> <h2 id="replies">{{- template "repliesSummary" . -}}</h2>
<a href="#thread-summary">back to top</a> <a href="#thread-summary">back to top</a>
</div> </div>
{{- end }} {{- end }}
{{- end -}} {{- end -}}
{{- with . }} {{- with . }}
<main class="thread-wrapper" data-nosnippet> <main class="thread-wrapper" data-nosnippet>
<section class="thread thread-main" aria-labelledby="thread-summary"> <section class="thread thread-main" aria-labelledby="thread-summary">
<div class="col-header wrap"> <div class="col-header wrap">
<h2 id="thread-summary">{{- template "threadSummary" . -}}</h2> <h2 id="thread-summary">{{- template "threadSummary" . -}}</h2>
{{- if .context.ThreadRepliesShown }} {{- if .context.ThreadRepliesShown }}
<a href="#replies">jump to replies</a> <a href="#replies">jump to replies</a>
{{- end }} {{- end }}
</div> </div>
{{- range $status := .context.Statuses }} {{- range $status := .context.Statuses }}
<article <article
class="status{{- if $status.ThreadContextStatus }} expanded{{- end -}}{{- if $status.Indent }} indent-{{ $status.Indent }}{{- end -}}" class="status{{- if $status.ThreadContextStatus }} expanded{{- end -}}{{- if $status.Indent }} indent-{{ $status.Indent }}{{- end -}}"
{{- includeAttr "status_attributes.tmpl" $status | indentAttr 3 }}> {{- includeAttr "status_attributes.tmpl" $status | indentAttr 3 }}>
{{- include "status.tmpl" $status | indent 3 }} {{- include "status.tmpl" $status | indent 3 }}
</article> </article>
{{- if and $status.ThreadLastMain $.context.ThreadReplies }} {{- if and $status.ThreadLastMain $.context.ThreadReplies }}
{{- include "repliesStart" $ | indent 1 }} {{- include "repliesStart" $ | indent 1 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if .context.ThreadReplies }} {{- if .context.ThreadReplies }}
</section> </section>
{{- end }} {{- end }}
</main> </main>
{{- end }} {{- end }}