Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Added intercom code to Ututi
Browse files Browse the repository at this point in the history
  • Loading branch information
chompomonim committed Jan 4, 2013
1 parent a0db2de commit 654d7f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ututi/templates/prebase.mako
Expand Up @@ -211,6 +211,18 @@ ${_('Private social networks for universities')}
})();
</script>
%endif

<script id="IntercomSettingsScriptTag">
var intercomSettings = {
// TODO: The current logged in user's email address.
email: "${user.email}",
// TODO: The current logged in user's sign-up date as a Unix timestamp.
created_at: ${int(user.created_at)},
app_id: "43cikuho"
};
</script>
<script>(function(){var w=window;var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://api.intercom.io/api/js/library.js';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}})();</script>

${h.stylesheet_link(h.path_with_hash('/reset.css'))}
${h.stylesheet_link(h.path_with_hash('/style.css'))}
${h.stylesheet_link(h.path_with_hash('/layout.css'))}
Expand Down

0 comments on commit 654d7f6

Please sign in to comment.