Put the MOTD at /etc/invirt/motd.html and parse it as HTML 0.1.5
authorQuentin Smith <quentin@mit.edu>
Thu, 21 Jan 2010 08:06:28 +0000 (03:06 -0500)
committerQuentin Smith <quentin@mit.edu>
Thu, 21 Jan 2010 08:06:28 +0000 (03:06 -0500)
svn path=/trunk/packages/invirt-web/; revision=2910

code/templates/list.mako
code/templates/unauth.mako

index f363537..d71792a 100644 (file)
@@ -9,9 +9,9 @@
 VM List
 </%def>
 
 VM List
 </%def>
 
-%if os.path.exists("/etc/invirt/message"):
+%if os.path.exists("/etc/invirt/motd.html"):
 <div class="result">
 <div class="result">
-<p class="error">${open('/etc/invirt/message').read()}</p>
+<p class="error">${open('/etc/invirt/motd.html').read()|n}</p>
 </div>
 %endif
 
 </div>
 %endif
 
index f802548..c9739d4 100644 (file)
@@ -14,9 +14,9 @@ Debian or Ubuntu install</strong> or install the <strong>operating
 system of your choice</strong>.  The service is <strong>free</strong>
 to any Athena account holder.</p>
 
 system of your choice</strong>.  The service is <strong>free</strong>
 to any Athena account holder.</p>
 
-%if os.path.exists("/etc/invirt/message"):
+%if os.path.exists("/etc/invirt/motd.html"):
 <div class="result">
 <div class="result">
-<p class="error">${open('/etc/invirt/message').read()}</p>
+<p class="error">${open('/etc/invirt/motd.html').read()|n}</p>
 </div>
 %endif
 
 </div>
 %endif