From 215d45efd45e47073a2f4238e4e3cef2dd342dc9 Mon Sep 17 00:00:00 2001 From: Steven Valdez Date: Tue, 23 Jul 2013 23:32:16 -0400 Subject: [PATCH] Added motd to pages --- code/templates/error.mako | 6 ++++++ code/templates/info.mako | 6 ++++++ debian/changelog | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/code/templates/error.mako b/code/templates/error.mako index 1edb1b4..77c357b 100644 --- a/code/templates/error.mako +++ b/code/templates/error.mako @@ -5,6 +5,12 @@ ERROR! +%if os.path.exists("/etc/invirt/motd.html"): +
+

${open('/etc/invirt/motd.html').read()|n}

+
+%endif +

Uh-oh! We experienced an error. Sorry about that. We've gotten mail about it.

diff --git a/code/templates/info.mako b/code/templates/info.mako index e83fef1..1fb4284 100644 --- a/code/templates/info.mako +++ b/code/templates/info.mako @@ -5,6 +5,12 @@ Info on ${machine.name} +%if os.path.exists("/etc/invirt/motd.html"): +
+

${open('/etc/invirt/motd.html').read()|n}

+
+%endif + <%def name="infoTable()">

Info

diff --git a/debian/changelog b/debian/changelog index 3e54467..3638daa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-web (0.1.34) unstable; urgency=low + + * Added motd to error page and VM info page. + + -- Steven Valdez Tue, 23 Jul 2013 23:31:50 -0400 + invirt-web (0.1.33) precise; urgency=low * Updating version for precise migration. -- 1.7.9.5