diff --git a/ipynbsrv/admin/static/admin/js/user_import.js b/ipynbsrv/admin/static/admin/js/user_import.js index a425633..bd2b565 100644 --- a/ipynbsrv/admin/static/admin/js/user_import.js +++ b/ipynbsrv/admin/static/admin/js/user_import.js @@ -1,5 +1,14 @@ (function($) { $(document).ready(function($) { - $("#content-main").append('
'); + // check if history link exists in site, if yes, we are on the user detail site and don't want to include the button + if ($(".historylink").length == 0) { + // check if .object-tools exists + if ($(".object-tools").length == 0) { + $("#content-main").prepend(''); + } else { + $(".object-tools").prepend('