'; $('body').append(modern_script); var client_script = ''; $('body').append(client_script); $(document).ready(function() { $('header .user-action-link').addClass('white-text'); var account_menu_items; if (_current_user) { account_menu_items = "[{"text":"Account Settings","url":"/settings"},{"text":"Manage Subscription","url":"/settings/purchases"},{"text":"Help","url":"/help"},{"text":"Log Out","url":"/logout"}]" } else { account_menu_items = "[{quot;textquot;:quot;Log Inquot;,quot;urlquot;:quot;/loginquot;}]" } //dropdown = $('.avatar-container').html() dropdown = $('.user-actions').html() header = '
' + dropdown + '
'; $('header').html(header); })