diff --git a/colab/plugins/gitlab/models.py b/colab/plugins/gitlab/models.py index 2d9640b..fe6d019 100644 --- a/colab/plugins/gitlab/models.py +++ b/colab/plugins/gitlab/models.py @@ -134,11 +134,12 @@ class GitlabComment(Collaboration): @property def url(self): if self.issue_comment: - return u'/gitlab/{}/issues/{}#notes_{}'.format( - self.project.path_with_namespace, self.parent_id, self.iid) + url_str = u'/gitlab/{}/issues/{}#notes_{}' else: - return u'/gitlab/{}/merge_requests/{}#notes_{}'.format( - self.project.path_with_namespace, self.parent_id, self.iid) + url_str = u'/gitlab/{}/merge_requests/{}#notes_{}' + + return url_str.format(self.project.path_with_namespace, + self.parent_id, self.iid) class Meta: verbose_name = _('Gitlab Comments') -- libgit2 0.21.2