# Display link to github for remote themes

**URL:** <https://meta.discourse.org/t/display-link-to-github-for-remote-themes/99490>\
**Category:** UX\
**Created:** [October 14, 2018, 10:11pm UTC](https://meta.discourse.org/t/display-link-to-github-for-remote-themes/99490 "2018-10-14T22:11:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)\
**Post date:** [October 21, 2018, 7:46pm UTC](https://meta.discourse.org/t/display-link-to-github-for-remote-themes/99490/3 "2018-10-21T19:46:14Z")

</div>

Hmm, I started working on this [here](https://github.com/danielhollas/discourse/commit/b177079813d3d2d16b84850977695c92e2b81e57), but am having two problems (I am Handlebars noob so they are probably trivial):

1. In [app/assets/javascripts/admin/templates/customize-themes-show.hbs](https://github.com/danielhollas/discourse/commit/b177079813d3d2d16b84850977695c92e2b81e57#diff-93a808890360ff444d1146c0d7b4def0R24), I would expect variable `model.remote_theme.branch` to work, but it doesn’t i.e it does not return the non-default branch that I imported.

2. I will probably need a Handlebars helper to create a proper Github link for non-default branch, but I do not know where to put the code. I will need something like this:

```js
Handlebars.registerHelper('getGithubUrl', function(baseUrl, branch) {
   if (! branch) { 
     return baseUrl;
   } else {
     // strip '.git' from the end, it is added there automatically in GitImporter
     var url = str.substring( 0, str.indexOf( ".git" ) );;
     return url + '/tree/' + branch;
   }
});

```

Sorry for noob questions, any pointers will be highly appreciated. 😊

---

_[View the full topic](https://meta.discourse.org/t/display-link-to-github-for-remote-themes/99490)._
