diff --git a/opentech/apply/activity/templates/activity/include/listing_base.html b/opentech/apply/activity/templates/activity/include/listing_base.html index 8efeb3ba4dda18bfe787e5eedf9bcafd91734af1..b744902f76019c62f0ada7305584de4a2572e0b5 100644 --- a/opentech/apply/activity/templates/activity/include/listing_base.html +++ b/opentech/apply/activity/templates/activity/include/listing_base.html @@ -22,6 +22,12 @@ {% endif %} - {{ activity.message }} + + {% if activity.related_object %} + <a href="{{ activity.related_object.get_absolute_url }}" class="feed__related-item"> + <svg><use xlink:href="#arrow-head-pixels--solid"></use></svg> + </a> + {% endif %} </p> </div> </div> diff --git a/opentech/apply/review/models.py b/opentech/apply/review/models.py index e7247750b487d69a975f632ad7ac19269e23c8b6..aa0d0c09e32837bf9872cdf8def14bb837fde0ff 100644 --- a/opentech/apply/review/models.py +++ b/opentech/apply/review/models.py @@ -139,7 +139,7 @@ class Review(ReviewFormFieldsMixin, BaseStreamForm, AccessFormData, models.Model return '{:.1f}'.format(self.score) if self.score != NA else 'NA' def get_absolute_url(self): - return reverse('apply:reviews:review', args=(self.id,)) + return reverse('apply:submissions:reviews:review', args=(self.submission.pk, self.id,)) def __str__(self): return f'Review for {self.submission.title} by {self.author!s}' diff --git a/opentech/static_src/src/sass/apply/components/_feed.scss b/opentech/static_src/src/sass/apply/components/_feed.scss index 71c84edeaeb1a669885c80498f7dc6238ca57def..246f10e3b24a4e85c4d17349657b8b83aa4441aa 100644 --- a/opentech/static_src/src/sass/apply/components/_feed.scss +++ b/opentech/static_src/src/sass/apply/components/_feed.scss @@ -110,6 +110,16 @@ } } + &__related-item { + svg { + width: 10px; + height: 14px; + margin-left: 10px; + margin-top: 0.25em; + fill: $color--dark-blue; + } + } + &__heading { margin-bottom: 0;