-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description of Changes *Cherry-pick of OrcaCollective#434 * Fixed bug introduced in #1018 where anonymous uploads were silently failing due to misplaced `@login_required` decorator * Audited all other redirect routes * Fixed note_detail.html and description_detail.html ## Notes for Deployment None! ## Screenshots (if appropriate) N/A ## Tests and Linting - [x] This branch is up-to-date with the `develop` branch. - [x] `pytest` passes on my local development environment. - [x] `pre-commit` passes on my local development environment.
- Loading branch information
Showing
6 changed files
with
98 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{% extends "base.html" %} | ||
{% block page_title %} | ||
Description Details | ||
{% endblock page_title %} | ||
{% block form %} | ||
<p> | ||
For officer with OOID {{ form.officer_id.data }}. | ||
<br> | ||
{{ form.description }} | ||
</p> | ||
{{ super() }} | ||
{% endblock form %} | ||
{% block content %} | ||
<div class="container theme-showcase" role="main"> | ||
<div class="page-header"> | ||
<h1>Viewing Description {{ obj.id }} on Officer {{ obj.officer_id }}</h1> | ||
</div> | ||
<p class="lead"> | ||
<p>{{ obj.text_contents | markdown }}</p> | ||
</p> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{% extends "base.html" %} | ||
{% block page_title %} | ||
Note Details | ||
{% endblock page_title %} | ||
{% block form %} | ||
<p> | ||
For officer with OOID {{ form.officer_id.data }}. | ||
<br> | ||
{{ form.description }} | ||
</p> | ||
{{ super() }} | ||
{% endblock form %} | ||
{% block content %} | ||
<div class="container theme-showcase" role="main"> | ||
<div class="page-header"> | ||
<h1>Viewing Note {{ obj.id }} on Officer {{ obj.officer_id }}</h1> | ||
</div> | ||
<p class="lead"> | ||
<p>{{ obj.text_contents | markdown }}</p> | ||
</p> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters