Skip to content

Commit

Permalink
Merge pull request #655 from alan-turing-institute/back_button
Browse files Browse the repository at this point in the history
add contextual back button
  • Loading branch information
gedankenstuecke authored Feb 12, 2024
2 parents fea4ba7 + 46b1087 commit 7382e4b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions server/apps/main/templates/main/single_story.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,24 @@ <h3>Experience</h3>
<h3>What could have made the experience better?</h3>
<p><i>{% firstof experience.difference_text "No Difference Text Given" %}</i></p>
</div>

<a
class="btn btn-primary"
{% if request.META.HTTP_REFERER %}
href="{{ request.META.HTTP_REFERER }}"
{% else %}
href="{% url 'main:public_experiences' %}"
{% endif %}
>
Back to list of stories
</a>

</div>





</section>

{% endblock %}

0 comments on commit 7382e4b

Please sign in to comment.