certificate.html 4.15 KB
Newer Older
1
2
3
4
{% extends "nm2-base.html" %}
{% load i18n %}
{% load static %}
{% load nm %}
5
{% load none_if_epoch %}
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

{% block head %}
{{block.super}}
<style type="text/css">
body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
body:before {
  content: "";
  background: no-repeat url('{% static "debian/img/openlogo-nd.svg" %}');
  background-size: contain;
  background-position: center;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;

  opacity: 0.2;
27
  z-index: -1;
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
}
#main-content { 
  flex: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.textblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: serif;
}
#cert-head {
  flex: 2;
  display: flex;
  flex-direction: row;
}
#cert-logo {
  flex-grow: 0;
  width: 20%;
}
#cert-title {
  flex-grow: 3;
  margin-right: 20%;
  height: 100%;

  font-size: 60px;
  text-align: center;
}
#cert-name {
  flex-grow: 2;

  font-size: 42px;
  text-align: center;
  font-weight: bold;
}
#cert-text {
  flex-grow: 2;
  text-align: center;
}
#cert-status {
  font-size: 24px;
  font-weight: bold;
}
#cert-techinfo {
  flex-grow: 2;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
#cert-techinfo p {
  font-family: monospace;
}
#cert-debian-url {
  flex-grow: 2;
  text-align: center;
  font-family: monospace;
  font-size: 24px;
  font-weight: bold;
}
#cert-signature {
  display: grid;
  flex-grow: 2;
  margin-left: auto;
  text-align: center;
}
#cert-signature-text {
  grid-column: 1;
  grid-row: 1;
}
p {
  margin: 0;
}
#cert-signature-scribble {
  grid-column: 1;
  grid-row: 1;
  background: no-repeat url('{% static "debian/img/openlogo-nd.svg" %}');
  background-size: contain;
  background-position: center;
  opacity: 0.8;
  height: 100%;
  width: 100%;
}
#cert-date {
  flex-grow: 2;
  text-align: center;
}
Enrico Zini's avatar
Enrico Zini committed
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#print-instructions {
  position: fixed;
  right: 5%;
  top: 10%;
  border: 2pt dashed black;
  width: 25%;
  padding: 1em;
  background: rgba(255, 255, 255, 0.5);
  text-align: justify;
  font-family: sans-serif;
}
#print-instructions p {
  margin-top: 0.5em;
}
#print-instructions h3 {
  text-align: center;
  background: yellow;
  font-family: serif;
}
137
138
139
140
141
</style>
{% endblock %}

{% block content %}

Enrico Zini's avatar
Enrico Zini committed
142
143
144
145
146
147
148
149
150
151
152
<div id="print-instructions" class="d-print-none">
  <h3>Printing instructions</h3>

  <p>You can print this page or save it to PDF, and it should do the right thing.</p>

  <p>Portrait and landscape should equally work.</p>

  <p>In the print settings, depending on browsers, you may need to enable printing
  backgrounds, and disable printing headers.</p>
</div>

153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<div id="cert-head">
  <div id="cert-logo">
    <img src="{% static "debian/img/officiallogo.svg" %}"></img>
  </div>
  
  <div id="cert-title" class="textblock">
    <p id="cert-title-text">Certificate</span>
  </div>
</div>

<div id="cert-name" class="textblock">
  <p id="cert-name-text">{{person.fullname}}</span>
</div>

<div id="cert-text" class="textblock">
  <p id="cert-text-lead">
169
170
171
  {% if person.status_changed|is_epoch %}
  Since the very early years of Debian, is a
  {% else %}
172
  Has passed through the <b>New Maintainer Process</b>,<br/>
Enrico Zini's avatar
Enrico Zini committed
173
  has been approved by the <b>Debian Account Managers</b>,<br/>
174
  and therefore has become a
175
  {% endif %}
176
177
178
179
180
  </p>

  <p id="cert-status">Debian Developer</p>

  <p id="cert-status-detail">
Enrico Zini's avatar
Enrico Zini committed
181
  with voting rights{% if upload_rights %} and upload access to the Debian archive{% endif %}.
182
183
184
185
186
187
188
  </p>
</div>

<div id="cert-techinfo" class="textblock">
  <p>Login: {{person.get_ldap_uid}}</p>
  <p>Email address: {{person.get_ldap_uid}}@debian.org</p>
  <p>PGP/GPG fingerprint: {{person.fpr|fingerprint}}</p>
189
190
191
  {% if not person.status_changed|is_epoch %}
  <p>Attainment date: {{person.status_changed|date:"Y-m-d"}}</p>
  {% endif %}
192
193
194
</div>

<div id="cert-debian-url" class="textblock">
195
  {{check_url}}
196
197
198
199
200
201
202
203
204
205
206
207
</div>

<div id="cert-signature" class="textblock">
  <div id="cert-signature-text">
    <p id="cert-sig-name">Jonathan Carter</p>
    <p>Debian Project Leader</p>
  </div>
  <div id="cert-signature-scribble">
  </div>
</div>

<div id="cert-date" class="textblock">
208
  Date of Certificate issuance: {{today}}
209
210
211
</div>

{% endblock %}