Added decision viewer with protected pdf server

This commit is contained in:
Zak Timson
2017-09-05 23:28:52 -04:00
parent 2dec223f8b
commit cc8f5750a8
4 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,19 @@
{% extends 'base.html' %}
{% load static %}
{% block head %}
{% endblock %}
{% block body %}
<div class="container-fluid bg-light-blue py-3">
<div class="container">
<h1>Synopsis</h1>
<h6 class="text-muted">Date: {{ decision.date }}</h6>
<p>{{ decision.synopsis | linebreaks }}</p>
{% if perms.case_law.view_pdf %}
<a href="/media/{{ decision.pdf }}">View PDF</a>
{% endif %}
</div>
</div>
{% endblock %}