Skip to content
Snippets Groups Projects
Commit 558bd77e authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add a comparison if the revisions differ

parent 932f88bc
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ from .views import (
revision_urls = ([
path('', RevisionListView.as_view(), name='list'),
path('compare/<int:to>/<int:from>', RevisionCompareView.as_view(), name='compare'),
path('compare/<int:to>/<int:from>/', RevisionCompareView.as_view(), name='compare'),
], 'revisions')
......
......@@ -18,6 +18,14 @@
<h5>Score</h5>
<p>{{ review.score }}</p>
</div>
{% if review.revision != review.submission.live_revision %}
<div>
<h5>Review was not against the lasted version:</h5>
<p>
<a class="button button--primary" href="{% url "funds:submissions:revisions:compare" submission_pk=review.submission.id to=review.submission.live_revision.id from=review.revision.id %}">Compare</a>
</p>
</div>
{% endif %}
</div>
<div class="rich-text rich-text--answers">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment