Vervis/templates/default-layout.hamlet
Pere Lev e196ee6f34
Switch to factory-based creation of Deck, Project and Group
- UI for creating a Factory
- UI for specifying a Factory when creating resource actors
- Old way of creation doesn't work anymore, except for Factory itself
- UI indicates whether you're an admin user
- Settings allow to choose "resident" factories, i.e. ones automatically
  offered to every newly verified user

Caveats:

- Factories are all-in-one, no mechanism yet for choosing actor types
- No UI/logic for auto-offering a Factory to all users of a different
  instance, and signaling other instances about newly verified local
  users
2024-08-06 12:33:02 +03:00

108 lines
2.9 KiB
Text

$# This file is part of Vervis.
$#
$# Written in 2016, 2019, 2022, 2024 by fr33domlover <fr33domlover@riseup.net>.
$#
$# ♡ Copying is an act of love. Please copy, reuse and share.
$#
$# The author(s) have dedicated all copyright and related and neighboring
$# rights to this software to the public domain worldwide. This software is
$# distributed without any warranty.
$#
$# You should have received a copy of the CC0 Public Domain Dedication along
$# with this software. If not, see
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
<header>
$maybe (Entity _ person, hash, verified, unread, can) <- mperson
<div>
$if verified
<span>
[You are logged in as #
$if can
<span>👑
<span .username>#{personLogin person}</span>]
$if unread > 0
<span>
<a href=@{NotificationsR}>
🔔#{unread}
<span>
<a href=@{PersonInboxR hash}>
[📥 Inbox]
<span>
<a href=@{PersonOutboxR hash}>
[📤 Outbox]
<span>
<a href=@{PersonErrboxR hash}>
[💥 Errbox]
<span>
<a href=@{PersonFollowersR hash}>
[🐤 Followers]
<span>
<a href=@{PersonFollowingR hash}>
[🐔 Following]
<span>
<a href=@{BrowseR}>
[📚 Browse projects]
<span>
<a href=@{RemoteActorsR}>
[🌁 Browse remote actors]
<span>
<a href=@{InboxDebugR}>
[💥 Inbox Debug Reports]
<span>
<a href=@{HomeR}>
[📣 Publish an activity]
<span>
<a href=@{AuthR LogoutR}>
[🚪 Log out]
$else
<span>
You are logged in as #{personLogin person} (unverified). If you haven't
received a verification link by email, you can ask to
<a href=@{ResendVerifyEmailR}>resend
it. Or <a href=@{AuthR LogoutR}>Log out.
$if unread > 0
<span>
<a href=@{NotificationsR}>
🔔#{unread}
$nothing
<div>
You are not logged in.
<a href=@{AuthR LoginR}>Log in.
Or
<a href=@{AuthR newAccountR}>Sign up.
<span> -|-
<span>
<a href=@{InboxDebugR}>
[💥 Inbox Debug Reports]
$if federationDisabled
<p>
<span>
NOTE: Federation is disabled on this instance!
$if null federatedServers
<span>
You can test federation between other instances.
$else
<span>
You can test federation between the following instances:
<ul>
$forall h <- federatedServers
<li>
<a href="https://#{h}">
#{h}
<.instance>
Vervis @ #{renderAuthority instanceHost}
^{breadcrumbsW}
<div #messages>
$forall (_status, msg) <- msgs
<div .message>#{msg}
<main role="main">
^{widget}
<footer>
^{revisionW}