Added motd to pages
authorSteven Valdez <dvorak42@mit.edu>
Wed, 24 Jul 2013 03:32:16 +0000 (23:32 -0400)
committerSteven Valdez <dvorak42@mit.edu>
Wed, 24 Jul 2013 03:32:16 +0000 (23:32 -0400)
code/templates/error.mako
code/templates/info.mako
debian/changelog

index 1edb1b4..77c357b 100644 (file)
@@ -5,6 +5,12 @@
 ERROR!
 </%def>
 
+%if os.path.exists("/etc/invirt/motd.html"):
+<div class="result">
+<p class="error">${open('/etc/invirt/motd.html').read()|n}</p>
+</div>
+%endif
+
 <p>Uh-oh!  We experienced an error.  Sorry about that.  We've gotten
 mail about it.</p>
 
index e83fef1..1fb4284 100644 (file)
@@ -5,6 +5,12 @@
 Info on ${machine.name}
 </%def>
 
+%if os.path.exists("/etc/invirt/motd.html"):
+<div class="result">
+<p class="error">${open('/etc/invirt/motd.html').read()|n}</p>
+</div>
+%endif
+
 <%def name="infoTable()">
 <h2>Info</h2>
 <table>
index 3e54467..3638daa 100644 (file)
@@ -1,3 +1,9 @@
+invirt-web (0.1.34) unstable; urgency=low
+
+  * Added motd to error page and VM info page.
+
+ -- Steven Valdez <dvorak42@mit.edu>  Tue, 23 Jul 2013 23:31:50 -0400
+
 invirt-web (0.1.33) precise; urgency=low
 
   * Updating version for precise migration.