Ignore:
Timestamp:
Feb 20, 2009, 10:09:34 PM (16 years ago)
Author:
iannucci
Message:

Fixed the log in link for xvm-dev by using environHOSTNAME?

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

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/main.py

    r2161 r2182  
    1313import time
    1414import urllib
     15import os
    1516from StringIO import StringIO
    1617
     
    607608def unauthFront(_, _2, _3, fields):
    608609    """Information for unauth'd users."""
    609     return templates.unauth(searchList=[{'simple' : True}])
     610    return templates.unauth(searchList=[{'simple' : True,
     611            'hostname' : os.environ['HOSTNAME'] if 'HOSTNAME' in os.environ else 'xvm.mit.edu'}])
    610612
    611613def admin(username, state, path, fields):
  • trunk/packages/invirt-web/code/templates/unauth.tmpl

    r1683 r2182  
    1919<p>MIT users:</p>
    2020<blockquote><big><a
    21 href="https://xvm.mit.edu/"><strong><font color="green">&rarr;</font> Log in to XVM now</strong>
     21href="https://$hostname/"><strong><font color="green">&rarr;</font> Log in to XVM now</strong>
    2222</a></big></blockquote>
    2323<p>You'll need an <a href="http://ca.mit.edu/">MIT personal
Note: See TracChangeset for help on using the changeset viewer.