Changeset:
        0f940fabff9d
        
https://sourceforge.net/p/mrbs/hg-code/ci/0f940fabff9d445d2bd6f6c1f6ddcf89b6065a73
Author:
        Campbell Morrison <[email protected]>
Date:
        Mon Mar 27 18:12:36 2017 +0100
Log message:

Added some styling

diffstat:

 web/css/mrbs.css.php |  14 ++++++++++++++
 web/index.php        |   7 ++++---
 2 files changed, 18 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r 128316dd7790 -r 0f940fabff9d web/css/mrbs.css.php
--- a/web/css/mrbs.css.php      Mon Mar 27 17:46:58 2017 +0100
+++ b/web/css/mrbs.css.php      Mon Mar 27 18:12:36 2017 +0100
@@ -1416,3 +1416,17 @@
 div#check_tabs {background-image: none}
 .edit_entry #ui-tab-dialog-close {position:absolute; right:0; top:23px}
 .edit_entry #ui-tab-dialog-close a {float:none; padding:0}
+
+
+/* ------------- Main table ----------------------*/
+
+.main_view {
+  width: 100%;
+}
+
+.main_view a {
+  display: block;
+  width: 100%;
+  white-space: nowrap;
+}
+
diff -r 128316dd7790 -r 0f940fabff9d web/index.php
--- a/web/index.php     Mon Mar 27 17:46:58 2017 +0100
+++ b/web/index.php     Mon Mar 27 18:12:36 2017 +0100
@@ -123,7 +123,7 @@
 {
   $html = '';
   
-  $html .= "<table>\n";
+  $html .= "<table class=\"main_view\">\n";
   
   foreach ($map as $room_id => $row)
   {
@@ -144,14 +144,15 @@
         else
         {
           // This is an empty slot
-          $html .= get_cell_html('', 'new');
+          $content = "<a href=\"\"></a>\n";  // JUST FOR NOW - TO DO
+          $html .= get_cell_html($content, 'new');
         }
       }
       elseif (count($data) == 1)
       {
         $this_id = $data[0]['id'];
         $type = $data[0]['type'];
-        $content = htmlspecialchars($data[0]['name']);
+        $content = "<a href=\"\">" . htmlspecialchars($data[0]['name']) . 
"</a>\n"; // JUST FOR NOW - TO DO
         
         if (!isset($last_id))
         {

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to