92 lines
2.7 KiB
HTML
92 lines
2.7 KiB
HTML
{% extends "layout.html" %}
|
|
{% block title %}
|
|
<title>Register for {{cfg("sr.ht", "site-name")}}</title>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-md-10 offset-md-1">
|
|
<h3>
|
|
Register for {{cfg("sr.ht", "site-name")}}
|
|
<small>
|
|
or <a href="/login">log in</a>
|
|
</small>
|
|
</h3>
|
|
</div>
|
|
</div>
|
|
{% if is_external_auth() %}
|
|
<p>Registration is disabled because {{cfg("sr.ht", "site-name")}} authentication
|
|
is managed by a different service. Please contact the system administrator
|
|
for further information.</p>
|
|
{% elif allow_registration() %}
|
|
<form
|
|
class="row"
|
|
action="{{url_for("auth.register_POST")}}"
|
|
method="POST"
|
|
style="margin-bottom: 0" {# Look. I know. #}
|
|
>
|
|
{{csrf_token()}}
|
|
<div class="col-md-5 offset-md-1 event-list">
|
|
<div class="event">
|
|
<h3>Register as a contributor</h3>
|
|
<p>
|
|
<strong>Signing up to contribute to a project here?</strong>
|
|
<br />
|
|
You may sign up to participate in projects hosted on
|
|
{{cfg("sr.ht", "site-name")}} for free. If you decide to host your own
|
|
projects here in the future, you can convert to a paid account later.
|
|
</p>
|
|
<button
|
|
type="submit"
|
|
name="payment"
|
|
value="no"
|
|
class="btn btn-primary btn-block"
|
|
>
|
|
Sign up for free {{icon("caret-right")}}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-5">
|
|
<div class="event">
|
|
<h3>Register as a maintainer</h3>
|
|
<p>
|
|
<strong>Want to host your own projects here?</strong>
|
|
<br />
|
|
Projects hosted on {{cfg("sr.ht", "site-name")}} are expected to pay for
|
|
their account. Financial aid is available for those in need. You can
|
|
cancel at any time without losing access to your data.
|
|
<a href="https://sourcehut.org/pricing" rel="noopener" target="_blank">
|
|
Pricing details {{icon('external-link-alt')}}
|
|
</a>
|
|
</p>
|
|
<button
|
|
type="submit"
|
|
name="payment"
|
|
value="yes"
|
|
class="btn btn-primary btn-block"
|
|
>
|
|
Sign up with payment {{icon("caret-right")}}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="row">
|
|
<div class="col-md-10 offset-md-1">
|
|
<div class="alert alert-info">
|
|
Contributors can also skip registration entirely. You may submit or
|
|
comment on tickets, participate in discussions, and send patches to
|
|
projects on {{cfg("sr.ht", "site-name")}}, without signing up for an
|
|
account. You can find links to participate via email throughout the
|
|
logged-out version of many services.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="row">
|
|
<div class="col-md-10 offset-md-1">
|
|
<p>Registration is currently closed.</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|