Revert "move country comments after table in web viewer"
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 24 May 2008 23:58:38 +0000 (01:58 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Sat, 24 May 2008 23:58:38 +0000 (01:58 +0200)
This reverts commit 4a68889b3378485aba42c2499d2e2a68a4b616db.

web/Regulatory.py

index dcdabc0..91105fb 100644 (file)
@@ -32,6 +32,14 @@ def _country(macro, countries, code):
     except:
         result.append(f.text('No information available'))
         return ''.join(result)
+    
+
+    if country.comments:
+        result.extend([
+            f.preformatted(1),
+            f.text('\n'.join(country.comments)),
+            f.preformatted(0),
+        ])
 
     result.append(f.table(1))
     result.extend([
@@ -110,13 +118,6 @@ def _country(macro, countries, code):
     
     result.append(f.table(0))
 
-    if country.comments:
-        result.extend([
-            f.preformatted(1),
-            f.text('\n'.join(country.comments)),
-            f.preformatted(0),
-        ])
-
     result.append(f.linebreak(0))
     result.append(f.linebreak(0))
     result.append(macro.request.page.link_to(macro.request, 'return to country list'))