We need to customize the topics/show.html.erb file to add some custom functionality. I have edited the template locally and all works fine, but I would like to know if there is a standard/preferred way to edit those files without them being rewritten at each upgrade.
How do you guys normally handle it?
You need to create a plugin. There are some tutorials available here.
Thanks Jay, I am going that route in fact - but the plugins I could find actually overwrite the template in full, which is not much different from creating a git branch for myself.
For people searching for this in the future, this might help you overwrite the html.erb file:
But I will dig deeper, maybe some automated search and replace after each update might do the trick in my case as the edits are not extensive.