Skip to content

Commit

Permalink
Add share buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 21, 2015
1 parent 7b3e632 commit 715ea8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion ttlib/constituency.tt
Expand Up @@ -16,7 +16,6 @@
</ul>
<p><small>If you wish to make any corrections to this list, please see the
<a href="https://yournextmp.com/constituency/[% c.mapit_id %]">[% c.name %] page</a> on <a href="https://yournextmp.com/">YourNextMP</a>.</small></p>
<p><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p>
</div>
</div>
</div>
Expand Down
24 changes: 13 additions & 11 deletions ttlib/page.tt
Expand Up @@ -43,18 +43,20 @@ body {
<li class="active"><a href="/">Home</a></li>
<li><a href="/c/">Constituencies</a></li>
<li><a href="/about/">About</a></li>
<!-- li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Share
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li class="socials"><g:plusone annotation="inline" width="150"></g:plusone> </li>
<li class="socials"><a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
<li class="socials"><div class="fb-like" data-send="false" data-width="150" data-show-faces="true"></div></li>
</ul>
</li -->
</li>
</ul>
<!-- form class="navbar-form navbar-right" role="form">
<div class="form-group">
Expand Down

0 comments on commit 715ea8b

Please sign in to comment.