GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
Wow, epic fail
kneath (author)
Wed Jun 04 21:38:22 -0700 2008
commit  5246f030986385e798b07898036831627a003330
tree    bffc5309937bd5d8d619f85f337d57e4c7a10ced
parent  f443edc797479639ed72be649b54487de76ec74b
...
1
2
3
 
4
5
6
...
1
 
 
2
3
4
5
0
@@ -1,6 +1,5 @@
0
 (function(){
0
- //var ad_data = '<%= format_for_javascript(partial("shared/ad", :campaign => @campaign, :format => :html)) %>';
0
- var ad_data = '<div class="greed_advertisment"><h4><a href="http://lighthouseapp.com">Testing Campaign</a></h4><p>Blahblah blah</p></div>';
0
+ var ad_data = '<%= format_for_javascript(partial("shared/ad", :campaign => @campaign, :format => :html)) %>';
0
   var ad_spot = document.getElementById('greed_<%= @spot.id %>');
0
   ad_spot.innerHTML = ad_data;
0
   
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<div class="greed-advertisment">
0
+<div class="greed_advertisment">
0
   <% unless campaign.filename.blank? %>
0
     <p><a href="<%= campaign.link %>" title="<%= campaign.name %>"><img src="<%= host_with_port + campaign.filename %>" /></a></p>
0
     <% unless campaign.description.blank? %>

Comments

    No one has commented yet.