Permalink
Browse files

fix: empty ad (and remove ffconf) (#2912)

  • Loading branch information...
1 parent 9fc55c5 commit c9c80df407e64895f6df4533757a3881456e4df9 @remy remy committed on GitHub Oct 21, 2016
Showing with 54 additions and 3 deletions.
  1. +1 −1 views/inject-ad.js.html
  2. +53 −2 views/partials/welcome_panel.html
@@ -1,5 +1,5 @@
document.getElementById('bsaapi').innerHTML = '<a href="{{ad.statlink}}" target="_blank">{{ad.description}}</a>{{#if ad.pixel}}<img src="{{ad.pixel}}">{{/if}}';
-$('body').addClass('bsaapi');
+{{#if ad.description}}$('body').addClass('bsaapi');{{/if}}
$('#bsaapi a').click(function () {
jsbin.analytics.track('ad', 'click', 'bsa');
});
@@ -40,10 +40,61 @@ <h2 class="toppanel-title"><a href="{{#if ../../user.pro}}/help/pro{{else}}/upgr
</div>
{{/pro-features}}
- <div class="toppanel-column toppanel-stretch">
- <iframe src="https://2016.ffconf.org/embed/css-layout/" border=0></iframe>
+
+<div class="toppanel-column">
+{{#blog}}
+ <div class="toppanel-blog toppanel-section">
+ <h2 class="toppanel-title"><a href="{{link}}"{{#if ext}} target="_blank"{{/if}} class="toppanel-link">{{title}}</a></h2>
+ <ul class="toppanel-list">
+ {{#data}}{{#.}}<li><a href="{{link}}"{{#if ext}} target="_blank"{{/if}} class="toppanel-link">{{title}}</a></li>{{/.}}{{/data}}
+ </ul>
+ </div>
+{{/blog}}
+{{#help}}
+ <div class="toppanel-help toppanel-section">
+ <h2 class="toppanel-title"><a href="{{link}}"{{#if ext}} target="_blank"{{/if}} class="toppanel-link">{{title}}</a></h2>
+ <ul class="toppanel-list">
+ {{#data}}{{#.}}<li><a href="{{link}}"{{#if ext}} target="_blank"{{/if}} class="toppanel-link">{{title}}</a></li>{{/.}}{{/data}}
+ </ul>
</div>
+{{/help}}
+</div>
+
+<div class="toppanel-column">
+ {{#twitter}}
+ <div class="toppanel-section">
+ <h2 class="toppanel-title"><a href="{{link}}" target="_blank" class="toppanel-link">{{title}}</a></h2>
+ <ul class="toppanel-list">
+ {{#data}}
+ {{#.}}
+ <li><a href="{{link}}">{{{title}}}</a></li>
+ {{/.}}
+ {{/data}}
+ </ul>
+ </div>
+ {{/twitter}}
+ <div class="toppanel-section toppanel-love haspro">
+ <p><a target="_blank" href="http://jsbin.com/dave/last/edit">Dave</a> loves you <span class="love">&hearts;</span> because you're a Pro.</p>
+ </div>
+</div>
+<div class="toppanel-column">
+{{#quote}}
+ <div class="toppanel-section">
+ <div class="toppanel-quote">{{{.}}}</div>
+ </div>
+{{/quote}}
+ {{!--
+ <div class="toppanel-section">
+ <h2 class="toppanel-title"><a href="#">Recent bins</a></h2>
+ <ul class="toppanel-list">
+ <li><a href="#"><span class="toppanel-bin-name">sdcwww</span> <span class="toppanel-bin-date">yesterday</span></a></li>
+ <li><a href="#"><span class="toppanel-bin-name">uhsjj</span> <span class="toppanel-bin-date">last Wednesday</span></a></li>
+ <li><a href="#"><span class="toppanel-bin-name">jiooo</span> <span class="toppanel-bin-date">2 weeks ago</span></a></li>
+ </ul>
+ </div>
+ --}}
+</div>
{{/welcomePanel}}
</div>

0 comments on commit c9c80df

Please sign in to comment.