# كيفية تجاوز \`admin.hbs\`

**URL:** <https://meta.discourse.org/t/how-to-override-admin-hbs/98307>\
**Category:** Development\
**Created:** [28 سبتمبر 2018، 8:59م UTC](https://meta.discourse.org/t/how-to-override-admin-hbs/98307 "2018-09-28T20:59:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [28 سبتمبر 2018، 8:59م UTC](https://meta.discourse.org/t/how-to-override-admin-hbs/98307/1 "2018-09-28T20:59:40Z")

</div>

I’m just a caveman.

I want to override `app/assets/javascripts/templates/admin.hbs` because I want to change the nav menu on the admin page (but if that’s not how to do it, I’m all ears). If this is possible in a theme, I’d be interested, but this is related to a plugin that does a bunch of other stuff, so the plugin solution is what I want. I mostly want to disable links to API.

I figure that I need to:

1. make a copy of `admin.hbs`, make my changes, and stick it, uh, somewhere (`app/assets/javascripts/templates`, perhaps?)
2. put something in `plugin.rb` that tells Rails that I want to use my file instead of the stock one.
3. Keep an eye on updates to admin.hbs in the future so that I don’t break it.
4. Profit.

---

_[View the full topic](https://meta.discourse.org/t/how-to-override-admin-hbs/98307)._
