move country comments after table in web viewer
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 24 May 2008 23:58:05 +0000 (01:58 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Sat, 24 May 2008 23:58:05 +0000 (01:58 +0200)
web/Regulatory.py

index 91105fb..dcdabc0 100644 (file)
@@ -32,14 +32,6 @@ 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([
@@ -118,6 +110,13 @@ 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'))