Browse Source

Adds online assets to production only (ads/starred count)

pull/636/head
jlukic 11 years ago
parent
commit
d0e9e9f47e
3 changed files with 6 additions and 0 deletions
  1. 2
      server/documents/index.html.eco
  2. 2
      server/layouts/default.html.eco
  3. 2
      server/partials/header.html.eco

2
server/documents/index.html.eco

@ -22,7 +22,9 @@ type : 'Semantic'
<a class="ui red large labeled icon button" href="build/semantic.zip" class="ui button"><i class="awesome download cloud icon"></i> Download</a>
</div>
<div class="inverted advertisement">
<% unless 'development' in @getEnvironments(): %>
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/51619/azcarbon_2_1_0_VERTDARK"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
<% end %>
</div>
</div>
</div>

2
server/layouts/default.html.eco

@ -250,10 +250,12 @@
<div class="disabled icon item"><i class="right arrow icon"></i></div>
<% end %>
<div class="right menu">
<% unless 'development' in @getEnvironments(): %>
<div class="vertically fitted borderless item">
<iframe src="http://ghbtns.com/github-btn.html?user=jlukic&repo=semantic-ui&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
</div>
<% end %>
<% if @document.type is 'UI Element' or @document.type is 'UI View' or @document.type is 'UI Collection' or @document.type is 'UI Module': %>
<!-- <a class="popup overview icon item" title="Toggle Definition">
<i class="book icon"></i>

2
server/partials/header.html.eco

@ -24,7 +24,9 @@
<% end %>
</div>
<div class="advertisement">
<% unless 'development' in @getEnvironments(): %>
<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/51619/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
<% end %>
</div>
<% if @tabs?: %>
<% index = 0 %>

Loading…
Cancel
Save