-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-Used-Accordion-for-general-info-redesigned-mailing-l.patch
468 lines (444 loc) · 14.6 KB
/
0001-Used-Accordion-for-general-info-redesigned-mailing-l.patch
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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
From abc75d466c061a308d9a045890ac4950576bc2a3 Mon Sep 17 00:00:00 2001
From: unknown <[email protected]>
Date: Thu, 8 Sep 2022 16:04:29 +0530
Subject: [PATCH] Used Accordion for general info & redesigned mailing list
table
---
.../mailarchives/templates/index.html | 169 ++++++++++-------
django/media/css/main.css | 178 +++++++++++++++++-
2 files changed, 273 insertions(+), 74 deletions(-)
diff --git a/django/archives/mailarchives/templates/index.html b/django/archives/mailarchives/templates/index.html
index 5352f36..01fcffd 100644
--- a/django/archives/mailarchives/templates/index.html
+++ b/django/archives/mailarchives/templates/index.html
@@ -4,53 +4,85 @@
{%block contents%}
<h1>PostgreSQL Mailing Lists <i class="far fa-envelope"></i></h1>
-<h2>What are the PostgreSQL Mailing Lists?</h2>
-
-The <a href="https://lists.postgresql.org/" target="_blank">PostgreSQL mailing lists</a> are one of the primary ways to interact with the PostgreSQL community. The mailing lists are an effective way to communicate and contribute to PostgreSQL and there are lists that cover a variety of topics, including:
-
-<ul>
- <li>Ongoing PostgreSQL development</li>
- <li>General support</li>
- <li>Product release & event announcements</li>
- <li>Coordinate community outreach</li>
-</ul>
-
-and many more.
-
-<h2>Tips For Using the PostgreSQL Mailing Lists</h2>
-
-<p>To help ensure you have a productive experience on the PostgreSQL experience, we have a few tips to get you started on your journey:</p>
-
-<h3>Tip #1: Read The Archives Policy</h3>
-
-<p>The PostgreSQL mailing lists are available in a public archive and are independently syndicated across the web. We want you to feel comfortable posting to our public mailing lists, so please ensure you read our <a
- href="https://www.postgresql.org/about/policies/archives/">Archive Policy</a> prior to your initial post.</p>
-
-<h3>Tip #2: Avoid Mail-Back Anti-Spam Systems</h3>
-
-<p>If your email address is protected by a mail-back anti-spam system, this could cause some issues with our mailing list system. If it is discovered that your email address has implemented one of these systems, we may have to automatically unsubscribe your account.
-</p>
-
-<h3>Tip #3: Choose The Most Appropriate List</h3>
-
-<p>Choose the most appropriate individual list for your question. Please do not cross-post (have multiple mailing lists in one email) unless there is a specific reason (such as a confirmed bug report being cross-posted to the hackers mailing list). Instead, choose the most appropriate list for your email and send it there. Cross-posted emails will be moderated and therefore will also take longer to reach the subscribers if approved.
-</p>
-
-<h2>How to Subscribe or Unsubscribe</h2>
-
-<h3>Subscribing to a PostgreSQL Mailing List</h3>
-
-<p>
-Ready to join the PostgreSQL community? You can subscribe to one of our mailing lists at <a href="https://lists.postgresql.org/" target="_blank">lists.postgresql.org</a>.
-</p>
-
-<h3>Unsubscribing from a PostgreSQL Mailing List</h3>
-
-<p>
-You can manage your subscriptions and unsubscribe from our mailing lists at <a href="https://lists.postgresql.org/" target="_blank">lists.postgresql.org</a>.
-</p>
-
-<h2>Mailing List Archives</h2>
+<div class="container">
+ <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
+ <div class="panel panel-default">
+ <div class="panel-heading" role="tab" id="headingOne">
+ <h4 class="panel-title">
+ <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
+ What are the PostgreSQL Mailing Lists?
+ </a>
+ </h4>
+ </div>
+ <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
+ <div class="panel-body">
+ The <a href="https://lists.postgresql.org/" target="_blank">PostgreSQL mailing lists</a> are one of the primary ways to interact with the PostgreSQL community. The mailing lists are an effective way to communicate and contribute to PostgreSQL and there are lists that cover a variety of topics, including:
+
+ <ul>
+ <li>Ongoing PostgreSQL development</li>
+ <li>General support</li>
+ <li>Product release & event announcements</li>
+ <li>Coordinate community outreach</li>
+ </ul>
+
+ and many more.
+ </div>
+ </div>
+ </div>
+ <div class="panel panel-default">
+ <div class="panel-heading" role="tab" id="headingTwo">
+ <h4 class="panel-title">
+ <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
+ Tips For Using the PostgreSQL Mailing Lists
+ </a>
+ </h4>
+ </div>
+ <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
+ <div class="panel-body">
+ <p>To help ensure you have a productive experience on the PostgreSQL experience, we have a few tips to get you started on your journey:</p>
+
+ <h3>Tip #1: Read The Archives Policy</h3>
+
+ <p>The PostgreSQL mailing lists are available in a public archive and are independently syndicated across the web. We want you to feel comfortable posting to our public mailing lists, so please ensure you read our <a
+ href="https://www.postgresql.org/about/policies/archives/">Archive Policy</a> prior to your initial post.</p>
+
+ <h3>Tip #2: Avoid Mail-Back Anti-Spam Systems</h3>
+
+ <p>If your email address is protected by a mail-back anti-spam system, this could cause some issues with our mailing list system. If it is discovered that your email address has implemented one of these systems, we may have to automatically unsubscribe your account.
+ </p>
+
+ <h3>Tip #3: Choose The Most Appropriate List</h3>
+
+ <p>Choose the most appropriate individual list for your question. Please do not cross-post (have multiple mailing lists in one email) unless there is a specific reason (such as a confirmed bug report being cross-posted to the hackers mailing list). Instead, choose the most appropriate list for your email and send it there. Cross-posted emails will be moderated and therefore will also take longer to reach the subscribers if approved.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div class="panel panel-default">
+ <div class="panel-heading" role="tab" id="headingThree">
+ <h4 class="panel-title">
+ <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
+ How to Subscribe or Unsubscribe
+ </a>
+ </h4>
+ </div>
+ <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
+ <div class="panel-body">
+ <h3>Subscribing to a PostgreSQL Mailing List</h3>
+ <p>
+ Ready to join the PostgreSQL community? You can subscribe to one of our mailing lists at <a href="https://lists.postgresql.org/" target="_blank">lists.postgresql.org</a>.
+ </p>
+ <h3>Unsubscribing from a PostgreSQL Mailing List</h3>
+ <p>
+ You can manage your subscriptions and unsubscribe from our mailing lists at <a href="https://lists.postgresql.org/" target="_blank">lists.postgresql.org</a>.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+<h1>Mailing List Archives <i class="fa fa-archive" aria-hidden="true"></i></h1>
<p>The PostgreSQL Mailing list public archives provide a rich history of the PostgreSQL project, all the way back to 1997! We keep a public record of the mailing list to help provide a searchable resource to help answer your questions, as well as in the spirit of building an open community.</p>
@@ -61,25 +93,30 @@ You can manage your subscriptions and unsubscribe from our mailing lists at <a h
<h3>View All Archives</h3>
{%for g in groups%}
- {%if not forloop.first%}
- </tbody>
- </table>
- {%endif%}
- <h5>{{g.groupname}}</h5>
- <table class="table table-striped">
- <thead class="thead-light">
+ <h2>{{g.groupname}}</h2>
+ <table
+ id="table"
+ data-toggle="table"
+ data-pagination="true"
+ data-page-size="All"
+ data-pagination-v-align="top"
+ data-page-list="[All, 10, 20, 50]"
+ data-buttons-class="primary"
+ data-search="true">
+ <thead class="list-header">
<tr>
- <th>List</th>
- <th>Description</th>
+ <th class="list-table-header-text" data-field="listname">List</th>
+ <th class="list-table-header-text" data-field="description">Description</th>
</tr>
- <tbody>
- {%for l in g.lists%}
- <tr>
- <th scope="row"><a href="/list/{{l.listname}}/">{{l.maybe_shortdesc}}</a></th>
- <td>{{l.description|safe}}</td>
- </tr>
- {%endfor%}
+ </thead>
+ <tbody>
+ {%for l in g.lists%}
+ <tr class="mail-list-data">
+ <th scope="row"><a href="/list/{{l.listname}}/">{{l.maybe_shortdesc}}</a></th>
+ <td>{{l.description|safe}}</td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
{%endfor%}
-</table>
-
-{%endblock%}
+{%endblock%}
\ No newline at end of file
diff --git a/django/media/css/main.css b/django/media/css/main.css
index 2fa6505..9c183d7 100644
--- a/django/media/css/main.css
+++ b/django/media/css/main.css
@@ -35,7 +35,8 @@ dl, ol, ul {
}
.table td, .table th {
- padding: 0.5rem;
+ padding: 5px;
+ min-width: 5rem;
}
h1, h2, h3, h4, h5, h6 {
@@ -131,7 +132,7 @@ a:hover, a:active {
text-decoration: none;
}
-b, strong {
+b, strong, th {
font-weight: 600;
color: #474747 !important;
}
@@ -163,6 +164,137 @@ hr {
margin: 1em 0 2em 0;
}
+.page-item.active .page-link {
+ z-index: 1;
+ color: #fff;
+ background-color: #336791;
+ border-color: #007bff;
+}
+
+.page-list .btn-group .dropdown-menu> .dropdown-item {
+ color: #336791 !important;
+}
+
+.btn-primary:active {
+ background-color: #336791;
+}
+
+.dropdown-item.active, .dropdown-item:active {
+ color: #fff !important;
+ text-decoration: none;
+ background-color: #336791;
+}
+
+
+/** HOME PAGE */
+.panel-default>.panel-heading {
+ color: #333;
+ background-color: #f0f7ff;
+ border-color: #e4e5e7;
+ border-radius: 7px;
+ padding: 0;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.panel-default> .panel-heading:hover {
+ background-color: #eeeeee;
+}
+
+.panel-default>.panel-heading a {
+ font-family: 'Open Sans', sans-serif;
+ font-weight: 600;
+ color: #336791 !important;
+ display: block;
+ padding: 10px 15px;
+ font-size: 1em;
+ margin: 1em 0;
+}
+
+.panel-default>.panel-heading a:after {
+ content: "";
+ position: relative;
+ top: 1px;
+ display: inline-block;
+ font-family: 'Glyphicons Halflings';
+ font-style: normal;
+ font-weight: 400;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ float: right;
+ transition: transform .25s linear;
+ -webkit-transition: -webkit-transform .25s linear;
+}
+
+.panel-default>.panel-heading a[aria-expanded="true"] {
+ background-color: #eee;
+ border-radius: 7px;
+ border: 1px solid #336791;
+}
+
+.panel-default>.panel-heading a[aria-expanded="true"]:after {
+ content: "\2212";
+ -webkit-transform: rotate(180deg);
+ transform: rotate(180deg);
+}
+
+.panel-default>.panel-heading a[aria-expanded="false"]:after {
+ content: "\002b";
+ -webkit-transform: rotate(90deg);
+ transform: rotate(90deg);
+}
+
+.page-list .btn-group> .btn {
+ width: auto;
+}
+
+.page-list .btn-group .dropdown-menu> .dropdown-item:active {
+ background-color: #ffffff;
+}
+
+.page-list .btn-group .dropdown-menu> .active {
+ color: #ffffff !important;
+}
+
+.fixed-table-pagination {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.pagination .page-link {
+ color: #336791 !important;
+ background-color: #fff;
+}
+
+.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
+ background-color: #336791;
+}
+
+.pagination .active .page-link {
+ color: #fff !important;
+}
+
+.pagination .page-item:not(.active) .page-link:hover {
+ background-color: #e9ecef !important;
+}
+
+#pgContentWrap .list-header {
+ background-color: #336791;
+}
+
+#pgContentWrap .mail-list-data td{
+ font-size: 11.5pt;
+}
+
+#pgContentWrap .list-header .list-table-header-text .th-inner {
+ color: #fff;
+ text-align: center;
+}
+
/**
p, ul, ol, dl, table {
margin-bottom: 3em;
@@ -210,9 +342,10 @@ p, ul, ol, dl, table {
/* #BLOCKQUOTE */
blockquote {
- border-left: solid 5px #E7EAE8;
- padding: 1em 4em 3em .5em;
- font-style: italic;
+ border-left: solid 5px #E7EAE8;
+ padding: 0em 4em 0em .5em;
+ margin: 1em 0em 1em 0em;
+ font-style: italic;
}
.item blockquote {
@@ -597,7 +730,6 @@ ul.actions {
/* #SIDEBAR UL STYLING */
-
#pgSideNav {
padding: 1em;
background: #f8f9fa;
@@ -635,8 +767,17 @@ ul.actions {
/* #PGCONTENTWRAP */
+#pgContentWrap a:not([href]):not([tabindex]),
+#docContent a:not([href]):not([tabindex]) {
+ color: inherit;
+ text-decoration: none;
+ color: #336791 !important;
+}
+
#pgContentWrap {
padding: 1em 2em;
+ margin: 0 auto;
+ width: 100%;
}
#pgContentWrap a, #docContent a {
@@ -647,7 +788,7 @@ ul.actions {
color: #cf2263;
}
-#pgContentWrap h3 {
+#pgContentWrap h3, #pgContentWrap h4 {
margin: 1em 0;
}
@@ -656,6 +797,10 @@ ul.actions {
margin: 0 5px;
}
+.btn-double-width {
+ width: 28em;
+}
+
i.fas.fa-search {
color: #336791;
}
@@ -695,6 +840,10 @@ pre.code {
margin: 1em auto;
}
+.btn-double-width {
+ width: 28em;
+}
+
.btn-center {
text-align: center;
display: block;
@@ -703,7 +852,7 @@ pre.code {
.btn-primary {
background-color: #336791;
border-color: #336791;
- color: #fff;
+ color: #fff !important;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary.active, .btn:active:focus, .btn.active:focus {
@@ -712,6 +861,10 @@ pre.code {
cursor: pointer;
}
+.btn-inline-block {
+ display: inline-block;
+}
+
.form-row .btn-primary {
margin: 0.5em 0;
}
@@ -966,4 +1119,13 @@ h1.subject {
.pg-jumbotron-header {
font-size: 1.5rem;
}
+
+ .btn-double-width {
+ width: 18em;
+ }
+
+ /** HOMEPAGE ACCORDION */
+ .panel-default>.panel-heading a:after {
+ display: none;
+ }
}
--
2.26.2.windows.1