Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Only show populated tabs.

Renamed "Standard" to "Links".
  • Loading branch information...
commit 2a0a01a70d04d7a35c6003ed962bf8bf45140935 1 parent db069da
Dave Cross authored July 23, 2013

Showing 1 changed file with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. 10  PoliticalWeb/views/constituency.tt
10  PoliticalWeb/views/constituency.tt
@@ -26,13 +26,17 @@ $(document).ready(function () {
26 26
   <div class="span6">
27 27
     <div class="tabbable">
28 28
       <ul class="nav nav-tabs">
29  
-        <li class="active"><a href="#default" data-toggle="tab">Default</a></li>
  29
+        <li class="active"><a href="#links" data-toggle="tab">Links</a></li>
30 30
         <li><a href="#news" data-toggle="tab">News</a></li>
  31
+[% IF mp.twitter -%]
31 32
         <li><a href="#twitter" data-toggle="tab">Twitter</a></li>
  33
+[% END -%]
  34
+[% IF mp.blog -%]
32 35
         <li><a href="#blog" data-toggle="tab">Blog</a></li>
  36
+[% END -%]
33 37
       </ul>
34 38
       <div class="tab-content">
35  
-        <div class="tab-pane active" id="default">
  39
+        <div class="tab-pane active" id="links">
36 40
           <ul>
37 41
 [% IF mp.extra.wikipedia_url %]
38 42
             <li><a href="[% mp.extra.wikipedia_url %]">Wikipedia entry</a></li>
@@ -64,9 +68,11 @@ document.write(unescape("%3Cscript src='http://twitterforweb.com/twitterbox.js?u
64 68
 <!-- END: Twitter website widget (http://twitterforweb.com) -->
65 69
         </div>
66 70
 [% END %]
  71
+[% IF mp.blog -%]
67 72
         <div class="tab-pane" id="blog">
68 73
           Blog here
69 74
         </div>
  75
+[% END %]
70 76
       </div>
71 77
     </div>
72 78
   </div>

0 notes on commit 2a0a01a

Please sign in to comment.
Something went wrong with that request. Please try again.