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

6 lines
187 B
Plaintext

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