Automatic commit via /home/don/bin/deployweb Thu Jun 11 11:00:11 UTC 2015
This commit is contained in:
parent
282b499818
commit
67b22b2b22
48 changed files with 550 additions and 550 deletions
262
cache/.mako.tmp/base_helper.tmpl.py
vendored
262
cache/.mako.tmp/base_helper.tmpl.py
vendored
|
|
@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED
|
|||
__M_dict_builtin = dict
|
||||
__M_locals_builtin = locals
|
||||
_magic_number = 10
|
||||
_modified_time = 1434016807.6870363
|
||||
_modified_time = 1434020407.3391924
|
||||
_enable_loop = True
|
||||
_template_filename = 'themes/bootstrap3/templates/base_helper.tmpl'
|
||||
_template_uri = 'base_helper.tmpl'
|
||||
_source_encoding = 'utf-8'
|
||||
_exports = ['html_navigation_links', 'html_stylesheets', 'html_translations', 'html_headstart', 'html_feedlinks', 'late_load_js']
|
||||
_exports = ['html_headstart', 'html_feedlinks', 'html_stylesheets', 'late_load_js', 'html_navigation_links', 'html_translations']
|
||||
|
||||
|
||||
def render_body(context,**pageargs):
|
||||
|
|
@ -29,140 +29,32 @@ def render_body(context,**pageargs):
|
|||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_navigation_links(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
navigation_links = context.get('navigation_links', UNDEFINED)
|
||||
tuple = context.get('tuple', UNDEFINED)
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
rel_link = context.get('rel_link', UNDEFINED)
|
||||
isinstance = context.get('isinstance', UNDEFINED)
|
||||
__M_writer = context.writer()
|
||||
__M_writer('\n')
|
||||
for url, text in navigation_links[lang]:
|
||||
if isinstance(url, tuple):
|
||||
__M_writer(' <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('<b class="caret"></b></a>\n <ul class="dropdown-menu">\n')
|
||||
for suburl, text in url:
|
||||
if rel_link(permalink, suburl) == "#":
|
||||
__M_writer(' <li class="active"><a href="')
|
||||
__M_writer(str(permalink))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
else:
|
||||
__M_writer(' <li><a href="')
|
||||
__M_writer(str(suburl))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
__M_writer(' </ul>\n')
|
||||
else:
|
||||
if rel_link(permalink, url) == "#":
|
||||
__M_writer(' <li class="active"><a href="')
|
||||
__M_writer(str(permalink))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
else:
|
||||
__M_writer(' <li><a href="')
|
||||
__M_writer(str(url))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
return ''
|
||||
finally:
|
||||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_stylesheets(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
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)
|
||||
annotations = context.get('annotations', 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_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_html_headstart(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
blog_title = context.get('blog_title', UNDEFINED)
|
||||
nextlink = context.get('nextlink', UNDEFINED)
|
||||
use_open_graph = context.get('use_open_graph', UNDEFINED)
|
||||
abs_link = context.get('abs_link', UNDEFINED)
|
||||
twitter_card = context.get('twitter_card', UNDEFINED)
|
||||
prevlink = context.get('prevlink', UNDEFINED)
|
||||
mathjax_config = context.get('mathjax_config', UNDEFINED)
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
is_rtl = context.get('is_rtl', UNDEFINED)
|
||||
def html_feedlinks():
|
||||
return render_html_feedlinks(context)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
mathjax_config = context.get('mathjax_config', UNDEFINED)
|
||||
title = context.get('title', UNDEFINED)
|
||||
def html_stylesheets():
|
||||
return render_html_stylesheets(context)
|
||||
nextlink = context.get('nextlink', UNDEFINED)
|
||||
twitter_card = context.get('twitter_card', UNDEFINED)
|
||||
description = context.get('description', UNDEFINED)
|
||||
comment_system = context.get('comment_system', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
url_replacer = context.get('url_replacer', UNDEFINED)
|
||||
is_rtl = context.get('is_rtl', UNDEFINED)
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
extra_head_data = context.get('extra_head_data', UNDEFINED)
|
||||
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
||||
favicons = context.get('favicons', UNDEFINED)
|
||||
striphtml = context.get('striphtml', UNDEFINED)
|
||||
use_open_graph = context.get('use_open_graph', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
blog_title = context.get('blog_title', UNDEFINED)
|
||||
favicons = context.get('favicons', UNDEFINED)
|
||||
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
||||
url_replacer = context.get('url_replacer', UNDEFINED)
|
||||
prevlink = context.get('prevlink', UNDEFINED)
|
||||
comment_system = context.get('comment_system', 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'):
|
||||
|
|
@ -240,11 +132,11 @@ def render_html_headstart(context):
|
|||
def render_html_feedlinks(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
generate_rss = context.get('generate_rss', UNDEFINED)
|
||||
rss_link = context.get('rss_link', UNDEFINED)
|
||||
len = context.get('len', UNDEFINED)
|
||||
generate_rss = context.get('generate_rss', UNDEFINED)
|
||||
translations = context.get('translations', UNDEFINED)
|
||||
_link = context.get('_link', UNDEFINED)
|
||||
len = context.get('len', UNDEFINED)
|
||||
__M_writer = context.writer()
|
||||
__M_writer('\n')
|
||||
if rss_link:
|
||||
|
|
@ -268,14 +160,51 @@ def render_html_feedlinks(context):
|
|||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_stylesheets(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
notes = context.get('notes', UNDEFINED)
|
||||
annotations = context.get('annotations', UNDEFINED)
|
||||
has_custom_css = context.get('has_custom_css', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
use_bundles = context.get('use_bundles', 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_late_load_js(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
social_buttons_code = context.get('social_buttons_code', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
use_bundles = context.get('use_bundles', UNDEFINED)
|
||||
colorbox_locales = context.get('colorbox_locales', UNDEFINED)
|
||||
social_buttons_code = context.get('social_buttons_code', UNDEFINED)
|
||||
use_bundles = context.get('use_bundles', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
__M_writer = context.writer()
|
||||
__M_writer('\n')
|
||||
if use_bundles:
|
||||
|
|
@ -301,8 +230,79 @@ def render_late_load_js(context):
|
|||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_navigation_links(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
isinstance = context.get('isinstance', UNDEFINED)
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
navigation_links = context.get('navigation_links', UNDEFINED)
|
||||
tuple = context.get('tuple', UNDEFINED)
|
||||
rel_link = context.get('rel_link', UNDEFINED)
|
||||
__M_writer = context.writer()
|
||||
__M_writer('\n')
|
||||
for url, text in navigation_links[lang]:
|
||||
if isinstance(url, tuple):
|
||||
__M_writer(' <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('<b class="caret"></b></a>\n <ul class="dropdown-menu">\n')
|
||||
for suburl, text in url:
|
||||
if rel_link(permalink, suburl) == "#":
|
||||
__M_writer(' <li class="active"><a href="')
|
||||
__M_writer(str(permalink))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
else:
|
||||
__M_writer(' <li><a href="')
|
||||
__M_writer(str(suburl))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
__M_writer(' </ul>\n')
|
||||
else:
|
||||
if rel_link(permalink, url) == "#":
|
||||
__M_writer(' <li class="active"><a href="')
|
||||
__M_writer(str(permalink))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
else:
|
||||
__M_writer(' <li><a href="')
|
||||
__M_writer(str(url))
|
||||
__M_writer('">')
|
||||
__M_writer(str(text))
|
||||
__M_writer('</a>\n')
|
||||
return ''
|
||||
finally:
|
||||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_translations(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
messages = context.get('messages', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
translations = context.get('translations', UNDEFINED)
|
||||
_link = context.get('_link', 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()
|
||||
|
||||
|
||||
"""
|
||||
__M_BEGIN_METADATA
|
||||
{"filename": "themes/bootstrap3/templates/base_helper.tmpl", "source_encoding": "utf-8", "line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 124, "42": 124, "43": 125, "44": 126, "45": 127, "46": 127, "47": 127, "48": 129, "49": 130, "50": 131, "51": 131, "52": 131, "53": 131, "54": 131, "55": 132, "56": 133, "57": 133, "58": 133, "59": 133, "60": 133, "61": 136, "62": 137, "63": 138, "64": 139, "65": 139, "66": 139, "67": 139, "68": 139, "69": 140, "70": 141, "71": 141, "72": 141, "73": 141, "74": 141, "80": 95, "90": 95, "91": 96, "92": 97, "93": 98, "94": 100, "95": 101, "96": 103, "97": 104, "98": 105, "99": 106, "100": 107, "101": 109, "102": 113, "103": 114, "104": 117, "105": 118, "106": 118, "107": 118, "108": 119, "109": 120, "110": 120, "111": 120, "117": 161, "125": 161, "126": 162, "127": 163, "128": 164, "129": 164, "130": 164, "131": 164, "132": 164, "133": 164, "134": 164, "140": 3, "167": 3, "168": 7, "169": 8, "170": 9, "171": 10, "172": 12, "173": 13, "174": 15, "175": 16, "176": 18, "177": 21, "178": 22, "179": 25, "180": 25, "181": 25, "182": 28, "183": 29, "184": 29, "185": 29, "186": 31, "187": 32, "188": 32, "189": 32, "190": 32, "191": 34, "192": 34, "193": 35, "194": 35, "195": 36, "196": 37, "197": 37, "198": 37, "199": 39, "200": 40, "201": 41, "202": 42, "203": 42, "204": 42, "205": 42, "206": 42, "207": 42, "208": 42, "209": 45, "210": 46, "211": 47, "212": 47, "213": 47, "214": 49, "215": 50, "216": 51, "217": 51, "218": 51, "219": 53, "220": 54, "221": 54, "222": 54, "223": 56, "224": 57, "225": 57, "226": 58, "227": 59, "228": 60, "229": 61, "230": 61, "231": 61, "232": 63, "233": 64, "234": 64, "240": 147, "249": 147, "250": 148, "251": 149, "252": 149, "253": 149, "254": 150, "255": 151, "256": 152, "257": 153, "258": 153, "259": 153, "260": 153, "261": 153, "262": 155, "263": 156, "264": 156, "265": 156, "271": 67, "280": 67, "281": 68, "282": 69, "283": 70, "284": 73, "285": 74, "286": 76, "287": 77, "288": 78, "289": 80, "290": 81, "291": 86, "292": 88, "293": 89, "294": 89, "295": 89, "296": 91, "297": 91, "298": 91, "304": 298}, "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": 147, "141": 147, "142": 148, "143": 149, "144": 149, "145": 149, "146": 150, "147": 151, "148": 152, "149": 153, "150": 153, "151": 153, "152": 153, "153": 153, "154": 155, "155": 156, "156": 156, "157": 156, "163": 95, "173": 95, "174": 96, "175": 97, "176": 98, "177": 100, "178": 101, "179": 103, "180": 104, "181": 105, "182": 106, "183": 107, "184": 109, "185": 113, "186": 114, "187": 117, "188": 118, "189": 118, "190": 118, "191": 119, "192": 120, "193": 120, "194": 120, "200": 67, "209": 67, "210": 68, "211": 69, "212": 70, "213": 73, "214": 74, "215": 76, "216": 77, "217": 78, "218": 80, "219": 81, "220": 86, "221": 88, "222": 89, "223": 89, "224": 89, "225": 91, "226": 91, "227": 91, "233": 124, "243": 124, "244": 125, "245": 126, "246": 127, "247": 127, "248": 127, "249": 129, "250": 130, "251": 131, "252": 131, "253": 131, "254": 131, "255": 131, "256": 132, "257": 133, "258": 133, "259": 133, "260": 133, "261": 133, "262": 136, "263": 137, "264": 138, "265": 139, "266": 139, "267": 139, "268": 139, "269": 139, "270": 140, "271": 141, "272": 141, "273": 141, "274": 141, "275": 141, "281": 161, "289": 161, "290": 162, "291": 163, "292": 164, "293": 164, "294": 164, "295": 164, "296": 164, "297": 164, "298": 164, "304": 298}, "source_encoding": "utf-8", "filename": "themes/bootstrap3/templates/base_helper.tmpl", "uri": "base_helper.tmpl"}
|
||||
__M_END_METADATA
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue