From 95f087cfd6f902c5a305b571326c433590bb1654 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Thu, 14 May 2015 14:22:40 +0200 Subject: [PATCH] Refactor info page. --- src/_h5ai/backend/php/pages/info.php.jade | 8 ----- src/_h5ai/public/css/inc/main/info.less | 13 +++---- src/_h5ai/public/js/inc/main/info.js | 42 +++++++++++++++++------ 3 files changed, 37 insertions(+), 26 deletions(-) diff --git a/src/_h5ai/backend/php/pages/info.php.jade b/src/_h5ai/backend/php/pages/info.php.jade index 9fc61fee..9db6d1e7 100644 --- a/src/_h5ai/backend/php/pages/info.php.jade +++ b/src/_h5ai/backend/php/pages/info.php.jade @@ -10,11 +10,3 @@ block body div#content h1#header 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') diff --git a/src/_h5ai/public/css/inc/main/info.less b/src/_h5ai/public/css/inc/main/info.less index d13f258b..1d36e6bd 100644 --- a/src/_h5ai/public/css/inc/main/info.less +++ b/src/_h5ai/public/css/inc/main/info.less @@ -33,20 +33,17 @@ } #support { - margin: 12px auto 24px auto; - padding: 6px 18px; - width: 210px; + margin: 24px auto; + padding: 18px 0 6px 0; + width: 292px; background: @col-back-panel; border: 1px solid @col-border; border-radius: 4px; - .paypal { - margin: 12px 0 0 0; - } - input[type="image"] { border: 0; width: 100px; + padding: 12px 48px; } } @@ -78,7 +75,7 @@ display: inline-block; text-align: left; list-style-type: none; - margin: 96px 0; + margin: 48px 0; padding: 0; .test { diff --git a/src/_h5ai/public/js/inc/main/info.js b/src/_h5ai/public/js/inc/main/info.js index 35918664..506a71ad 100644 --- a/src/_h5ai/public/js/inc/main/info.js +++ b/src/_h5ai/public/js/inc/main/info.js @@ -1,14 +1,14 @@ -modulejs.define('main/info', ['$', 'config', 'core/server'], function ($, config, server) { +modulejs.define('main/info', ['$', 'config', 'core/resource', 'core/server'], function ($, config, resource, server) { - var testsTemp = + var tplTests = '