]> git.nbdom.net Git - nb.git/commitdiff
dbq style
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 15 Jan 2017 21:53:19 +0000 (21:53 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 15 Jan 2017 21:53:19 +0000 (21:53 +0000)
www/dbq/dbq.php
www/dbq/etc/nginx/default.conf
www/dbq/html/default.css

index 0d48d957472dbc62fd56d12677d79b047cdc8556..3fdf2e194e9acca55aedb4a96db7b6b04013ef6f 100644 (file)
@@ -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/";
 
       }
index aa5577b3d11656de01b56517891902e7ce1444ea..5ce77f0423a6e2f15b85cd54b0b9e1c2ca15e28a 100644 (file)
@@ -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;
     }
 
 }
index b09ba31a904ff046b72ecdecd69209cba1a771f5..249d14059badc816f5d846b58ced424e72dd10f1 100644 (file)
@@ -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; }