~sircmpwn/dispatch.sr.ht

ref: 3a56828e48216d66de8fa71fc4db5270e009eb75 dispatch.sr.ht/dispatchsrht/templates/gitlab/select-instance.html -rw-r--r-- 2.3 KiB View raw
3a56828eDrew DeVault Support running builds.sr.ht CI for GitLab commits 7 months 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
{% extends "layout.html" %}
{% block body %}
<div class="container">
  <div class="row">
    <div class="col-md-8">
      <h3>Choose a GitLab instance</h3>
      <p>Which GitLab instance would you like to use?</p>
      <div class="event-list configure">
        <div class="event">
          <h4>
            {{icon('gitlab')}} {{instance_name(canonical_upstream)}}
            <a
              href="{{url_for('.configure_repo_GET', upstream=canonical_upstream)}}"
              class="btn btn-primary btn-lg pull-right"
            >Continue with {{canonical_upstream}} {{icon('caret-right')}}</a>
          </h4>
        </div>
      </div>
      <details>
        <summary>Choose another instance...</summary>
        <div class="event-list configure">
          {% for upstream in upstreams %}
          <div class="event">
            <h4>
              {{icon('gitlab')}} {{upstream}}
              <a
                href="{{url_for('.configure_repo_GET', upstream=upstream)}}"
                class="btn btn-primary btn-lg pull-right"
              >Continue with {{upstream}} {{icon('caret-right')}}</a>
            </h4>
          </div>
          {% endfor %}
          <p>
            Is your instance missing? Gitlab instances have to be manually
            approved by the {{cfg('sr.ht', 'site-name')}} administrators.
            Send an email to
            <a
              href="mailto:{{cfg('sr.ht', 'owner-email')}}"
            >{{cfg('sr.ht', 'owner-name')}} &lt;{{cfg('sr.ht', 'owner-email')}}&gt;</a>
            to request yours.
          </p>
        </div>
      </details>
      <div class="alert alert-danger" style="margin-top: 1rem">
        <strong>Notice:</strong> By proceeding, you will be granting
        {{cfg("sr.ht", "site-name")}} full access to your GitLab account.
        This is a limitation of the GitLab API; we cannot request narrower
        permissions.
      </div>
    </div>
    <div class="col-md-4">
      <p>
        This task will run a builds.sr.ht job for each commit pushed to a
        GitLab repository. The location of build manifests in your GitLab
        repository is compatible with git.sr.ht.
      </p>
      <a
        href="https://man.sr.ht/builds.sr.ht/#gitsrht"
        target="_blank"
        class="btn btn-link"
      >Read the documentation {{icon('caret-right')}}</a>
    </div>
  </div>
</div>
{% endblock %}