Automatic commit via /home/don/bin/deployweb Thu Jun 11 21:00:10 UTC 2015

This commit is contained in:
Don Harper 2015-06-11 21:00:10 +00:00
parent 5989e95aee
commit 34713e127f
48 changed files with 794 additions and 794 deletions

View file

@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1434052807.07361
_modified_time = 1434056407.3821802
_enable_loop = True
_template_filename = 'themes/bootstrap3/templates/base_helper.tmpl'
_template_uri = 'base_helper.tmpl'
_source_encoding = 'utf-8'
_exports = ['html_translations', 'late_load_js', 'html_headstart', 'html_navigation_links', 'html_feedlinks', 'html_stylesheets']
_exports = ['html_headstart', 'html_translations', 'html_stylesheets', 'html_feedlinks', 'late_load_js', 'html_navigation_links']
def render_body(context,**pageargs):
@ -29,88 +29,32 @@ def render_body(context,**pageargs):
context.caller_stack._pop_frame()
def render_html_translations(context):
__M_caller = context.caller_stack._push_frame()
try:
messages = context.get('messages', UNDEFINED)
_link = context.get('_link', UNDEFINED)
translations = context.get('translations', UNDEFINED)
lang = context.get('lang', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
for langname in translations.keys():
if langname != lang:
__M_writer(' <li><a href="')
__M_writer(str(_link("index", None, langname)))
__M_writer('" rel="alternate" hreflang="')
__M_writer(str(langname))
__M_writer('">')
__M_writer(str(messages("LANGUAGE", langname)))
__M_writer('</a></li>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_late_load_js(context):
__M_caller = context.caller_stack._push_frame()
try:
social_buttons_code = context.get('social_buttons_code', UNDEFINED)
lang = context.get('lang', UNDEFINED)
colorbox_locales = context.get('colorbox_locales', UNDEFINED)
use_bundles = context.get('use_bundles', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_bundles:
if use_cdn:
__M_writer(' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>\n <script src="/assets/js/all.js"></script>\n')
else:
__M_writer(' <script src="/assets/js/all-nocdn.js"></script>\n')
else:
if use_cdn:
__M_writer(' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>\n')
else:
__M_writer(' <script src="/assets/js/jquery.min.js"></script>\n <script src="/assets/js/bootstrap.min.js"></script>\n <script src="/assets/js/moment-with-locales.min.js"></script>\n <script src="/assets/js/fancydates.js"></script>\n')
__M_writer(' <script src="/assets/js/jquery.colorbox-min.js"></script>\n')
if colorbox_locales[lang]:
__M_writer(' <script src="/assets/js/colorbox-i18n/jquery.colorbox-')
__M_writer(str(colorbox_locales[lang]))
__M_writer('.js"></script>\n')
__M_writer(' ')
__M_writer(str(social_buttons_code))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_headstart(context):
__M_caller = context.caller_stack._push_frame()
try:
is_rtl = context.get('is_rtl', UNDEFINED)
twitter_card = context.get('twitter_card', UNDEFINED)
comment_system = context.get('comment_system', UNDEFINED)
description = context.get('description', UNDEFINED)
def html_feedlinks():
return render_html_feedlinks(context)
favicons = context.get('favicons', UNDEFINED)
nextlink = context.get('nextlink', UNDEFINED)
def html_stylesheets():
return render_html_stylesheets(context)
url_replacer = context.get('url_replacer', UNDEFINED)
comment_system_id = context.get('comment_system_id', UNDEFINED)
extra_head_data = context.get('extra_head_data', UNDEFINED)
lang = context.get('lang', UNDEFINED)
use_open_graph = context.get('use_open_graph', UNDEFINED)
abs_link = context.get('abs_link', UNDEFINED)
mathjax_config = context.get('mathjax_config', UNDEFINED)
blog_title = context.get('blog_title', UNDEFINED)
striphtml = context.get('striphtml', UNDEFINED)
prevlink = context.get('prevlink', UNDEFINED)
twitter_card = context.get('twitter_card', UNDEFINED)
title = context.get('title', UNDEFINED)
is_rtl = context.get('is_rtl', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
use_open_graph = context.get('use_open_graph', UNDEFINED)
blog_title = context.get('blog_title', UNDEFINED)
mathjax_config = context.get('mathjax_config', UNDEFINED)
favicons = context.get('favicons', UNDEFINED)
nextlink = context.get('nextlink', UNDEFINED)
url_replacer = context.get('url_replacer', UNDEFINED)
extra_head_data = context.get('extra_head_data', UNDEFINED)
comment_system_id = context.get('comment_system_id', UNDEFINED)
permalink = context.get('permalink', UNDEFINED)
def html_feedlinks():
return render_html_feedlinks(context)
description = context.get('description', UNDEFINED)
prevlink = context.get('prevlink', UNDEFINED)
striphtml = context.get('striphtml', UNDEFINED)
lang = context.get('lang', UNDEFINED)
abs_link = context.get('abs_link', UNDEFINED)
title = context.get('title', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<!DOCTYPE html>\n<html\n')
if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']) or (comment_system == 'facebook'):
@ -185,15 +129,139 @@ def render_html_headstart(context):
context.caller_stack._pop_frame()
def render_html_translations(context):
__M_caller = context.caller_stack._push_frame()
try:
_link = context.get('_link', UNDEFINED)
lang = context.get('lang', UNDEFINED)
translations = context.get('translations', UNDEFINED)
messages = context.get('messages', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
for langname in translations.keys():
if langname != lang:
__M_writer(' <li><a href="')
__M_writer(str(_link("index", None, langname)))
__M_writer('" rel="alternate" hreflang="')
__M_writer(str(langname))
__M_writer('">')
__M_writer(str(messages("LANGUAGE", langname)))
__M_writer('</a></li>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_stylesheets(context):
__M_caller = context.caller_stack._push_frame()
try:
use_bundles = context.get('use_bundles', UNDEFINED)
notes = context.get('notes', UNDEFINED)
annotations = context.get('annotations', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
has_custom_css = context.get('has_custom_css', UNDEFINED)
post = context.get('post', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_bundles:
if use_cdn:
__M_writer(' <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">\n <link href="/assets/css/all.css" rel="stylesheet" type="text/css">\n')
else:
__M_writer(' <link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">\n')
else:
if use_cdn:
__M_writer(' <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">\n')
else:
__M_writer(' <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">\n')
__M_writer(' <link href="/assets/css/rst.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/code.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/colorbox.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/theme.css" rel="stylesheet" type="text/css">\n')
if has_custom_css:
__M_writer(' <link href="/assets/css/custom.css" rel="stylesheet" type="text/css">\n')
if annotations and post and not post.meta('noannotations'):
__M_writer(' ')
__M_writer(str(notes.css()))
__M_writer('\n')
elif not annotations and post and post.meta('annotations'):
__M_writer(' ')
__M_writer(str(notes.css()))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_feedlinks(context):
__M_caller = context.caller_stack._push_frame()
try:
generate_rss = context.get('generate_rss', UNDEFINED)
_link = context.get('_link', UNDEFINED)
len = context.get('len', UNDEFINED)
translations = context.get('translations', UNDEFINED)
rss_link = context.get('rss_link', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if rss_link:
__M_writer(' ')
__M_writer(str(rss_link))
__M_writer('\n')
elif generate_rss:
if len(translations) > 1:
for language in translations:
__M_writer(' <link rel="alternate" type="application/rss+xml" title="RSS (')
__M_writer(str(language))
__M_writer(')" href="')
__M_writer(str(_link('rss', None, language)))
__M_writer('">\n')
else:
__M_writer(' <link rel="alternate" type="application/rss+xml" title="RSS" href="')
__M_writer(str(_link('rss', None)))
__M_writer('">\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_late_load_js(context):
__M_caller = context.caller_stack._push_frame()
try:
use_bundles = context.get('use_bundles', UNDEFINED)
social_buttons_code = context.get('social_buttons_code', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
lang = context.get('lang', UNDEFINED)
colorbox_locales = context.get('colorbox_locales', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_bundles:
if use_cdn:
__M_writer(' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>\n <script src="/assets/js/all.js"></script>\n')
else:
__M_writer(' <script src="/assets/js/all-nocdn.js"></script>\n')
else:
if use_cdn:
__M_writer(' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>\n')
else:
__M_writer(' <script src="/assets/js/jquery.min.js"></script>\n <script src="/assets/js/bootstrap.min.js"></script>\n <script src="/assets/js/moment-with-locales.min.js"></script>\n <script src="/assets/js/fancydates.js"></script>\n')
__M_writer(' <script src="/assets/js/jquery.colorbox-min.js"></script>\n')
if colorbox_locales[lang]:
__M_writer(' <script src="/assets/js/colorbox-i18n/jquery.colorbox-')
__M_writer(str(colorbox_locales[lang]))
__M_writer('.js"></script>\n')
__M_writer(' ')
__M_writer(str(social_buttons_code))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_navigation_links(context):
__M_caller = context.caller_stack._push_frame()
try:
tuple = context.get('tuple', UNDEFINED)
permalink = context.get('permalink', UNDEFINED)
lang = context.get('lang', UNDEFINED)
tuple = context.get('tuple', UNDEFINED)
navigation_links = context.get('navigation_links', UNDEFINED)
isinstance = context.get('isinstance', UNDEFINED)
rel_link = context.get('rel_link', UNDEFINED)
permalink = context.get('permalink', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
for url, text in navigation_links[lang]:
@ -233,76 +301,8 @@ def render_html_navigation_links(context):
context.caller_stack._pop_frame()
def render_html_feedlinks(context):
__M_caller = context.caller_stack._push_frame()
try:
_link = context.get('_link', UNDEFINED)
translations = context.get('translations', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
len = context.get('len', UNDEFINED)
rss_link = context.get('rss_link', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if rss_link:
__M_writer(' ')
__M_writer(str(rss_link))
__M_writer('\n')
elif generate_rss:
if len(translations) > 1:
for language in translations:
__M_writer(' <link rel="alternate" type="application/rss+xml" title="RSS (')
__M_writer(str(language))
__M_writer(')" href="')
__M_writer(str(_link('rss', None, language)))
__M_writer('">\n')
else:
__M_writer(' <link rel="alternate" type="application/rss+xml" title="RSS" href="')
__M_writer(str(_link('rss', None)))
__M_writer('">\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_stylesheets(context):
__M_caller = context.caller_stack._push_frame()
try:
annotations = context.get('annotations', UNDEFINED)
post = context.get('post', UNDEFINED)
has_custom_css = context.get('has_custom_css', UNDEFINED)
notes = context.get('notes', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
use_bundles = context.get('use_bundles', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_bundles:
if use_cdn:
__M_writer(' <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">\n <link href="/assets/css/all.css" rel="stylesheet" type="text/css">\n')
else:
__M_writer(' <link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">\n')
else:
if use_cdn:
__M_writer(' <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">\n')
else:
__M_writer(' <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">\n')
__M_writer(' <link href="/assets/css/rst.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/code.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/colorbox.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/theme.css" rel="stylesheet" type="text/css">\n')
if has_custom_css:
__M_writer(' <link href="/assets/css/custom.css" rel="stylesheet" type="text/css">\n')
if annotations and post and not post.meta('noannotations'):
__M_writer(' ')
__M_writer(str(notes.css()))
__M_writer('\n')
elif not annotations and post and post.meta('annotations'):
__M_writer(' ')
__M_writer(str(notes.css()))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
"""
__M_BEGIN_METADATA
{"uri": "base_helper.tmpl", "line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 161, "40": 161, "41": 162, "42": 163, "43": 164, "44": 164, "45": 164, "46": 164, "47": 164, "48": 164, "49": 164, "55": 67, "64": 67, "65": 68, "66": 69, "67": 70, "68": 73, "69": 74, "70": 76, "71": 77, "72": 78, "73": 80, "74": 81, "75": 86, "76": 88, "77": 89, "78": 89, "79": 89, "80": 91, "81": 91, "82": 91, "88": 3, "115": 3, "116": 7, "117": 8, "118": 9, "119": 10, "120": 12, "121": 13, "122": 15, "123": 16, "124": 18, "125": 21, "126": 22, "127": 25, "128": 25, "129": 25, "130": 28, "131": 29, "132": 29, "133": 29, "134": 31, "135": 32, "136": 32, "137": 32, "138": 32, "139": 34, "140": 34, "141": 35, "142": 35, "143": 36, "144": 37, "145": 37, "146": 37, "147": 39, "148": 40, "149": 41, "150": 42, "151": 42, "152": 42, "153": 42, "154": 42, "155": 42, "156": 42, "157": 45, "158": 46, "159": 47, "160": 47, "161": 47, "162": 49, "163": 50, "164": 51, "165": 51, "166": 51, "167": 53, "168": 54, "169": 54, "170": 54, "171": 56, "172": 57, "173": 57, "174": 58, "175": 59, "176": 60, "177": 61, "178": 61, "179": 61, "180": 63, "181": 64, "182": 64, "188": 124, "198": 124, "199": 125, "200": 126, "201": 127, "202": 127, "203": 127, "204": 129, "205": 130, "206": 131, "207": 131, "208": 131, "209": 131, "210": 131, "211": 132, "212": 133, "213": 133, "214": 133, "215": 133, "216": 133, "217": 136, "218": 137, "219": 138, "220": 139, "221": 139, "222": 139, "223": 139, "224": 139, "225": 140, "226": 141, "227": 141, "228": 141, "229": 141, "230": 141, "236": 147, "245": 147, "246": 148, "247": 149, "248": 149, "249": 149, "250": 150, "251": 151, "252": 152, "253": 153, "254": 153, "255": 153, "256": 153, "257": 153, "258": 155, "259": 156, "260": 156, "261": 156, "267": 95, "277": 95, "278": 96, "279": 97, "280": 98, "281": 100, "282": 101, "283": 103, "284": 104, "285": 105, "286": 106, "287": 107, "288": 109, "289": 113, "290": 114, "291": 117, "292": 118, "293": 118, "294": 118, "295": 119, "296": 120, "297": 120, "298": 120, "304": 298}, "source_encoding": "utf-8", "filename": "themes/bootstrap3/templates/base_helper.tmpl"}
{"uri": "base_helper.tmpl", "line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 3, "59": 3, "60": 7, "61": 8, "62": 9, "63": 10, "64": 12, "65": 13, "66": 15, "67": 16, "68": 18, "69": 21, "70": 22, "71": 25, "72": 25, "73": 25, "74": 28, "75": 29, "76": 29, "77": 29, "78": 31, "79": 32, "80": 32, "81": 32, "82": 32, "83": 34, "84": 34, "85": 35, "86": 35, "87": 36, "88": 37, "89": 37, "90": 37, "91": 39, "92": 40, "93": 41, "94": 42, "95": 42, "96": 42, "97": 42, "98": 42, "99": 42, "100": 42, "101": 45, "102": 46, "103": 47, "104": 47, "105": 47, "106": 49, "107": 50, "108": 51, "109": 51, "110": 51, "111": 53, "112": 54, "113": 54, "114": 54, "115": 56, "116": 57, "117": 57, "118": 58, "119": 59, "120": 60, "121": 61, "122": 61, "123": 61, "124": 63, "125": 64, "126": 64, "132": 161, "140": 161, "141": 162, "142": 163, "143": 164, "144": 164, "145": 164, "146": 164, "147": 164, "148": 164, "149": 164, "155": 95, "165": 95, "166": 96, "167": 97, "168": 98, "169": 100, "170": 101, "171": 103, "172": 104, "173": 105, "174": 106, "175": 107, "176": 109, "177": 113, "178": 114, "179": 117, "180": 118, "181": 118, "182": 118, "183": 119, "184": 120, "185": 120, "186": 120, "192": 147, "201": 147, "202": 148, "203": 149, "204": 149, "205": 149, "206": 150, "207": 151, "208": 152, "209": 153, "210": 153, "211": 153, "212": 153, "213": 153, "214": 155, "215": 156, "216": 156, "217": 156, "223": 67, "232": 67, "233": 68, "234": 69, "235": 70, "236": 73, "237": 74, "238": 76, "239": 77, "240": 78, "241": 80, "242": 81, "243": 86, "244": 88, "245": 89, "246": 89, "247": 89, "248": 91, "249": 91, "250": 91, "256": 124, "266": 124, "267": 125, "268": 126, "269": 127, "270": 127, "271": 127, "272": 129, "273": 130, "274": 131, "275": 131, "276": 131, "277": 131, "278": 131, "279": 132, "280": 133, "281": 133, "282": 133, "283": 133, "284": 133, "285": 136, "286": 137, "287": 138, "288": 139, "289": 139, "290": 139, "291": 139, "292": 139, "293": 140, "294": 141, "295": 141, "296": 141, "297": 141, "298": 141, "304": 298}, "filename": "themes/bootstrap3/templates/base_helper.tmpl", "source_encoding": "utf-8"}
__M_END_METADATA
"""