Commits

Sam Hart  committed 03c329b

use_phone didn't work... just leave it in

  • Participants
  • Parent commits 322c02a

Comments (0)

Files changed (3)

 OUTPUT=output/index.html
 
 $(OUTPUT): $(START_SRC)
-	export USE_PHONE=Y
 	mkdir -p output/
 	$(BUILD) $(START_SRC) . $(ALL_INC_DIRS) > $(OUTPUT)
 
-nophone: $(START_SRC)
-	mkdir -p output/
-	$(BUILD) $(START_SRC) . $(ALL_INC_DIRS) > $(OUTPUT)
-
-
 test: $(OUTPUT)
 	./validate/html5check.py --encoding=utf-8 output/index.html
 

File jinja_build/jinja_build.py

 else:
     env.loader = FileSystemLoader(".")
 
-use_phone = False
-if os.environ.has_key('USE_PHONE'):
-    use_phone = True
-
 builder = {
             'date' : '%s' % datetime.datetime.now(),
             'id' : hg_id,
             'branch' : hg_branch,
-            'updated' : hg_update.date,
-            'use_phone' : use_phone
+            'updated' : hg_update.date
         }
 
 template = env.from_string(strTemplate)

File main/header.html

   <h1 class="header_title">R&#233;sum&#233; for Sam Hart</h1>
   <p class="contact">Samuel Hart<br />
   <a href="mailto:hartsn@gmail.com">hartsn@gmail.com</a><br />
-  {% if builder.use_phone %}
-  <a href="tel:+1-317-603-2787</a>+1-317-603-2787</a>
-  {% endif %}
+  <a href="tel:+1-317-603-2787">+1-317-603-2787</a><br />
   <a class="url_only" href="http://j.mp/snhLinkedin" target="_blank">LinkedIn Profile</a><br />
   <a class="url_only" href="http://j.mp/snhOhloh" target="_blank">Ohloh Profile</a></p>
   <div class="quicklinks"><ul>