Skip to content

Commit db9957d

Browse files
committed
further clean up and improvements to list page
1 parent e9405d0 commit db9957d

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

lists/index.rkt

+15-16
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,26 @@
3838
(define (list-cells what) (map (λ (r) (r what)) list-renderers))
3939
]{
4040
@columns[12 #:center? #t #:row? #t]{
41-
@p{This is the Racket mailing list server. We have several public mailing
42-
lists, some are listed below with several mirrors for each one. The
43-
complete list of public mailing lists is available on
44-
@a[href: "listinfo"]{this page}.}}
41+
@p{We have several public mailing lists.}}
4542
@(define gap1 (tr (map (λ (_) @td{@div[style: "height: 1ex;"]{}}) MLs)))
4643
@(define gap2 (tr (map (λ (_) @td{}) MLs)))
4744
@(define (sec . text)
4845
@list{@gap1
4946
@tr{@td[style: '("background-color: #dddddd; font-weight: bold;"
5047
" padding: 0;")
51-
colspan: (length MLs)]{@text}}
48+
colspan: (add1 (length MLs))]{@text}}
5249
@gap2})
5350
@columns[12 #:center? #t #:row? #t]{
5451
@table[style: "width: 100%; margin: auto; text-align: center;"
5552
frame: 'box rules: 'cols cellpadding: 5]{
5653
@tr[style: "border-bottom: 1px solid; background-color: #ccccff;"]{
57-
@(list-cells 'header-cell)}
58-
@tr[valign: 'top style: "text-align: left;"]{@(list-cells 'description)}
59-
@tr{@(list-cells 'main-page-cell)}
54+
@td[] @(list-cells 'header-cell)}
55+
@tr[valign: 'top style: "text-align: left;"]{@td[] @(list-cells 'description)}
56+
@tr{@td[] @(list-cells 'main-page-cell)}
6057
@sec{Subscribe to a mailing list}
61-
@tr{@(list-cells 'subscribe-cell)}
58+
@tr{@td[] @(list-cells 'subscribe-cell)}
6259
@sec{Archive at mail-archive.com}
63-
@tr{@(list-cells 'mail-archive-cell)}
64-
@sec{Google group mirror}
65-
@tr{@(list-cells 'google-cell)}}}})
60+
@tr{@td[] @(list-cells 'mail-archive-cell)}}}})
6661

6762
;; given a mailing list structure, produce a renderer that can produce
6863
;; the required components on demand
@@ -90,9 +85,11 @@
9085
(and google-groups-url
9186
(append google-groups-url (list "join"))))
9287
(define google-groups-join-text
93-
(string-append "Join the "name" mailing list with a Google account"))
88+
@span[style: "font-style: italic"]{With Google account: })
89+
(define google-groups-join-link-text
90+
(string-append "join the "name" mailing list"))
9491
(define google-groups-join-no-account-text
95-
@span{Join without a Google account by sending email to @tt[name "[email protected]"]})
92+
@span{@span[style: "font-style: italic"]{Without Google account: }send email to @tt[name "[email protected]"]})
9693
(define ((mk-form make) url #:method [method 'get] . body)
9794
(make @form[action: url method: method
9895
style: "display: inline; clear: none;"]{
@@ -107,8 +104,9 @@
107104
title: @list{Enter your email to subscribe
108105
to the "@name" mailing list.}]}]
109106
[else ;; it must be a google group
110-
@td{@div{@a[href: google-groups-join-url]{@google-groups-join-text}}
111-
@div[style: "font-size: small; font-weight: normal" google-groups-join-no-account-text]}]))
107+
@td{@div{@|google-groups-join-text|@a[href: google-groups-join-url]{@google-groups-join-link-text}}
108+
@div{@nbsp}
109+
@div[google-groups-join-no-account-text]}]))
112110
(define form-cell (mk-form td))
113111
(λ (what)
114112
(case what
@@ -134,6 +132,7 @@
134132
@bull
135133
@a[href: (list name "/archive/")]{old archive}}])]
136134
[(subscribe-cell) (mk-subscribe td)]
135+
#;
137136
[(google-cell)
138137
(if google-groups-url
139138
@form-cell[(list google-groups-url "search")]{

0 commit comments

Comments
 (0)