]> git.joonet.de Git - adminer.git/commitdiff
Differentiate views in navigation (thanks to Petr Kobelka)
authorJakub Vrana <jakub@vrana.cz>
Fri, 25 Oct 2013 05:04:57 +0000 (22:04 -0700)
committerJakub Vrana <jakub@vrana.cz>
Fri, 25 Oct 2013 05:04:57 +0000 (22:04 -0700)
adminer/include/adminer.inc.php
adminer/include/functions.inc.php
adminer/static/default.css
changes.txt

index 25ef31962a42b027dd643f8a9ae23ed335cd40e7..144ff3462ec855d9a1ef1c621a67259c804af20d 100644 (file)
@@ -845,7 +845,7 @@ username.form['auth[driver]'].onchange();
                        echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table) . ">" . lang('select') . "</a> ";
                        $name = $this->tableName($status);
                        echo (support("table")
-                               ? '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"]))) . " title='" . lang('Show structure') . "'>$name</a>"
+                               ? '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"])), (is_view($status) ? "view" : "")) . " title='" . lang('Show structure') . "'>$name</a>"
                                : "<span>$name</span>"
                        ) . "<br>\n";
                }
index 6d1cd28736dff6b32762d8802645f725c0994f0e..76b2b3342bec086e290528bef42d32dc34ec3c24 100644 (file)
@@ -183,10 +183,11 @@ function print_fieldset($id, $legend, $visible = false, $onclick = "") {
 
 /** Return class='active' if $bold is true
 * @param bool
+* @param string
 * @return string
 */
-function bold($bold) {
-       return ($bold ? " class='active'" : "");
+function bold($bold, $class = "") {
+       return ($bold ? " class='active $class'" : ($class ? " class='$class'" : ""));
 }
 
 /** Generate class for odd rows
index d2b9b573dbfd01224e17fcc3890efe720227be13..11f6e61a11fc5cd9a261c7825965b0dedd23a7ea 100644 (file)
@@ -48,6 +48,7 @@ input.required { box-shadow: 1px 1px 1px red; }
 .datetime { text-align: right; }
 .type { width: 15ex; width: auto\9; }
 .options select { width: 20ex; width: auto\9; }
+.view { font-style: italic; }
 .active { font-weight: bold; }
 .sqlarea { width: 98%; }
 .icon { width: 18px; height: 18px; background-color: navy; }
index 277ea3b90893df1bd3007a090bde33959f401260..d3bcfa5578e0dd5d674a24724868cc6053444f50 100644 (file)
@@ -9,6 +9,7 @@ Add button for dropping an index
 Display number of selected rows
 Add links to documentation
 Disable underlining links
+Differentiate views in navigation
 Improve speed of CSV import
 Keep form values after refresh in Firefox
 Encrypt passwords stored in session by a key stored in cookie