From a9d6c9b0cd71f68859f7d82e55751ce92b55618d Mon Sep 17 00:00:00 2001
From: Kevin Abel <kevin.abel.0@gmail.com>
Date: Thu, 19 Jun 2014 13:27:04 -0500
Subject: [PATCH] Use alternate styling for unofficial building abbreviations

---
 www/less/map.less                                      | 4 ++++
 www/templates/html/UNL/TourMap/GoogleMap.tpl.php       | 1 +
 www/templates/html/UNL/TourMap/Marker/Building.tpl.php | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/less/map.less b/www/less/map.less
index 6ee6a71f..42b7b6b9 100644
--- a/www/less/map.less
+++ b/www/less/map.less
@@ -320,6 +320,10 @@
 			min-width: 4.5em;
 		}
 		
+		&.unofficial .buildingCode {
+			border-style: dashed;
+		}
+		
 		&:hover {
 			.buildingCode {
 				background: @triad;
diff --git a/www/templates/html/UNL/TourMap/GoogleMap.tpl.php b/www/templates/html/UNL/TourMap/GoogleMap.tpl.php
index 4ecafb79..9ae4963e 100644
--- a/www/templates/html/UNL/TourMap/GoogleMap.tpl.php
+++ b/www/templates/html/UNL/TourMap/GoogleMap.tpl.php
@@ -57,6 +57,7 @@ WDN.loadCSS('<?php echo UNL_TourMap::getURL(); ?>css/map.css');
 <section id="mapnav" class="wdn-band">
     <div id="pointlist" class="wdn-inner-wrapper">
     <h2 class="clear-top wdn-center">All Buildings</h2>
+    <p>Note: Building abbreviations with a dashed border are unofficial and are listed here only for convenience.</p>
         <?php echo $savvy->render($context->markers, 'UNL/TourMap/MarkerList.tpl.php'); ?>
     </div>
 </section>
diff --git a/www/templates/html/UNL/TourMap/Marker/Building.tpl.php b/www/templates/html/UNL/TourMap/Marker/Building.tpl.php
index 392a7ef8..efc14c66 100644
--- a/www/templates/html/UNL/TourMap/Marker/Building.tpl.php
+++ b/www/templates/html/UNL/TourMap/Marker/Building.tpl.php
@@ -1 +1 @@
-<li class="building"><a href="<?php echo $context->getUrl(); ?>"><span class="buildingCode"><?php echo $context->code; ?></span> <span class="format"><?php echo $context->title; ?></span> <span class="campus">(<?php echo $context->getFormattedCampus(); ?>)</span> </a></li>
+<li class="building<?php echo !$context->isOfficial() ? ' unofficial' : '' ?>"><a href="<?php echo $context->getUrl(); ?>"><span class="buildingCode"><?php echo $context->code; ?></span> <span class="format"><?php echo $context->title; ?></span> <span class="campus">(<?php echo $context->getFormattedCampus(); ?>)</span> </a></li>
-- 
GitLab