diff --git a/kallithea/templates/branches/branches_data.html b/kallithea/templates/branches/branches_data.html --- a/kallithea/templates/branches/branches_data.html +++ b/kallithea/templates/branches/branches_data.html @@ -18,8 +18,9 @@ ${branch[0]} - ${h.link_to(branch[0], - h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))} + + ${h.link_to(branch[0],h.url('changelog_home',repo_name=c.repo_name,branch=branch[0]))} + ${branch[1]._timestamp} @@ -44,8 +45,9 @@ ${branch[0]} - ${h.link_to(branch[0]+' [closed]', - h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))} + + ${h.link_to(branch[0]+' [closed]',h.url('changelog_home',repo_name=c.repo_name,branch=branch[0]))} + ${branch[1]._timestamp} diff --git a/kallithea/templates/changeset/changeset.html b/kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html +++ b/kallithea/templates/changeset/changeset.html @@ -103,7 +103,7 @@ ${self.repo_context_bar('changelog')} %if c.changeset.branch: - ${h.link_to(c.changeset.branch,h.url('changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} + ${h.link_to(c.changeset.branch,h.url('changelog_home',repo_name=c.repo_name,branch=c.changeset.branch))} %endif diff --git a/kallithea/tests/functional/test_branches.py b/kallithea/tests/functional/test_branches.py --- a/kallithea/tests/functional/test_branches.py +++ b/kallithea/tests/functional/test_branches.py @@ -7,14 +7,14 @@ class TestBranchesController(TestControl self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=HG_REPO)) - response.mustcontain("""default""" % HG_REPO) + response.mustcontain("""default""" % HG_REPO) # closed branches - response.mustcontain("""git [closed]<""" % HG_REPO) - response.mustcontain("""web [closed]""" % HG_REPO) + response.mustcontain("""git [closed]""" % HG_REPO) + response.mustcontain("""web [closed]""" % HG_REPO) def test_index_git(self): self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=GIT_REPO)) - response.mustcontain("""master""" % GIT_REPO) + response.mustcontain("""master""" % GIT_REPO)