def tpl_base(*content, title=''): return render(( raw('<!DOCTYPE html>'), L.html / ( L.head / ( L.meta(charset='utf-8'), L.meta(name="viewport",content="width=device-width, initial-scale=1"), L.title / (((title + ' - ') if title else '') + 'Petal'), L.link(rel='stylesheet', href="/static/css/bootstrap.css"), L.link(rel='stylesheet', href="/static/css/base.css"), ), L.body / content, ), ))
def basic_frame(*content, title=''): return render(( raw('<!DOCTYPE html>'), L.html / ( L.head / ( L.meta(charset='utf-8'), L.title / (((title + ' - ') if title else '') + 'Linkage' + (' Enterprise' if settings.LINKAGE_ENTERPRISE else '')), L.link(rel='icon', type='image/png', href='/static/img/favicon.png'), L.link(rel='stylesheet', href="/static/css/bootstrap.css"), L.link(rel='stylesheet', href="/static/css/balloon.css"), L.link(rel='stylesheet', href="/static/css/rc-slider.css"), L.link(rel='stylesheet', href="/static/css/base.css"), L.script / raw("var LINKAGE_ENTERPRISE = %s;" % ('true' if settings.LINKAGE_ENTERPRISE else 'false')), ), L.body / content, ), ))
def _base(content='', title_prefix=''): return str(L.html / ( L.head / ( L.meta(charset="utf-8"), L.meta(content="width=device-width, initial-scale=1", name="viewport"), L.title / (title_prefix + "Chrome Extensions Archive"), L.link(href="/style.css", media="screen", rel="stylesheet", type="text/css"), ), L.body() / ( L.a(href='/') / (L.h1 / "Chrome Extensions Archive"), L.div(style='text-align: right') / ( L.a(href="https://github.com/mdamien/chrome-extensions-archive") / "github.com/mdamien/chrome-extensions-archive" ), L.hr, content, ), ))
def _base(content, title_prefix=''): return str(L.html / ( L.head / ( L.meta(charset="utf-8"), L.meta(content="width=device-width, initial-scale=1", name="viewport"), L.title / (title_prefix + "Chrome Extensions Archive"), L.link(href="/style.css", media="screen", rel="stylesheet", type="text/css"), ), L.body() / ( L.a(href='/') / (L.h1 / "Chrome Extensions Archive"), L.div(style='text-align: right') / ( L.a(href="https://github.com/mdamien/chrome-extensions-archive") / "github.com/mdamien/chrome-extensions-archive" ), L.hr, content, ), ))