asciinema.org/app/views/layouts/_current_user_js.html.erb
2012-03-04 13:50:56 +01:00

6 lines
180 B
Plaintext

<script type="text/javascript">
jQuery(document).ready(function(){
AsciiIo.current_user = <%= raw current_user.to_json(:only => [:nickname, :avatar_url]) %>;
});
</script>