Skip to content

Commit

Permalink
Always include the project object in the context
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Jan 19, 2019
1 parent d075d54 commit 2f337dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/builds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ class BuildDetail(BuildBase, DetailView):

def get_context_data(self, **kwargs):
context = super(BuildDetail, self).get_context_data(**kwargs)
context['project'] = self.project

build = self.get_object()
if build.error != BuildEnvironmentError.GENERIC_WITH_BUILD_ID.format(build_id=build.pk):
# Do not suggest to open an issue if the error is not generic
return context

context['project'] = self.project
scheme = (
'https://github.com/rtfd/readthedocs.org/issues/new'
'?title={title}{build_id}'
Expand Down

0 comments on commit 2f337dd

Please sign in to comment.