2008-07-31 19:19:08 +00:00
from mako import runtime , filters , cache
UNDEFINED = runtime . UNDEFINED
_magic_number = 2
2008-08-12 21:10:18 +00:00
_modified_time = 1218555872.226696
2008-07-31 19:19:08 +00:00
_template_filename = u ' /home/nils/src/yolanda/trunk/yolanda/templates/xhtml/base.mako '
_template_uri = u ' /xhtml/base.mako '
_template_cache = cache . Cache ( __name__ , _modified_time )
_source_encoding = None
2008-08-11 20:37:26 +00:00
_exports = [ ' search ' , ' tagcloud ' , ' login ' ]
2008-07-31 19:19:08 +00:00
def render_body ( context , * * pageargs ) :
context . caller_stack . push_frame ( )
try :
__M_locals = dict ( pageargs = pageargs )
h = context . get ( ' h ' , UNDEFINED )
self = context . get ( ' self ' , UNDEFINED )
# SOURCE LINE 1
2008-08-07 18:23:02 +00:00
context . write ( u ' <?xml version= " 1.0 " ?> \n <!DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1.0 Transitional//EN " \n " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " > \n \n ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 38
context . write ( u ' \n \n ' )
# SOURCE LINE 53
context . write ( u ' \n \n ' )
# SOURCE LINE 87
2008-08-07 18:23:02 +00:00
context . write ( u ' \n \n <html xmlns= " http://www.w3.org/1999/xhtml " > \n \n <head> \n \n <meta \n http-equiv= " Content-Type " \n content= " application/xhtml+xml;charset=utf-8 " \n /> \n \n <link \n rel= " stylesheet " \n type= " text/css " \n media= " screen " \n href= " ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 102
2008-07-31 19:19:08 +00:00
context . write ( unicode ( h . url_for ( ' /css/default.css ' ) ) )
context . write ( u ' " \n /> \n \n <title> \n Yolanda - ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 106
2008-07-31 19:19:08 +00:00
context . write ( unicode ( self . title ( ) ) )
2008-08-12 21:10:18 +00:00
context . write ( u ' \n </title> \n \n </head> \n \n <body> \n \n <div id= " heading " > \n <h1> \n ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 115
2008-07-31 19:19:08 +00:00
context . write ( unicode ( self . heading ( ) ) )
2008-08-07 18:23:02 +00:00
context . write ( u ' \n </h1> \n </div> \n \n ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 119
2008-08-07 18:23:02 +00:00
context . write ( unicode ( self . search ( ) ) )
context . write ( u ' \n \n ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 121
2008-08-12 21:10:18 +00:00
context . write ( unicode ( self . login ( ) ) )
2008-08-11 20:37:26 +00:00
context . write ( u ' \n \n ' )
# SOURCE LINE 123
2008-08-12 21:10:18 +00:00
context . write ( unicode ( self . tagcloud ( ) ) )
2008-08-11 20:37:26 +00:00
context . write ( u ' \n \n ' )
# SOURCE LINE 125
2008-08-07 18:23:02 +00:00
context . write ( unicode ( self . body ( ) ) )
context . write ( u ' \n \n <div id= " copyright " > \n <em>Yolanda</em> Copyright © 2007, 2008 <em>The Yolanda Developers</em> – \n This program comes with <em>absolutely no warranty</em>; for details <a href= " ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 129
2008-08-07 18:23:02 +00:00
context . write ( unicode ( h . url_for ( ' license ' ) ) )
context . write ( u ' " >click here</a>. \n This is <em>free software</em>, and you are welcome to redistribute it \n under certain conditions; <a href= " ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 131
2008-08-07 18:23:02 +00:00
context . write ( unicode ( h . url_for ( ' license ' ) ) )
2008-08-11 20:37:26 +00:00
context . write ( u ' " >click here</a> for details. \n To view the source code, <a href= " " >click here</a>. Report bugs <a href= " " >here</a>. \n </div> \n \n <ul id= " badges " > \n \n <li class= " badge " > \n <a href= " http://validator.w3.org/ " > \n <img alt= " XHTML 1.1 logo " src= " ' )
# SOURCE LINE 139
2008-08-07 18:23:02 +00:00
context . write ( unicode ( h . url_for ( ' images/badges/xhtml 1.1.png ' ) ) )
2008-08-11 20:37:26 +00:00
context . write ( u ' " /> \n </a> \n </li> \n \n <li class= " badge " > \n <a href= " http://jigsaw.w3.org/css-validator/ " > \n <img alt= " CSS logo " src= " ' )
# SOURCE LINE 145
2008-08-07 18:23:02 +00:00
context . write ( unicode ( h . url_for ( ' images/badges/css.png ' ) ) )
2008-08-11 20:37:26 +00:00
context . write ( u ' " /> \n </a> \n </li> \n \n <li class= " badge " > \n <a href= " http://www.theora.org/ " > \n <img alt= " Ogg Theora logo " src= " ' )
# SOURCE LINE 151
2008-08-07 18:23:02 +00:00
context . write ( unicode ( h . url_for ( ' images/badges/ogg theora.png ' ) ) )
context . write ( u ' " /> \n </a> \n </li> \n \n </ul> \n \n </body> \n \n </html> \n ' )
return ' '
finally :
context . caller_stack . pop_frame ( )
def render_search ( context ) :
context . caller_stack . push_frame ( )
try :
h = context . get ( ' h ' , UNDEFINED )
# SOURCE LINE 5
2008-08-12 21:10:18 +00:00
context . write ( u ' \n <div id= " search " > \n \n ' )
2008-08-07 18:23:02 +00:00
# SOURCE LINE 8
2008-07-31 19:19:08 +00:00
context . write ( unicode ( h . form ( h . url_for ( ' search_results ' ) , method = ' get ' ) ) )
context . write ( u ' \n \n ' )
2008-08-07 18:23:02 +00:00
# SOURCE LINE 10
2008-07-31 19:19:08 +00:00
context . write ( unicode ( h . text_field ( ' query ' ) ) )
context . write ( u ' \n ' )
2008-08-07 18:23:02 +00:00
# SOURCE LINE 11
context . write ( unicode ( h . submit ( ' Search Videos ' ) ) )
2008-07-31 19:19:08 +00:00
context . write ( u ' \n \n ' )
2008-08-07 18:23:02 +00:00
# SOURCE LINE 13
2008-07-31 19:19:08 +00:00
context . write ( unicode ( h . end_form ( ) ) )
2008-08-11 20:37:26 +00:00
context . write ( u ' \n \n <ul id= " queries " > \n \n <li id= " important " > \n <a href= " " > \n Important matters \n </a> \n </li> \n \n <li id= " popular " > \n <a href= " " > \n Popular garbage \n </a> \n </li> \n \n <li id= " new " > \n <a href= " " > \n Totally new stuff \n </a> \n </li> \n \n </ul> \n \n </div> \n ' )
return ' '
finally :
context . caller_stack . pop_frame ( )
def render_tagcloud ( context ) :
context . caller_stack . push_frame ( )
try :
# SOURCE LINE 55
2008-08-12 21:10:18 +00:00
context . write ( u ' \n <div id= " tagcloud " > \n \n <h1>Popular tags</h1> \n \n <a href= " " class= " tag6 " >Proin</a> \n <a href= " " class= " tag5 " >lectus</a> \n <a href= " " class= " tag2 " >orci</a> \n <a href= " " class= " tag6 " >venenatis</a> \n <a href= " " class= " tag5 " >pharetra</a> \n <a href= " " class= " tag6 " >egestas</a> \n <a href= " " class= " tag1 " >id</a> \n <a href= " " class= " tag6 " >tincidunt</a> \n <a href= " " class= " tag5 " >vel</a> \n <a href= " " class= " tag3 " >eros</a> \n <a href= " " class= " tag6 " >Integer</a> \n <a href= " " class= " tag6 " >risus</a> \n <a href= " " class= " tag6 " >velit</a> \n <a href= " " class= " tag2 " >facilisis</a> \n <a href= " " class= " tag4 " >eget</a> \n <a href= " " class= " tag5 " >viverra</a> \n <a href= " " class= " tag6 " >et</a> \n <a href= " " class= " tag6 " >leo</a> \n <a href= " " class= " tag1 " >Suspendisse</a> \n <a href= " " class= " tag3 " >potenti</a> \n <a href= " " class= " tag5 " >Phasellus</a> \n <a href= " " class= " tag4 " >auctor</a> \n <a href= " " class= " tag6 " >enim</a> \n <a href= " " class= " tag3 " >eget</a> \n <a href= " " class= " tag4 " >sem</a> \n \n </div> \n ' )
2008-08-11 20:37:26 +00:00
return ' '
finally :
context . caller_stack . pop_frame ( )
def render_login ( context ) :
context . caller_stack . push_frame ( )
try :
h = context . get ( ' h ' , UNDEFINED )
# SOURCE LINE 40
2008-08-12 21:10:18 +00:00
context . write ( u ' \n <div id= " login " > \n \n <h1>To upload videos, login.</h1> \n \n ' )
2008-08-11 20:37:26 +00:00
# SOURCE LINE 45
context . write ( unicode ( h . form ( h . url_for ( ' account_login ' ) , method = ' post ' ) ) )
context . write ( u ' \n \n ' )
# SOURCE LINE 47
context . write ( unicode ( h . text_field ( ' username ' ) ) )
context . write ( u ' \n ' )
# SOURCE LINE 48
context . write ( unicode ( h . submit ( ' Login (OpenID) ' ) ) )
context . write ( u ' \n \n ' )
# SOURCE LINE 50
context . write ( unicode ( h . end_form ( ) ) )
2008-08-07 18:23:02 +00:00
context . write ( u ' \n \n </div> \n ' )
2008-07-31 19:19:08 +00:00
return ' '
finally :
context . caller_stack . pop_frame ( )