Show More
@@ -15,6 +15,21 b'' | |||||
15 | <%def name="head_extra()"> |
|
15 | <%def name="head_extra()"> | |
16 | <link href="${h.url('atom_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" /> |
|
16 | <link href="${h.url('atom_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" /> | |
17 | <link href="${h.url('rss_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> |
|
17 | <link href="${h.url('rss_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> | |
|
18 | ||||
|
19 | <script> | |||
|
20 | redirect_hash_branch = function(){ | |||
|
21 | var branch = window.location.hash.replace(/^#(.*)/, '$1'); | |||
|
22 | if (branch){ | |||
|
23 | window.location = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}" | |||
|
24 | .replace('__BRANCH__',branch); | |||
|
25 | } | |||
|
26 | } | |||
|
27 | redirect_hash_branch(); | |||
|
28 | window.onhashchange = function() { | |||
|
29 | redirect_hash_branch(); | |||
|
30 | }; | |||
|
31 | </script> | |||
|
32 | ||||
18 | </%def> |
|
33 | </%def> | |
19 |
|
34 | |||
20 | <%def name="main()"> |
|
35 | <%def name="main()"> |
General Comments 0
You need to be logged in to leave comments.
Login now