updates that i forgot to push

This commit is contained in:
Gitea 2021-09-14 18:25:39 +00:00
parent 99a12142d0
commit 1966b01671
7 changed files with 196 additions and 2 deletions

View File

@ -0,0 +1,47 @@
# allowed domains for tildegit.org registration
# this list was instituted to combat automated spam account creation
aussies.space
cosmic.voyage
ctrl-c.club
debian.org
dimension.sh
envs.net
fr.tild3.org
fuckup.club
hashbang.sh
nand.sh
radiofreqs.space
rawtext.club
sdf.org
sdfeu.org
texto-plano.xyz
thunix.net
tild3.org
tilde.cafe
tilde.chat
tilde.club
tilde.guru
tilde.institute
tilde.life
tilde.news
tilde.ninja
tilde.pink
tilde.pizza
tilde.pt
tilde.pw
tilde.site
tilde.team
tilde.wiki
tilde.wtf
tilde.zone
tildegit.org
tildenet.org
tilderadio.org
tildeteam.net
tildeteam.org
tildeverse.net
tildeverse.org
ttm.sh
xhec.one
xinu.me
yourtilde.com

View File

@ -1,3 +1,3 @@
User-agent: *
User-agent: Googlebot
Disallow: /

View File

@ -0,0 +1 @@
<a class="item" href="https://drone.tildegit.org{{$.RepoLink}}">Drone CI</a>

View File

@ -0,0 +1 @@
<a class="item" href="https://tildeverse.org">tildeverse.org</a>

View File

@ -1,2 +1,2 @@
<!--<link rel="stylesheet" href="{{AppSubUrl}}/styles.css">-->
<link rel="stylesheet" href="{{AppSubUrl}}/darkmode.css">
<!--<link rel="stylesheet" href="{{AppSubUrl}}/darkmode.css">-->

56
templates/home.tmpl Normal file
View File

@ -0,0 +1,56 @@
{{template "base/head" .}}
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="/assets/img/gitea-lg.png" />
</div>
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>git hosting for the tildeverse</h2>
</div>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-flame"></i> purpose
</h1>
<p class="large">
<!--{{.i18n.Tr "startpage.install_desc" | Str2html}}-->
tildegit.org provides git hosting for tilde people and their projects
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-device-desktop"></i> registration
</h1>
<p class="large">
<!--{{.i18n.Tr "startpage.platform_desc" | Str2html}}-->
signup is currently only allowed with whitelisted tilde email addresses to combat automated account creation. stop by <a href="https://tildeverse.org/">the tildeverse</a> and maybe sign up for an account on one of our <a href="https://tildeverse.org/members/">member tildes</a>!
</p>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-rocket"></i> community
</h1>
<p class="large">
feel free to stop by irc to ask questions, ask for help, or just to chat: <a href="https://tilde.chat/">connection info</a> | <a href="https://tilde.chat/kiwi/">webchat</a>
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
<i class="octicon octicon-code"></i> we like open source!
</h1>
<p class="large">
we hope this community offering is useful and look forward to seeing you around!
</p>
</div>
</div>
</div>
{{template "base/footer" .}}

View File

@ -0,0 +1,89 @@
<div class="ui container column{{if .LinkAccountMode}} icon{{end}}">
<h4 class="ui top attached header center">
{{if .LinkAccountMode}}
{{.i18n.Tr "auth.oauth_signup_title"}}
{{else}}
{{.i18n.Tr "sign_up"}}
{{end}}
</h4>
<div class="ui attached segment">
<form class="ui form" action="{{.SignUpLink}}" method="post">
{{.CsrfTokenHtml}}
{{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister)}}
{{template "base/alert" .}}
{{end}}
{{if .DisableRegistration}}
<p>{{.i18n.Tr "auth.disable_register_prompt"}}</p>
{{else}}
<div class="inline field">
<p>
Registration on tildegit requires an email address from a
<a href="https://tildegit.org/assets/allowed_domains.txt">known tilde or trusted domain</a> to combat spam.
Sign up on one of the <a href="https://tildeverse.org">tildeverse members</a>.
However, admins are happy to make an exception if you prove you're a real person.
Stop by <a href="https://tilde.chat/kiwi/#helpdesk">#helpdesk</a> on IRC and look for <code>ben</code>
or shoot an email to <a href="mailto:ben@tilde.team">ben@tilde.team</a> with your desired username and a short introduction.
</p>
</div>
<div class="required inline field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<label for="user_name">{{.i18n.Tr "username"}}</label>
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
</div>
<div class="required inline field {{if .Err_Email}}error{{end}}">
<label for="email">{{.i18n.Tr "email"}}</label>
<input id="email" name="email" type="email" value="{{.email}}" required>
</div>
{{if not .DisablePassword}}
<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="new-password" required>
</div>
<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<label for="retype">{{.i18n.Tr "re_type"}}</label>
<input id="retype" name="retype" type="password" value="{{.retype}}" autocomplete="new-password" required>
</div>
{{end}}
{{if and .EnableCaptcha (eq .CaptchaType "image")}}
<div class="inline field">
<label></label>
{{.Captcha.CreateHTML}}
</div>
<div class="required inline field {{if .Err_Captcha}}error{{end}}">
<label for="captcha">{{.i18n.Tr "captcha"}}</label>
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
</div>
{{end}}
{{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
<div class="inline field required">
<div class="g-recaptcha" data-sitekey="{{ .RecaptchaSitekey }}"></div>
</div>
{{end}}
{{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}}
<div class="inline field required">
<div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div>
</div>
{{end}}
<div class="inline field">
<label></label>
<button class="ui green button">
{{if .LinkAccountMode}}
{{.i18n.Tr "auth.oauth_signup_submit"}}
{{else}}
{{.i18n.Tr "auth.create_new_account"}}
{{end}}
</button>
</div>
{{if not .LinkAccountMode}}
<div class="inline field">
<label></label>
<a href="{{AppSubUrl}}/user/login">{{.i18n.Tr "auth.register_helper_msg"}}</a>
</div>
{{end}}
{{end}}
</form>
</div>
</div>