lib/helpers.py
branchsites
changeset 42 5a72c00c4ae4
parent 29 b06ff4c05d42
child 43 fc11c4e86a82
--- a/lib/helpers.py	Sun Feb 08 00:29:36 2009 +0200
+++ b/lib/helpers.py	Sun Feb 08 02:29:23 2009 +0200
@@ -20,6 +20,15 @@
 
     return time.strftime("%Y")
 
+def validation_notice (site_host) :
+    """
+        Returns a short "Validated XHTML & CSS" link text for the given site hostname
+    """
+
+    return 'Validated <a href="http://validator.w3.org/check?uri=%(host)s">XHTML 1.0 Strict</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=%(host)s">CSS 2.1</a>' % dict(
+        host = site_host
+    )
+
 def breadcrumb (trail, links=True) :
     """
         Returns a nicely formatted breadcrumb tail, optinally with links