## This file is subject to the terms and conditions defined in ## file 'LICENSE', which is part of this source code package. ## Copyright (c) 2009 SKR Farms (P) LTD. ## -*- coding: utf-8 -*- <%namespace name="elements" file="/component/elements.html"/> <%namespace name="forms" file="/component/forms.html"/> ${self.hd_title()} ${self.hd_meta()} ${self.hd_links()} ${self.hd_styles()} ${self.hd_script()} <% disclaimer = config['zeta.hdisclaimer'] %> % if disclaimer :
${disclaimer}
% endif ${self.bd_metanav()} ${self.bd_header()} ${self.bd_breadcrumbs()} ${self.bd_body()} ${self.bd_footer()} ${self.bd_script()} ## Title <%def name="hd_title()" > ${c.title} ## Meta Tags and Attibutes <%def name="hd_meta()"> ## Fill up this function with meta tags and attributes. ## CSS Link <%def name="hd_links()" > <%def name="hd_styles()"> <%def name="hd_script()"> ## Meta Navigation <%def name="bd_metanav()" >
${c.authusername} | <% bar = ' ' %> % for m in c.metanavs : % if m.type == 'link' : ${bar} ${m.text} <% bar = '|' %> % elif m.type == 'pointer' : ${bar} ${m.text} <% bar = '|' %> % else : ♦ <% bar = ' ' %> % endif % endfor
## View Header <%def name="bd_header()" > ${elements.flashmessages()} % if config['zeta.pageheader'] :
${forms.form_searchbox( c.authuser, 'searchzeta', 'Search-Site', h.suburl_searchzeta )}
% if c.project : ${forms.form_searchbox( c.authuser, 'searchproject', 'Search-project', h.suburl_search, [( 'project', c.project.projectname )] )} % endif
% endif <%def name="bd_breadcrumbs()"> <% e = request.environ bd = session.get( 'breadcrumbs', [] ) hrefs = h.urlpathcrumbs( e['PATH_INFO'], e['HTTP_HOST'], e['SCRIPT_NAME'] ) node = lambda text, ref : '%s' % ( ref, text ) %> % if c.authorized :
% for text, ref in hrefs[:-1] : ${elements.iconize( node(text,ref), 'arrow_right', classes='floatl', styles="padding-left: 8px" )} % endfor % if hrefs : ${elements.iconize( hrefs[-1][0], 'arrow_right', classes='floatl fggray', styles="padding-left: 8px" )} % endif % for title, href in bd : ${title} % endfor  
% endif <%def name="bd_body()"> <%def name="bd_footer()"> <%def name="bd_script()"> ## High charts library ## Skip the google web-analytics block for signin page since Authkit ## interprets the % character for text substitution. % if h.webanalytics and not getattr( c, 'skipga', False ) : ${h.webanalytics | n} % endif