diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html index 85e7be4b..8775137c 100644 --- a/patchwork/templates/patchwork/submission.html +++ b/patchwork/templates/patchwork/submission.html @@ -20,6 +20,15 @@
Message ID | diff --git a/patchwork/views/patch.py b/patchwork/views/patch.py index e2c595fb..95679923 100644 --- a/patchwork/views/patch.py +++ b/patchwork/views/patch.py @@ -136,6 +136,13 @@ def patch_detail(request, project_id, msgid): related_same_project = [] related_different_project = [] + context['next_submission'] = None + patch_series = patch.series.patches.all() + num_patches = patch.series.patches.count() + for idx in range(num_patches - 1): + if patch.id == patch_series[idx].id: + context['next_submission'] = patch_series[idx + 1] + context['comments'] = comments context['checks'] = Patch.filter_unique_checks( patch.check_set.all().select_related('user'),
---|