~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/register.html -rw-r--r-- 2.8 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{% 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() or invite_hash %}
<form
  class="row"
  action="{{url_for("auth.register_POST")}}"
  method="POST"
  style="margin-bottom: 0" {# Look. I know. #}
>
  {{csrf_token()}}
  {% if invite_hash %}
  <input type="hidden" name="invite_hash" value="{{invite_hash}}" />
  {% endif %}
  <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 %}