Changeset 2102
- Timestamp:
- 07/03/10 13:42:07 (19 months ago)
- Location:
- trunk/loreality
- Files:
-
- 1 added
- 6 edited
-
data/templates/base/index.html.py (modified) (9 diffs)
-
data/templates/component/navigation.html.py (modified) (2 diffs)
-
development.db (modified) (previous)
-
loreality/lib/helpers.py (modified) (1 diff)
-
loreality/public/style.css (added)
-
loreality/templates/base/index.html (modified) (2 diffs)
-
loreality/templates/component/navigation.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/loreality/data/templates/base/index.html.py
r2100 r2102 4 4 __M_locals_builtin = locals 5 5 _magic_number = 5 6 _modified_time = 1278 073648.6681967 _template_filename='/ media/divers/personnel/dev/dartsite.org/lotatc/trunk/loreality/loreality/templates/base/index.html'6 _modified_time = 1278163767.2197909 7 _template_filename='/home/dart/trunk/loreality/loreality/templates/base/index.html' 8 8 _template_uri='/base/index.html' 9 9 _template_cache=cache.Cache(__name__, _modified_time) … … 37 37 __M_writer(u'') 38 38 # SOURCE LINE 3 39 __M_writer(u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n"http://www.w3.org/TR/html4/strict.dtd">\n<html>\n<head>\n <title>')39 __M_writer(u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n"http://www.w3.org/TR/html4/strict.dtd">\n<html>\n<head>\n') 40 40 # SOURCE LINE 8 41 __M_writer(escape( h.stylesheet_link( '/style.css') )) 42 __M_writer(u'\n <title>') 43 # SOURCE LINE 9 41 44 __M_writer(escape(self.title())) 42 45 __M_writer(u'</title>\n ') 43 # SOURCE LINE 946 # SOURCE LINE 10 44 47 __M_writer(escape(self.head())) 45 48 __M_writer(u'\n</head>\n<body>\n <div id="hd">\n <div class="yui-gc">\n <div class="yui-u first">\n ') 46 # SOURCE LINE 1 549 # SOURCE LINE 16 47 50 __M_writer(escape(self.heading())) 48 __M_writer(u'\n </div>\n <div class="yui-u">\n')49 # SOURCE LINE 1 851 __M_writer(u'\n </div>\n <div id="sign">\n') 52 # SOURCE LINE 19 50 53 if h.auth.authorized(h.auth.is_valid_user) and not (request.urlvars['controller'] == 'account' and request.urlvars['action'] == 'signout'): 51 # SOURCE LINE 1954 # SOURCE LINE 20 52 55 __M_writer(u' <p>Signed in as ') 53 56 __M_writer(escape(request.environ['REMOTE_USER'])) 54 57 __M_writer(u',\n <a href="') 55 # SOURCE LINE 2 058 # SOURCE LINE 21 56 59 __M_writer(escape(h.url_for('signout'))) 57 60 __M_writer(u'">Sign out</a></p>\n') 58 # SOURCE LINE 2 161 # SOURCE LINE 22 59 62 else: 60 # SOURCE LINE 2 263 # SOURCE LINE 23 61 64 __M_writer(u' <p><a href="') 62 65 __M_writer(escape(h.url_for('signin'))) 63 66 __M_writer(u'">Sign in</a></p>\n') 64 # SOURCE LINE 2 467 # SOURCE LINE 25 65 68 __M_writer(u' </div>\n </div>\n ') 66 # SOURCE LINE 2 669 # SOURCE LINE 27 67 70 __M_writer(escape(self.header())) 68 71 __M_writer(u'\n ') 69 # SOURCE LINE 2 772 # SOURCE LINE 28 70 73 __M_writer(escape(self.tabs())) 71 74 __M_writer(u'\n </div>\n ') 72 # SOURCE LINE 2975 # SOURCE LINE 30 73 76 __M_writer(escape(self.menu())) 74 77 __M_writer(u'\n ') 75 # SOURCE LINE 3 078 # SOURCE LINE 31 76 79 __M_writer(escape(next.body())) 77 80 __M_writer(u'\n ') 78 # SOURCE LINE 3 181 # SOURCE LINE 32 79 82 __M_writer(escape(self.footer())) 80 83 __M_writer(u'\n</body>\n</html>\n\n') 81 # SOURCE LINE 3582 __M_writer(u'\n')83 84 # SOURCE LINE 36 84 85 __M_writer(u'\n') … … 92 93 __M_writer(u'\n') 93 94 # SOURCE LINE 41 95 __M_writer(u'\n') 96 # SOURCE LINE 42 94 97 __M_writer(u'\n') 95 98 return '' … … 115 118 _mako_get_namespace(context, 'navigation')._populate(_import_ns, ['*']) 116 119 __M_writer = context.writer() 117 # SOURCE LINE 3 5120 # SOURCE LINE 36 118 121 __M_writer(u'LoReality') 119 122 return '' … … 129 132 navigation = _mako_get_namespace(context, 'navigation') 130 133 __M_writer = context.writer() 131 # SOURCE LINE 3 8134 # SOURCE LINE 39 132 135 __M_writer(escape(navigation.tabs())) 133 136 return '' … … 143 146 navigation = _mako_get_namespace(context, 'navigation') 144 147 __M_writer = context.writer() 145 # SOURCE LINE 39148 # SOURCE LINE 40 146 149 __M_writer(escape(navigation.menu())) 147 150 return '' … … 156 159 _mako_get_namespace(context, 'navigation')._populate(_import_ns, ['*']) 157 160 __M_writer = context.writer() 158 # SOURCE LINE 4 1161 # SOURCE LINE 42 159 162 __M_writer(u'<p><a href="#top">Top ^</a></p>') 160 163 return '' … … 169 172 _mako_get_namespace(context, 'navigation')._populate(_import_ns, ['*']) 170 173 __M_writer = context.writer() 171 # SOURCE LINE 3 7174 # SOURCE LINE 38 172 175 __M_writer(u'<a name="top"></a>') 173 176 return '' … … 183 186 c = _import_ns.get('c', context.get('c', UNDEFINED)) 184 187 __M_writer = context.writer() 185 # SOURCE LINE 4 0188 # SOURCE LINE 41 186 189 __M_writer(u'<h1>') 187 190 __M_writer(escape(c.heading or 'No Title')) -
trunk/loreality/data/templates/component/navigation.html.py
r2098 r2102 4 4 __M_locals_builtin = locals 5 5 _magic_number = 5 6 _modified_time = 127 7929761.78986916 _modified_time = 1278163067.127619 7 7 _template_filename='/home/dart/trunk/loreality/loreality/templates/component/navigation.html' 8 8 _template_uri='/component/navigation.html' … … 54 54 __M_writer = context.writer() 55 55 # SOURCE LINE 9 56 __M_writer(u'\n <div id="menu">\n<ul >\n\t<li> <a href=')56 __M_writer(u'\n <div id="menu">\n<ul class="menu">\n\t<li> <a href=') 57 57 # SOURCE LINE 12 58 58 __M_writer(escape(h.url_for('/'))) -
trunk/loreality/loreality/lib/helpers.py
r2097 r2102 9 9 from webhelpers.html.tags import * 10 10 from loreality.lib import auth 11 from webhelpers.html.tags import stylesheet_link 11 12 13 -
trunk/loreality/loreality/templates/base/index.html
r2100 r2102 6 6 <html> 7 7 <head> 8 ${ h.stylesheet_link( '/style.css') } 8 9 <title>${self.title()}</title> 9 10 ${self.head()} … … 15 16 ${self.heading()} 16 17 </div> 17 <div class="yui-u">18 <div id="sign"> 18 19 % if h.auth.authorized(h.auth.is_valid_user) and not (request.urlvars['controller'] == 'account' and request.urlvars['action'] == 'signout'): 19 20 <p>Signed in as ${request.environ['REMOTE_USER']}, -
trunk/loreality/loreality/templates/component/navigation.html
r2098 r2102 9 9 <%def name="menu()"> 10 10 <div id="menu"> 11 <ul >11 <ul class="menu"> 12 12 <li> <a href=${h.url_for('/')}>Home</a> </li> 13 13 % if h.auth.authorized(h.auth.is_valid_user) and not (request.urlvars['controller'] == 'account' and request.urlvars['action'] == 'signout'):
Note: See TracChangeset
for help on using the changeset viewer.
