Ignore:
Timestamp:
Jan 21, 2010, 3:06:28 AM (15 years ago)
Author:
quentin
Message:

Put the MOTD at /etc/invirt/motd.html and parse it as HTML

Location:
trunk/packages/invirt-web/code/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/templates/list.mako

    r2871 r2910  
    1010</%def>
    1111
    12 %if os.path.exists("/etc/invirt/message"):
     12%if os.path.exists("/etc/invirt/motd.html"):
    1313<div class="result">
    14 <p class="error">${open('/etc/invirt/message').read()}</p>
     14<p class="error">${open('/etc/invirt/motd.html').read()|n}</p>
    1515</div>
    1616%endif
  • trunk/packages/invirt-web/code/templates/unauth.mako

    r2907 r2910  
    1515to any Athena account holder.</p>
    1616
    17 %if os.path.exists("/etc/invirt/message"):
     17%if os.path.exists("/etc/invirt/motd.html"):
    1818<div class="result">
    19 <p class="error">${open('/etc/invirt/message').read()}</p>
     19<p class="error">${open('/etc/invirt/motd.html').read()|n}</p>
    2020</div>
    2121%endif
Note: See TracChangeset for help on using the changeset viewer.