# HG changeset patch # User Mads Kiilerich # Date 2014-12-15 13:47:36 # Node ID a14e9bff164b861c02e9931b3bb51eba12a2acc6 # Parent 6a0964373a3089e5a813389921c3d3e31685f14e pull-requests: tweak readable titles - just append /_/ and branch name diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -2309,10 +2309,11 @@ class PullRequest(Base, BaseModel): def url(self, **kwargs): canonical = kwargs.pop('canonical', None) import kallithea.lib.helpers as h - s = '/' + self.title b = self.org_ref_parts[1] if b != self.other_ref_parts[1]: - s = '/_%s_%s' % (b, s) + s = '/_/' + b + else: + s = '/_/' + self.title kwargs['extra'] = urlreadable(s) if canonical: return h.canonical_url('pullrequest_show', repo_name=self.other_repo.repo_name,