How can I hide "Logged in as ..."

Added by filippo mandelli 7 months 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 7 months 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 7 months 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 7 months 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 7 months 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);
}

(1-4/4)