Automatic commit via /home/don/bin/deployweb Fri Jun 12 01:00:10 UTC 2015
This commit is contained in:
parent
cf11a227e9
commit
c8cf6076b4
50 changed files with 528 additions and 528 deletions
224
cache/.mako.tmp/base_helper.tmpl.py
vendored
224
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 = 1434067208.6075213
|
||||
_modified_time = 1434070807.6051025
|
||||
_enable_loop = True
|
||||
_template_filename = 'themes/bootstrap3/templates/base_helper.tmpl'
|
||||
_template_uri = 'base_helper.tmpl'
|
||||
_source_encoding = 'utf-8'
|
||||
_exports = ['html_feedlinks', 'html_navigation_links', 'late_load_js', 'html_translations', 'html_headstart', 'html_stylesheets']
|
||||
_exports = ['html_feedlinks', 'late_load_js', 'html_stylesheets', 'html_headstart', 'html_navigation_links', 'html_translations']
|
||||
|
||||
|
||||
def render_body(context,**pageargs):
|
||||
|
|
@ -32,11 +32,11 @@ def render_body(context,**pageargs):
|
|||
def render_html_feedlinks(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
_link = context.get('_link', UNDEFINED)
|
||||
len = context.get('len', UNDEFINED)
|
||||
rss_link = context.get('rss_link', UNDEFINED)
|
||||
generate_rss = context.get('generate_rss', UNDEFINED)
|
||||
translations = context.get('translations', UNDEFINED)
|
||||
_link = context.get('_link', UNDEFINED)
|
||||
generate_rss = context.get('generate_rss', UNDEFINED)
|
||||
len = context.get('len', UNDEFINED)
|
||||
__M_writer = context.writer()
|
||||
__M_writer('\n')
|
||||
if rss_link:
|
||||
|
|
@ -60,62 +60,14 @@ def render_html_feedlinks(context):
|
|||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_navigation_links(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
isinstance = context.get('isinstance', UNDEFINED)
|
||||
navigation_links = context.get('navigation_links', UNDEFINED)
|
||||
rel_link = context.get('rel_link', UNDEFINED)
|
||||
tuple = context.get('tuple', UNDEFINED)
|
||||
lang = context.get('lang', 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_late_load_js(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
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)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
__M_writer = context.writer()
|
||||
__M_writer('\n')
|
||||
if use_bundles:
|
||||
|
|
@ -141,24 +93,38 @@ def render_late_load_js(context):
|
|||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_translations(context):
|
||||
def render_html_stylesheets(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
_link = context.get('_link', UNDEFINED)
|
||||
translations = context.get('translations', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
messages = context.get('messages', UNDEFINED)
|
||||
post = context.get('post', UNDEFINED)
|
||||
notes = context.get('notes', UNDEFINED)
|
||||
has_custom_css = context.get('has_custom_css', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
annotations = context.get('annotations', UNDEFINED)
|
||||
use_bundles = context.get('use_bundles', 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')
|
||||
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()
|
||||
|
|
@ -167,29 +133,29 @@ def render_html_translations(context):
|
|||
def render_html_headstart(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
title = context.get('title', UNDEFINED)
|
||||
comment_system = context.get('comment_system', UNDEFINED)
|
||||
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
||||
description = context.get('description', UNDEFINED)
|
||||
extra_head_data = context.get('extra_head_data', UNDEFINED)
|
||||
is_rtl = context.get('is_rtl', UNDEFINED)
|
||||
prevlink = context.get('prevlink', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
twitter_card = context.get('twitter_card', UNDEFINED)
|
||||
nextlink = context.get('nextlink', UNDEFINED)
|
||||
abs_link = context.get('abs_link', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
mathjax_config = context.get('mathjax_config', UNDEFINED)
|
||||
def html_stylesheets():
|
||||
return render_html_stylesheets(context)
|
||||
striphtml = context.get('striphtml', UNDEFINED)
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
prevlink = context.get('prevlink', UNDEFINED)
|
||||
favicons = context.get('favicons', UNDEFINED)
|
||||
use_open_graph = context.get('use_open_graph', UNDEFINED)
|
||||
url_replacer = context.get('url_replacer', UNDEFINED)
|
||||
blog_title = context.get('blog_title', UNDEFINED)
|
||||
description = context.get('description', UNDEFINED)
|
||||
extra_head_data = context.get('extra_head_data', UNDEFINED)
|
||||
twitter_card = context.get('twitter_card', UNDEFINED)
|
||||
abs_link = context.get('abs_link', UNDEFINED)
|
||||
comment_system = context.get('comment_system', UNDEFINED)
|
||||
use_open_graph = context.get('use_open_graph', UNDEFINED)
|
||||
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
||||
favicons = context.get('favicons', UNDEFINED)
|
||||
def html_feedlinks():
|
||||
return render_html_feedlinks(context)
|
||||
url_replacer = context.get('url_replacer', UNDEFINED)
|
||||
mathjax_config = context.get('mathjax_config', UNDEFINED)
|
||||
nextlink = context.get('nextlink', UNDEFINED)
|
||||
permalink = context.get('permalink', UNDEFINED)
|
||||
striphtml = context.get('striphtml', 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'):
|
||||
|
|
@ -264,38 +230,72 @@ def render_html_headstart(context):
|
|||
context.caller_stack._pop_frame()
|
||||
|
||||
|
||||
def render_html_stylesheets(context):
|
||||
def render_html_navigation_links(context):
|
||||
__M_caller = context.caller_stack._push_frame()
|
||||
try:
|
||||
has_custom_css = context.get('has_custom_css', UNDEFINED)
|
||||
post = context.get('post', UNDEFINED)
|
||||
notes = context.get('notes', UNDEFINED)
|
||||
use_bundles = context.get('use_bundles', UNDEFINED)
|
||||
use_cdn = context.get('use_cdn', UNDEFINED)
|
||||
annotations = context.get('annotations', UNDEFINED)
|
||||
isinstance = context.get('isinstance', UNDEFINED)
|
||||
lang = context.get('lang', UNDEFINED)
|
||||
rel_link = context.get('rel_link', UNDEFINED)
|
||||
navigation_links = context.get('navigation_links', UNDEFINED)
|
||||
tuple = context.get('tuple', UNDEFINED)
|
||||
permalink = context.get('permalink', 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')
|
||||
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:
|
||||
__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')
|
||||
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:
|
||||
translations = context.get('translations', UNDEFINED)
|
||||
messages = context.get('messages', UNDEFINED)
|
||||
lang = context.get('lang', 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()
|
||||
|
|
@ -303,6 +303,6 @@ def render_html_stylesheets(context):
|
|||
|
||||
"""
|
||||
__M_BEGIN_METADATA
|
||||
{"filename": "themes/bootstrap3/templates/base_helper.tmpl", "uri": "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": 147, "41": 147, "42": 148, "43": 149, "44": 149, "45": 149, "46": 150, "47": 151, "48": 152, "49": 153, "50": 153, "51": 153, "52": 153, "53": 153, "54": 155, "55": 156, "56": 156, "57": 156, "63": 124, "73": 124, "74": 125, "75": 126, "76": 127, "77": 127, "78": 127, "79": 129, "80": 130, "81": 131, "82": 131, "83": 131, "84": 131, "85": 131, "86": 132, "87": 133, "88": 133, "89": 133, "90": 133, "91": 133, "92": 136, "93": 137, "94": 138, "95": 139, "96": 139, "97": 139, "98": 139, "99": 139, "100": 140, "101": 141, "102": 141, "103": 141, "104": 141, "105": 141, "111": 67, "120": 67, "121": 68, "122": 69, "123": 70, "124": 73, "125": 74, "126": 76, "127": 77, "128": 78, "129": 80, "130": 81, "131": 86, "132": 88, "133": 89, "134": 89, "135": 89, "136": 91, "137": 91, "138": 91, "144": 161, "152": 161, "153": 162, "154": 163, "155": 164, "156": 164, "157": 164, "158": 164, "159": 164, "160": 164, "161": 164, "167": 3, "194": 3, "195": 7, "196": 8, "197": 9, "198": 10, "199": 12, "200": 13, "201": 15, "202": 16, "203": 18, "204": 21, "205": 22, "206": 25, "207": 25, "208": 25, "209": 28, "210": 29, "211": 29, "212": 29, "213": 31, "214": 32, "215": 32, "216": 32, "217": 32, "218": 34, "219": 34, "220": 35, "221": 35, "222": 36, "223": 37, "224": 37, "225": 37, "226": 39, "227": 40, "228": 41, "229": 42, "230": 42, "231": 42, "232": 42, "233": 42, "234": 42, "235": 42, "236": 45, "237": 46, "238": 47, "239": 47, "240": 47, "241": 49, "242": 50, "243": 51, "244": 51, "245": 51, "246": 53, "247": 54, "248": 54, "249": 54, "250": 56, "251": 57, "252": 57, "253": 58, "254": 59, "255": 60, "256": 61, "257": 61, "258": 61, "259": 63, "260": 64, "261": 64, "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}}
|
||||
{"line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 147, "41": 147, "42": 148, "43": 149, "44": 149, "45": 149, "46": 150, "47": 151, "48": 152, "49": 153, "50": 153, "51": 153, "52": 153, "53": 153, "54": 155, "55": 156, "56": 156, "57": 156, "63": 67, "72": 67, "73": 68, "74": 69, "75": 70, "76": 73, "77": 74, "78": 76, "79": 77, "80": 78, "81": 80, "82": 81, "83": 86, "84": 88, "85": 89, "86": 89, "87": 89, "88": 91, "89": 91, "90": 91, "96": 95, "106": 95, "107": 96, "108": 97, "109": 98, "110": 100, "111": 101, "112": 103, "113": 104, "114": 105, "115": 106, "116": 107, "117": 109, "118": 113, "119": 114, "120": 117, "121": 118, "122": 118, "123": 118, "124": 119, "125": 120, "126": 120, "127": 120, "133": 3, "160": 3, "161": 7, "162": 8, "163": 9, "164": 10, "165": 12, "166": 13, "167": 15, "168": 16, "169": 18, "170": 21, "171": 22, "172": 25, "173": 25, "174": 25, "175": 28, "176": 29, "177": 29, "178": 29, "179": 31, "180": 32, "181": 32, "182": 32, "183": 32, "184": 34, "185": 34, "186": 35, "187": 35, "188": 36, "189": 37, "190": 37, "191": 37, "192": 39, "193": 40, "194": 41, "195": 42, "196": 42, "197": 42, "198": 42, "199": 42, "200": 42, "201": 42, "202": 45, "203": 46, "204": 47, "205": 47, "206": 47, "207": 49, "208": 50, "209": 51, "210": 51, "211": 51, "212": 53, "213": 54, "214": 54, "215": 54, "216": 56, "217": 57, "218": 57, "219": 58, "220": 59, "221": 60, "222": 61, "223": 61, "224": 61, "225": 63, "226": 64, "227": 64, "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", "uri": "base_helper.tmpl", "filename": "themes/bootstrap3/templates/base_helper.tmpl"}
|
||||
__M_END_METADATA
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue