From 740b76159edede54d04100b3168e43975c34b5e0 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 9 Sep 2012 18:14:46 +0200 Subject: W3C Validator (HTML 5 + XHTML 1.1 + CSS level 3) --- css/style.css | 22 +++++----- lib/FPanel/Login.pm | 2 +- lib/Fripost/Schema/List.pm | 2 - template/add-alias.html | 62 +++++++++++++-------------- template/add-list.html | 76 ++++++++++++++++----------------- template/add-mailbox.html | 84 +++++++++++++++++-------------------- template/edit-alias.html | 57 +++++++++++-------------- template/edit-domain.html | 65 +++++++++++++---------------- template/edit-list.html | 40 ++++++++---------- template/edit-mailbox.html | 102 ++++++++++++++++++++------------------------- template/list-domains.html | 9 ++-- template/list-locals.html | 40 +++++++++--------- 12 files changed, 255 insertions(+), 306 deletions(-) diff --git a/css/style.css b/css/style.css index 6b72709..277ff52 100644 --- a/css/style.css +++ b/css/style.css @@ -8,9 +8,6 @@ body { .error { color: #FF0040; } -tt { - font-family: Inconsolata, "Lucida Console", "Droid Sans Mono", Cousine, monospace; -} .inactive { color: #FF0040; } @@ -21,7 +18,9 @@ h1, h2, h3 { margin: 15pt auto 10pt auto; width: 600pt; } - +span.domain, span.email, span.alias, span.mailbox, span.list { + font-family: Inconsolata, "Lucida Console", "Droid Sans Mono", Cousine, monospace; +} /* Login form */ @@ -73,7 +72,7 @@ td.label { /* Listing modes */ -#status { +#domainstatus { margin: 10pt auto; width: 600pt; } @@ -102,17 +101,18 @@ table.list tr.odd td { background:#f7fbff } table.list th { - font-weight:normal; + font-weight: normal; color: #678197; text-align:left; border-bottom: 1px solid #e5eff8; - border-left:1px solid #e5eff8; - padding:.3em 1em; + border-left: 1px solid #e5eff8; + padding: .3em 1em; } table.list thead th { - background:#f4f9fe; - text-align:center; - font-weight:bold; + font-size: 12pt; + font-weight: 600; + background: #f4f9fe; + text-align: center; color:#66a3d3 } .none { diff --git a/lib/FPanel/Login.pm b/lib/FPanel/Login.pm index 3a44768..ab7bf36 100644 --- a/lib/FPanel/Login.pm +++ b/lib/FPanel/Login.pm @@ -203,7 +203,7 @@ sub error_rm : ErrorRunmode { $mesg = 'Forbidden' } elsif ($error eq '404' ) { - $mesg = 'Not found' + $mesg = 'Not Found' } $template->param( code => $error ); $template->param( message => encode_entities ($mesg, "‘‘") ); diff --git a/lib/Fripost/Schema/List.pm b/lib/Fripost/Schema/List.pm index f3ce4b8..ad0902d 100644 --- a/lib/Fripost/Schema/List.pm +++ b/lib/Fripost/Schema/List.pm @@ -163,8 +163,6 @@ sub _is_valid { must_attrs( $l, qw/list isactive/ ); email_valid( $l->{list}, -exact => 1 ); - say STDERR $l->{transport}; - die "Invalid transport: ‘".$l->{transport}."‘\n" if defined $l->{transport} and $l->{transport} !~ /^(schleuder|mailman)$/; diff --git a/template/add-alias.html b/template/add-alias.html index 385060e..7ceb4cf 100644 --- a/template/add-alias.html +++ b/template/add-alias.html @@ -20,59 +20,52 @@
-

Add alias under

+
+

Add alias under

Error:
-
+

-
+
- - + + -

-

Alias name

- @ -

+

Alias name

+ @
-

-

Status

- -
- Warning: emails are not delivered to inactive entries. -
-

+

Status

+ +
+ Warning: emails are not delivered to inactive entries. +

-

-

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +

-

-

Destination(s)

- -
- The list of destinations (one e-mail address per line) that - will receive mail for this alias. -
-

+

Destination(s)

+ +
+ The list of destinations (one e-mail address per line) that + will receive mail for this alias. +


@@ -81,5 +74,6 @@
+
diff --git a/template/add-list.html b/template/add-list.html index 30f31ce..00c94ac 100644 --- a/template/add-list.html +++ b/template/add-list.html @@ -20,66 +20,59 @@
-

Add list under

+
+

Add list under

Error:
-
+

-
+
- - + + -

-

List name

- @ -

+

List name

+ @
-

-

Status

- -
- Warning: emails are not delivered to inactive entries. -
-

+

Status

+ +
+ Warning: emails are not delivered to inactive entries. +

-

-

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +

-

-

Transport

- -
- The mailing list manager. (Note: It is not possible to - switch once the list has been created.) The two current - choices are the well-known - GNU Mailman, and - Schleuder. The - latter offers GPG-enagbled lists (only). -
-

+

Transport

+ +
+ The mailing list manager. (Note: It is not possible to + switch once the list has been created.) The two current + choices are the well-known + GNU Mailman, and + Schleuder. The + latter offers GPG-enagbled lists (only). +


@@ -88,5 +81,6 @@
+
diff --git a/template/add-mailbox.html b/template/add-mailbox.html index 5966b5f..d82af0e 100644 --- a/template/add-mailbox.html +++ b/template/add-mailbox.html @@ -20,76 +20,67 @@
-

Add mailbox under

+
+

Add mailbox under

Error:
-
+

-
+
-

-

User name

- @ -

+

User name

+ @
-

-

Status

- -
- Warning: emails are not delivered to inactive entries. -
-

+

Status

+ +
+ Warning: emails are not delivered to inactive entries. +

-

-

Password

- - - - - - - - - - -
Password
Repeat password
-

+

Password

+ + + + + + + + + + +
Password
Repeat password

-

-

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +

-

-

Mail forwarding

- -
- An optional list of destinations (one e-mail address per line) that - will also receive mail delivered to this mailbox. -
-

+

Mail forwarding

+ +
+ An optional list of destinations (one e-mail address per line) that + will also receive mail delivered to this mailbox. +


@@ -98,5 +89,6 @@
+
diff --git a/template/edit-alias.html b/template/edit-alias.html index 316c181..ef7c553 100644 --- a/template/edit-alias.html +++ b/template/edit-alias.html @@ -21,7 +21,8 @@
-

Edit alias @

+
+

Edit alias

@@ -30,51 +31,42 @@
Your changes have succesfully been submitted.
-
+

-
+
-

- -

Status

- -
- Warning: emails are not delivered to inactive entries. -
-

+

Status

+ +
+ Warning: emails are not delivered to inactive entries. +

-

- -

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +

-

- -

Destination(s)

- -
- The list of destinations (one e-mail address per line) that - will receive mail sent to - @. -
-

+

Destination(s)

+ +
+ The list of destinations (one e-mail address per line) that + will receive mail sent to + . +


@@ -83,5 +75,6 @@
+
diff --git a/template/edit-domain.html b/template/edit-domain.html index fa3d8e3..e6373e8 100644 --- a/template/edit-domain.html +++ b/template/edit-domain.html @@ -20,7 +20,8 @@
-

Edit domain

+
+

Edit domain

@@ -29,54 +30,45 @@
Your changes have succesfully been submitted.
-
+

-
+
-

- -

Status

- -
- Warning: emails are not delivered to mailboxes, - aliases or lists of inactive domains. -
-

+

Status

+ +
+ Warning: emails are not delivered to mailboxes, + aliases or lists of inactive domains. +

-

- -

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +

-

- -

Catch-All aliases

- -
- An optional list of destinations (one e-mail address per line) that - will receive mail sent to non existing recipients. - Domain aliases can be defined by leaving the local part of - the destination empty, like in @example.org: email - to inexisting@ - will then be sent to inexisting@example.org. -
-

+

Catch-All aliases

+ +
+ An optional list of destinations (one e-mail address per line) that + will receive mail sent to non existing recipients. + Domain aliases can be defined by leaving the local part of + the destination empty, like in : + email to + will then be sent to . +


@@ -85,5 +77,6 @@
+
diff --git a/template/edit-list.html b/template/edit-list.html index f77e49b..0a2b5e3 100644 --- a/template/edit-list.html +++ b/template/edit-list.html @@ -21,7 +21,8 @@
-

Edit list @

+
+

Edit list

@@ -30,38 +31,32 @@
Your changes have succesfully been submitted.
-
+

-
+
-

- -

Status

- -
- Warning: emails are not delivered to inactive entries. -
-

+

Status

+ +
+ Warning: emails are not delivered to inactive entries. +

-

- -

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +


@@ -70,5 +65,6 @@
+
diff --git a/template/edit-mailbox.html b/template/edit-mailbox.html index 5cc6a00..5b8ff99 100644 --- a/template/edit-mailbox.html +++ b/template/edit-mailbox.html @@ -21,7 +21,8 @@
-

Edit mailbox @

+
+

Edit mailbox @

@@ -30,80 +31,68 @@
Your changes have succesfully been submitted.
-
+

-
+
-

- -

Status

- -
- Warning: emails are not delivered to inactive entries. -
-

+

Status

+ +
+ Warning: emails are not delivered to inactive entries. +

-

- -

Change password

+

Change password

- - - - - - - - - - - - - -
Current password
New password
Repeat new password
+ + + + + + + + + + + + + +
Current password
New password
Repeat new password
-
- Note: - You need to enter - @'s - current password first. -
-

+
+ Note: + You need to enter + @'s + current password first. +

-

- -

Description

- -
- An optional description. (HTML tags are allowed.) -
-

+

Description

+ +
+ An optional description. (HTML tags are allowed.) +

-

- -

Mail forwarding

- -
- An optional list of destinations (one e-mail address per line) that - will also receive mail delivered to - @. -
-

+

Mail forwarding

+ +
+ An optional list of destinations (one e-mail address per line) that + will also receive mail delivered to + . +


@@ -112,5 +101,6 @@
+
diff --git a/template/list-domains.html b/template/list-domains.html index 8d89cb7..980b8de 100644 --- a/template/list-domains.html +++ b/template/list-domains.html @@ -19,10 +19,10 @@
-

Manage domains[add]

+
+

Manage domains[add]

- - +
@@ -33,12 +33,13 @@ - +
Domain
(none)
+
diff --git a/template/list-locals.html b/template/list-locals.html index ba47ac4..1e3a799 100644 --- a/template/list-locals.html +++ b/template/list-locals.html @@ -19,12 +19,13 @@
-

Manage domain [edit domain]

+
+

Manage domain [edit domain]

-

Domain status: +

Domain status: Active Inactive @@ -35,11 +36,10 @@

Mailboxes[add][add]

- - +
@@ -52,11 +52,11 @@ - + + , @@ -69,11 +69,10 @@

Alias[add][add]

- -
Account
(none) (none) - , (none)
+
@@ -85,20 +84,20 @@ - + + , - + - - + +
Alias
(none) (none) - ,
*Catch-all alias(es) for domain .Catch-all alias(es) for domain . ,
,
@@ -108,11 +107,10 @@

Lists[add][add]

- - +
@@ -124,7 +122,7 @@ - + @@ -133,7 +131,7 @@
List
(none)
- +
-- cgit v1.2.3