asciinema.org/app/views/layouts/_current_user_js.html.erb

6 lines
185 B
Plaintext
Raw Normal View History

2012-03-03 18:02:04 +00:00
<script type="text/javascript">
jQuery(document).ready(function(){
AsciiIo.current_user = <%= raw current_user.to_json(:only => [:id, :nickname, :avatar_url]) %>;
2012-03-03 18:02:04 +00:00
});
</script>