ruby on rails - How to add an image to the redmine top menu? -


i want put image on top menu of redmine plugin index page.

in init.rb

menu :top_menu, :my_link, {:controller => 'my_controller', :action => 'my_action'}, :caption => "my title" link image fit in syntax?

you'll have css.

if create menu with:

menu :top_menu, :my_link, {:controller => 'my_controller', :action => 'my_action'}, :caption => "my title"  

it created class 'my-link'.

all have define on css:

#top-menu a.my-link {        padding-left: 20px;   background-image: url(../images/my-link.png);  } 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - EclipseLink JPA Object is not a known entity type -

java - Need to add SOAP security token -