Assembla home | Assembla project page
 

Changeset 8

Show
Ignore:
Timestamp:
03/19/08 00:00:47 (9 months ago)
Author:
battlehorse
Message:

Fixes #7 . Google analytics support, app-wide configuration file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rails/app/helpers/application_helper.rb

    r4 r8  
    66    s << "<div style=\"position: fixed; top: 95%\" >" 
    77    s << "<span style=\"font-size: 80%\">" 
    8     s << "<b>RailTrackr</b>: Written in a matter of hours by <a href=\"mailto:battlehorse@google.com\">Riccardo Govoni</a>" 
     8    s << "<b>RailTrackr</b>: Written in a matter of hours by <a href=\"mailto:battlehorse@gmail.com\">Riccardo Govoni</a> &nbsp;" 
     9    s << "Want to contribute? <a href=\"http://www.assembla.com/spaces/railtrackr\">Project webpage</a>, <a href=\"http://www.battlehorse.net/w/tag/railtrackr\" >Author weblog</a>." 
    910    s << "</span></div>" 
     11 
     12    unless AppConfig.urchin.blank? 
     13      urchin = <<-EOF 
     14      <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> 
     15      </script> 
     16      <script type="text/javascript"> 
     17      _uacct = "#{AppConfig.urchin}"; 
     18      urchinTracker(); 
     19      </script>     
     20      EOF 
     21     
     22      s << urchin 
     23    end 
     24     
    1025    return s 
    1126  end 
  • trunk/rails/lib/flickr_helper.rb

    r4 r8  
    11module FlickrAware 
    22  def self.api_key 
    3     "YOUR FLICKR API KEY HERE" 
     3    AppConfig.flickr 
    44  end 
    55