From: Nicolas Boisselier Date: Sun, 15 Jan 2017 21:53:19 +0000 (+0000) Subject: dbq style X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=fff5a88b3ab4b4f69c2480de8779d1e784b6b3e5;p=nb.git dbq style --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 0d48d957..3fdf2e19 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -325,7 +325,7 @@ class DbQ extends nb { $nav[] = [$v,'/']; } else { - $nav[] = [$v,"$path$v.".$ext]; + $nav[] = [$this->prettyText($v),"$path$v.".$ext]; $path .= "$v/"; } diff --git a/www/dbq/etc/nginx/default.conf b/www/dbq/etc/nginx/default.conf index aa5577b3..5ce77f04 100644 --- a/www/dbq/etc/nginx/default.conf +++ b/www/dbq/etc/nginx/default.conf @@ -45,6 +45,10 @@ server { #--------------------------------------------------------------# # FastCGI + set $prod "1"; + if ($server_addr = '127.0.0.1') { + set $prod "0"; + } location ~ /index\.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; @@ -58,7 +62,7 @@ server { fastcgi_param DBQ_CONF_FILE $document_root/../../../etc/dbq/000-local.php; fastcgi_param DBQ_PERM 0; # NB 09.01.17 fastcgi_param DBQ_PARAM_DB ls; - fastcgi_param PRODUCTION 1; + fastcgi_param PRODUCTION $prod; } } diff --git a/www/dbq/html/default.css b/www/dbq/html/default.css index b09ba31a..249d1405 100644 --- a/www/dbq/html/default.css +++ b/www/dbq/html/default.css @@ -4,6 +4,8 @@ html { } body { + /* + */ display: table; margin-left: auto; margin-right: auto; @@ -14,6 +16,13 @@ body { h1 { margin: 0 0 0.2em 0; + font-size: 180%; + /* + text-decoration: underline; + */ + padding-bottom: 0.3em; + margin-bottom: 0.5em; + border-bottom: dashed 1px #444444; } a { @@ -91,7 +100,7 @@ object, iframe, pre } table.rows tr:nth-child(even) td { - background-color: #EEEEEE; + background-color: #FEFEFE; } .rows { padding: 0; }