certificate.html 3.47 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
}
#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;
}
</style>
{% endblock %}

{% block content %}

<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">
139
140
141
  {% if person.status_changed|is_epoch %}
  Since the very early years of Debian, is a
  {% else %}
142
  Has passed through the <b>New Maintainer Process</b>,<br/>
Enrico Zini's avatar
Enrico Zini committed
143
  has been approved by the <b>Debian Account Managers</b>,<br/>
144
  and therefore has become a
145
  {% endif %}
146
147
148
149
150
  </p>

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

  <p id="cert-status-detail">
Enrico Zini's avatar
Enrico Zini committed
151
  with voting rights{% if upload_rights %} and upload access to the Debian archive{% endif %}.
152
153
154
155
156
157
158
  </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>
159
160
161
  {% if not person.status_changed|is_epoch %}
  <p>Attainment date: {{person.status_changed|date:"Y-m-d"}}</p>
  {% endif %}
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
</div>

<div id="cert-debian-url" class="textblock">
  {{request.build_absolute_uri}}
</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">
178
  Date of Certificate issuance: {{today}}
179
180
181
</div>

{% endblock %}