Where is topnav.vm in JIRA 6.1.6

I was expecting topnav.vm in /WEB-INF/classes/templates/plugins/topnavigation as in JIRA 5. However it seems to have been moved in JIRA 6.1.6. Any idea where is the topnav.vm?

1 answer

1 accepted

check files:

atlassian-jira\WEB-INF\classes\templates\plugins\webfragments\system-navigation-bar.vm

atlassian-jira\WEB-INF\classes\templates\plugins\webfragments\system-admin-navigation-bar.vm

I am actually looking to add another image to the left of jira home icon and give it a different url link. It was possible in the earlier topnav.vm. I don't quite understand how to achieve the same with these two files.

It seems that for the logo these templates would not work.

An alternative to modifying the vm file is to inject a JS code that adds the image next to the logo. You can inject it as described here:

https://developer.atlassian.com/display/JIRADEV/Adding%2520JavaScript%2520to%2520all%2520pages%2520for%2520Google%2520Analytics

A sample js code:

AJS.$('h1#logo').prepend(AJS.$('<a href="http://mysite.com"><img src="https://developer.atlassian.com/s/en_GB-1988229788/4532/e44e912a19b4356578af38c61df778d5fda2d014.50/_/images/logo/confluence-logo.png" alt="My Other Cool Image"></a>'))

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

235 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you