From 9090c28f049206a9e065dfe7fa6e3755f41c5336 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Thu, 14 May 2015 13:41:13 +0200 Subject: [PATCH] Clean jade markup. --- src/_h5ai/backend/php/pages/info.php.jade | 10 +++---- src/_h5ai/backend/php/pages/page.tpl.jade | 35 ++++++++++------------- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/_h5ai/backend/php/pages/info.php.jade b/src/_h5ai/backend/php/pages/info.php.jade index 0aa5723b..9fc61fee 100644 --- a/src/_h5ai/backend/php/pages/info.php.jade +++ b/src/_h5ai/backend/php/pages/info.php.jade @@ -9,12 +9,12 @@ block body div#content h1#header - a( href="#{pkg.homepage}" ) #{pkg.name} + a(href='#{pkg.homepage}') #{pkg.name} div#support | Show your support with a donation! div.paypal - form( action="https://www.paypal.com/cgi-bin/webscr", method="post", target="_blank" ) - input( type="hidden", name="cmd", value="_s-xclick" ) - input( type="hidden", name="hosted_button_id", value="8WSPKWT7YBTSQ" ) - input( type="image", src!="#{public_href}images/ui/paypal.svg", name="submit", alt="PayPal" ) + form(action='https://www.paypal.com/cgi-bin/webscr', method='post', target='_blank') + input(type='hidden', name='cmd', value='_s-xclick') + input(type='hidden', name='hosted_button_id', value='8WSPKWT7YBTSQ') + input(type='image', src!='#{public_href}images/ui/paypal.svg', name='submit', alt='PayPal') diff --git a/src/_h5ai/backend/php/pages/page.tpl.jade b/src/_h5ai/backend/php/pages/page.tpl.jade index d11b1692..f0745448 100644 --- a/src/_h5ai/backend/php/pages/page.tpl.jade +++ b/src/_h5ai/backend/php/pages/page.tpl.jade @@ -4,32 +4,27 @@ block init doctype html - - + + head - meta( charset="utf-8" ) - meta( http-equiv="x-ua-compatible", content="ie=edge" ) + meta(charset='utf-8') + meta(http-equiv='x-ua-compatible', content='ie=edge') title #{title} - meta( name="description", content="#{title}" ) - meta( name="viewport", content="width=device-width, initial-scale=1" ) - link( rel="shortcut icon", href!="#{public_href}images/favicon/favicon-16-32.ico" ) - link( rel="apple-touch-icon-precomposed", type="image/png", href!="#{public_href}images/favicon/favicon-152.png" ) - link( rel="stylesheet", href="//fonts.googleapis.com/css?family=Roboto:300,400,700" ) - link( rel="stylesheet", href!="#{public_href}css/styles.css" ) - script( src!="#{public_href}js/scripts.js", data-module="#{module}" ) + meta(name='description', content='#{title}') + meta(name='viewport', content='width=device-width, initial-scale=1') + link(rel='shortcut icon', href!='#{public_href}images/favicon/favicon-16-32.ico') + link(rel='apple-touch-icon-precomposed', type='image/png', href!='#{public_href}images/favicon/favicon-152.png') + link(rel='stylesheet', href='//fonts.googleapis.com/css?family=Roboto:300,400,700') + link(rel='stylesheet', href!='#{public_href}css/styles.css') + script(src!='#{public_href}js/scripts.js', data-module='#{module}') -body#root( class="#{module}" ) +body#root(class='#{module}') div#fallback-hints - span.noJsMsg - | Works best with JavaScript enabled! - span.noBrowserMsg - | Works best in - a( href="http://browsehappy.com" ) modern browsers - | ! - span.backlink - a( href="#{pkg.homepage}", title="#{pkg.name} v#{pkg.version} - #{pkg.description}" ) powered by #{pkg.name} + span.noJsMsg Works best with JavaScript enabled! + span.noBrowserMsg Works best in #[a(href='http://browsehappy.com') modern browsers]! + span.backlink #[a(href='#{pkg.homepage}', title='#{pkg.name} v#{pkg.version} - #{pkg.description}') powered by #{pkg.name}] block body