How can I hide "Logged in as ..."
Added by filippo mandelli almost 6 years ago
I have a redmine clone I use for customer support, and I execute an automatic login.
How can i hide "Logged in as ..." in the top menu?
Replies (4)
RE: How can I hide "Logged in as ..." - Added by Davide Giacometti almost 6 years ago
Hi,
I think you can't remove "logged in as" like a top menu links: www.redmine.org/projects/redmine/wiki/Plugin_Tutorial#Extending-menus
You can remove it changing the view but I don't like code hacks.
You can create a simple plugin that hook a css and hide "logged in as".
Be careful that if you hide it, the link will still be accessible.
Davide
RE: How can I hide "Logged in as ..." - Added by Mayama Takeshi almost 6 years ago
You could try this plugin:
https://github.com/martin-denizet/redmine_custom_js
and run some javascript code to hide/deactivate it.
Something like this might work:
$("#loggedas").hide();
RE: How can I hide "Logged in as ..." - Added by Alexander Pedersen almost 6 years ago
Another solution is to use something Stylish - a CSS plugin for Chrome and Firefox
This way you can hide the element via CSS.
RE: How can I hide "Logged in as ..." - Added by Guillermo ML almost 6 years ago
I used https://github.com/onozaty/redmine-view-customize to hide some elements using javascript. Something like:
/* Path pattern: .* */
window.onload = function() {
nodo = document.getElementById('loggedas');
nodo.parentNode.removeChild(nodo);
}