From 87d0e1a52c6849378cf0613b41df09f7c8ac254f Mon Sep 17 00:00:00 2001 From: Michael Plunkett <5885605+michplunkett@users.noreply.github.com> Date: Thu, 13 Jul 2023 14:00:29 -0500 Subject: [PATCH] Add HTML linting to `pre-commit` (#968) https://github.com/lucyparsons/OpenOversight/issues/239 I added `djlint` linting to the `pre-commit` script and made the corresponding changes. - [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. --- .pre-commit-config.yaml | 9 + OpenOversight/app/main/views.py | 4 +- OpenOversight/app/templates/about.html | 14 +- OpenOversight/app/templates/base.html | 20 +- OpenOversight/app/templates/browse.html | 10 +- OpenOversight/app/templates/cop_face.html | 103 ++++---- .../app/templates/cop_face_disambiguate.html | 220 +++++++++--------- .../app/templates/description_new.html | 2 +- .../app/templates/edit_assignment.html | 6 +- OpenOversight/app/templates/edit_officer.html | 6 +- OpenOversight/app/templates/form.html | 3 +- OpenOversight/app/templates/image.html | 1 - .../app/templates/incident_detail.html | 14 +- .../app/templates/incident_list.html | 18 +- OpenOversight/app/templates/incident_new.html | 2 +- OpenOversight/app/templates/index.html | 6 +- .../app/templates/input_find_officer.html | 8 +- OpenOversight/app/templates/label_data.html | 94 ++++---- OpenOversight/app/templates/leaderboard.html | 2 +- OpenOversight/app/templates/link_new.html | 2 +- OpenOversight/app/templates/list.html | 4 +- OpenOversight/app/templates/note_new.html | 2 +- OpenOversight/app/templates/officer.html | 11 +- .../app/templates/partials/incident_form.html | 2 +- .../partials/links_and_videos_row.html | 2 +- .../templates/partials/officer_incidents.html | 4 +- .../app/templates/partials/paginate.html | 5 +- .../app/templates/partials/paginate_nav.html | 8 +- OpenOversight/app/templates/privacy.html | 22 +- OpenOversight/app/templates/profile.html | 2 +- OpenOversight/app/templates/sort.html | 8 +- OpenOversight/app/templates/submit_image.html | 14 +- .../app/templates/submit_officer_image.html | 10 +- OpenOversight/app/templates/tag.html | 10 +- OpenOversight/app/templates/tutorial.html | 8 +- 35 files changed, 354 insertions(+), 302 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88c12bcf1..bfcf91630 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -100,9 +100,18 @@ repos: rev: v1.31.1 hooks: - id: djlint-reformat + pass_filenames: false args: - OpenOversight/app/templates - --format-css - --profile=jinja - --indent=2 - --quiet + - id: djlint + require_serial: true + pass_filenames: false + args: + - OpenOversight/app/templates + - --profile=jinja + - --use-gitignore + - --ignore=H006,T028,H031,H021,H013,H011 diff --git a/OpenOversight/app/main/views.py b/OpenOversight/app/main/views.py index 9558a192c..6ff89b203 100644 --- a/OpenOversight/app/main/views.py +++ b/OpenOversight/app/main/views.py @@ -144,7 +144,7 @@ def browse(): @sitemap_include @main.route("/find", methods=[HTTPMethod.GET, HTTPMethod.POST]) def get_officer(): - jsloads = ["js/find_officer.js"] + js_loads = ["js/find_officer.js"] form = FindOfficerForm() departments_dict = [dept_choice.toCustomDict() for dept_choice in dept_choices()] @@ -180,7 +180,7 @@ def get_officer(): "input_find_officer.html", form=form, depts_dict=departments_dict, - jsloads=jsloads, + jsloads=js_loads, ) diff --git a/OpenOversight/app/templates/about.html b/OpenOversight/app/templates/about.html index 1284c28f0..efb483b89 100644 --- a/OpenOversight/app/templates/about.html +++ b/OpenOversight/app/templates/about.html @@ -1,9 +1,11 @@ {% extends "base.html" %} -{% block title %}About OpenOversight{% endblock %} +{% block title %} + About OpenOversight +{% endblock title %} {% block meta %} -{% endblock %} +{% endblock meta %} {% block content %}
@@ -23,7 +25,7 @@ This is an independent instance of OpenOversight hosted by Seattle regional techbloc. For more info or reporting problems, reach out to - TechBlocSEA on Twitter or @@ -31,7 +33,9 @@

@@ -121,4 +125,4 @@

Press Release

-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/base.html b/OpenOversight/app/templates/base.html index 56d2cb5a1..3cb5844fe 100644 --- a/OpenOversight/app/templates/base.html +++ b/OpenOversight/app/templates/base.html @@ -58,28 +58,28 @@ - OpenOversight + OpenOversight
diff --git a/OpenOversight/app/templates/browse.html b/OpenOversight/app/templates/browse.html index b2cf376b4..844092522 100644 --- a/OpenOversight/app/templates/browse.html +++ b/OpenOversight/app/templates/browse.html @@ -1,7 +1,11 @@ {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} -{% block title %}Browse OpenOversight{% endblock %} -{% block meta %}{% endblock %} +{% block title %} + Browse OpenOversight +{% endblock title %} +{% block meta %} + +{% endblock meta %} {% block content %}
@@ -43,4 +47,4 @@

{% endfor %}

-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/cop_face.html b/OpenOversight/app/templates/cop_face.html index 4b7d89807..7b98c8c59 100644 --- a/OpenOversight/app/templates/cop_face.html +++ b/OpenOversight/app/templates/cop_face.html @@ -42,7 +42,7 @@

-
{{ form.hidden_tag() }} - -
-
-
-
-
- Explanation: click this button ONLY when all officers in it have been identified. This will remove it from the identification queue for ALL users. -
-
- Explanation: click this button if you would like to move on to the next image, without saving any info about this image. -
-
- Explanation: click this button to open the police roster. Use the roster to find the officer's OpenOversight ID. -
+ {% else %} + + + Next Photo + + {% endif %} +
+ +
+
+
+
+
+ Explanation: click this button ONLY when all officers in it have been identified. This will remove it from the identification queue for ALL users. +
+
+ Explanation: click this button if you would like to move on to the next image, without saving any info about this image. +
+
+ Explanation: click this button to open the police roster. Use the roster to find the officer's OpenOversight ID.
- {% elif current_user.is_disabled == True %} -

Your account has been disabled due to too many incorrect classifications/tags!

-

- Mail us to get it enabled again -

- {% else %} -

All images have been tagged!

-

- {{ department.name }} -

-

- Submit officer pictures to us -

- {% endif %} +
+ {% elif current_user.is_disabled == True %} +

Your account has been disabled due to too many incorrect classifications/tags!

+

+ Mail us to get it enabled again +

+ {% else %} +

All images have been tagged!

+

+ {{ department.name }} +

+

+ Submit officer pictures to us +

{% endif %} -
- {% endblock %} - {% block footer_class %}bottom-10{% endblock %} + {% endif %} +
+{% endblock content %} +{% block footer_class %} + bottom-10 +{% endblock footer_class %} diff --git a/OpenOversight/app/templates/cop_face_disambiguate.html b/OpenOversight/app/templates/cop_face_disambiguate.html index 18fbbb5fe..e5a0926ef 100644 --- a/OpenOversight/app/templates/cop_face_disambiguate.html +++ b/OpenOversight/app/templates/cop_face_disambiguate.html @@ -16,7 +16,7 @@ border: 1px solid #d2d2d2; } -{% endblock %} +{% endblock head %} {% block content %}
{% if current_user and current_user.is_authenticated %} @@ -26,116 +26,114 @@

Multiple officers found

There are multiple officers in the {{ department.name }} with the serial number {{ form.star_no.data }}. Which one did you mean? -

- {% if department %} - - {% else %} - - {% endif %} - {{ form.hidden_tag() }} - {{ form.dataX(type="hidden") }} - {% for error in form.dataX.errors %} -

- [{{ error }}] -

- {% endfor %} - {{ form.dataY(type="hidden") }} - {% for error in form.dataY.errors %} -

- [{{ error }}] -

- {% endfor %} - {{ form.dataWidth(type="hidden") }} - {% for error in form.dataWidth.errors %} -

- [{{ error }}] -

- {% endfor %} - {{ form.dataHeight(type="hidden") }} - {% for error in form.dataHeight.errors %} -

- [{{ error }}] -

- {% endfor %} - {{ form.department_id(type="hidden") }} - {% for error in form.department_id.errors %} -

- [{{ error }}] -

- {% endfor %} - {{ form.star_no(type="hidden") }} - {% for error in form.star_no.errors %} -

- [{{ error }}] -

- {% endfor %} - {{ form.image_id(type="hidden") }} - {% for error in form.image_id.errors %} -

- [{{ error }}] -

+

+
+ + {{ form.hidden_tag() }} + {{ form.dataX(type="hidden") }} + {% for error in form.dataX.errors %} +

+ [{{ error }}] +

+ {% endfor %} + {{ form.dataY(type="hidden") }} + {% for error in form.dataY.errors %} +

+ [{{ error }}] +

+ {% endfor %} + {{ form.dataWidth(type="hidden") }} + {% for error in form.dataWidth.errors %} +

+ [{{ error }}] +

+ {% endfor %} + {{ form.dataHeight(type="hidden") }} + {% for error in form.dataHeight.errors %} +

+ [{{ error }}] +

+ {% endfor %} + {{ form.department_id(type="hidden") }} + {% for error in form.department_id.errors %} +

+ [{{ error }}] +

+ {% endfor %} + {{ form.star_no(type="hidden") }} + {% for error in form.star_no.errors %} +

+ [{{ error }}] +

+ {% endfor %} + {{ form.image_id(type="hidden") }} + {% for error in form.image_id.errors %} +

+ [{{ error }}] +

+ {% endfor %} +
+
+ {% for officer in officers %} + {% endfor %} -
-
- {% for officer in officers %} - - {% endfor %} -
-
- -
- +
+
+
-
-
-
-
- Picture -
+
- {% elif current_user.is_disabled == True %} -

Your account has been disabled due to too many incorrect classifications/tags!

-

- Mail us to get it enabled again -

- {% else %} -

All images have been tagged!

-

- {{ department.name }} -

-

- Submit officer pictures to us -

- {% endif %} - {% endif %} -
- {% endblock %} - {% block footer_class %}bottom-10{% endblock %} +
+ +
+
+ Picture +
+
+ {% elif current_user.is_disabled == True %} +

Your account has been disabled due to too many incorrect classifications/tags!

+

+ Mail us to get it enabled again +

+ {% else %} +

All images have been tagged!

+

+ {{ department.name }} +

+

+ Submit officer pictures to us +

+ {% endif %} + {% endif %} + +{% endblock content %} +{% block footer_class %} + bottom-10 +{% endblock footer_class %} diff --git a/OpenOversight/app/templates/description_new.html b/OpenOversight/app/templates/description_new.html index b7abae46b..73efab899 100644 --- a/OpenOversight/app/templates/description_new.html +++ b/OpenOversight/app/templates/description_new.html @@ -1,4 +1,4 @@ -{% extends 'form.html' %} +{% extends "form.html" %} {% block page_title %} New Description {% endblock page_title %} diff --git a/OpenOversight/app/templates/edit_assignment.html b/OpenOversight/app/templates/edit_assignment.html index 30a9b0f0c..604054b82 100644 --- a/OpenOversight/app/templates/edit_assignment.html +++ b/OpenOversight/app/templates/edit_assignment.html @@ -1,6 +1,8 @@ {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} -{% block title %}OpenOversight Admin - Edit Officer Assignment{% endblock %} +{% block title %} + OpenOversight Admin - Edit Officer Assignment +{% endblock title %} {% block content %}
-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/edit_officer.html b/OpenOversight/app/templates/edit_officer.html index 20c378564..52200e267 100644 --- a/OpenOversight/app/templates/edit_officer.html +++ b/OpenOversight/app/templates/edit_officer.html @@ -1,6 +1,8 @@ {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} -{% block title %}OpenOversight Admin - Edit Officer{% endblock %} +{% block title %} + OpenOversight Admin - Edit Officer +{% endblock title %} {% block content %}
-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/form.html b/OpenOversight/app/templates/form.html index 7aca8880c..5ecc44936 100644 --- a/OpenOversight/app/templates/form.html +++ b/OpenOversight/app/templates/form.html @@ -8,7 +8,8 @@

{% endblock page_title %}

- {% block page_header %}{% endblock %} + {% block page_header %} + {% endblock page_header %}
{% block form %} {{ wtf.quick_form(form, action=post_url, method='post', button_map={'submit':'primary'}) }} diff --git a/OpenOversight/app/templates/image.html b/OpenOversight/app/templates/image.html index 5b1c03898..d19e5979f 100644 --- a/OpenOversight/app/templates/image.html +++ b/OpenOversight/app/templates/image.html @@ -116,5 +116,4 @@

- {% endblock content %} diff --git a/OpenOversight/app/templates/incident_detail.html b/OpenOversight/app/templates/incident_detail.html index 492f1c9ac..cad8fb963 100644 --- a/OpenOversight/app/templates/incident_detail.html +++ b/OpenOversight/app/templates/incident_detail.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends "base.html" %} {% set incident = obj %} {% block title %} {{ incident.department.name }} incident @@ -32,7 +32,7 @@ {% endblock meta %} {% block content %} -
+
All Incidents {% if incident.department %}

@@ -48,10 +48,10 @@

{% if incident.report_number %}{{ incident.report_number }}{% endif %}

- +
{% with detail=True %} - {% include 'partials/incident_fields.html' %} + {% include "partials/incident_fields.html" %} {% endwith %}
@@ -68,16 +68,16 @@

Incident Description

- {% include 'partials/links_and_videos_row.html' %} + {% include "partials/links_and_videos_row.html" %} {% if current_user.is_administrator or (current_user.is_area_coordinator and current_user.ac_department_id == incident.department_id) %} diff --git a/OpenOversight/app/templates/incident_list.html b/OpenOversight/app/templates/incident_list.html index 2b6a5b7a5..eb29661fa 100644 --- a/OpenOversight/app/templates/incident_list.html +++ b/OpenOversight/app/templates/incident_list.html @@ -1,6 +1,8 @@ {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} -{% block title %}View incidents - OpenOversight{% endblock %} +{% block title %} + View incidents - OpenOversight +{% endblock title %} {% block meta %} {% if incidents.items|length > 0 %} {% endif %} -{% endblock %} +{% endblock meta %} {% block content %}

Incidents

@@ -29,12 +31,12 @@
- {% with paginate=incidents, location='top' %} + {% with paginate=incidents, location="top" %} {% include "partials/paginate_nav.html" %} {% endwith %}
    - {% if incidents.items %} - + {% if "incidents.items" %} +
    {% for incident in incidents.items %} {% if not loop.first %} @@ -56,7 +58,7 @@

    - {% include 'partials/incident_fields.html' %} + {% include "partials/incident_fields.html" %} {% endfor %}
    @@ -72,7 +74,7 @@

    Add New Incident {% endif %} - {% with paginate=incidents, location='bottom' %} + {% with paginate=incidents, location="bottom" %} {% include "partials/paginate_nav.html" %} {% endwith %}

@@ -81,4 +83,4 @@

{% endblock content %} {% block js_footer %} -{% endblock %} +{% endblock js_footer %} diff --git a/OpenOversight/app/templates/incident_new.html b/OpenOversight/app/templates/incident_new.html index ed9a2048c..655a52311 100644 --- a/OpenOversight/app/templates/incident_new.html +++ b/OpenOversight/app/templates/incident_new.html @@ -1,4 +1,4 @@ -{% extends 'form.html' %} +{% extends "form.html" %} {% block page_title %} New Incident {% endblock page_title %} diff --git a/OpenOversight/app/templates/index.html b/OpenOversight/app/templates/index.html index b47942de3..36c724250 100644 --- a/OpenOversight/app/templates/index.html +++ b/OpenOversight/app/templates/index.html @@ -16,9 +16,11 @@

Search our public database for available information on officers in your city or to identify an officer with whom you have had a negative interaction.

- Browse officers + Browse officers
- Identify officers + Identify officers

diff --git a/OpenOversight/app/templates/input_find_officer.html b/OpenOversight/app/templates/input_find_officer.html index 899b4b5ba..a1a0821bb 100644 --- a/OpenOversight/app/templates/input_find_officer.html +++ b/OpenOversight/app/templates/input_find_officer.html @@ -1,9 +1,11 @@ {% extends "base.html" %} -{% block title %}Find an officer - OpenOversight{% endblock %} +{% block title %} + Find an officer - OpenOversight +{% endblock title %} {% block meta %} -{% endblock %} +{% endblock meta %} {% block content %}
@@ -259,4 +261,4 @@

-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/label_data.html b/OpenOversight/app/templates/label_data.html index 466150510..2b4765614 100644 --- a/OpenOversight/app/templates/label_data.html +++ b/OpenOversight/app/templates/label_data.html @@ -1,10 +1,12 @@ {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} -{% block title %}Volunteer with OpenOversight{% endblock %} +{% block title %} + Volunteer with OpenOversight +{% endblock title %} {% block meta %} -{% endblock %} +{% endblock meta %} {% block content %} {% if current_user and current_user.is_authenticated %}
@@ -23,7 +25,8 @@

New to working on images for OpenOversight? Or just need a refresher?

- + Leaderboard @@ -97,52 +100,53 @@

How you can help

Sort Images

Sort submitted images into those with and without officers.
-
-

Identify Officers

-
Have a photo containing uniformed officers?
-
-
- -

Contact Us

-
Reach out with any questions, concerns, or ways you'd like to get involved.
-
-

- -
-
-
-
-

- Log In -

-
-
- {{ form.hidden_tag() }} - {{ wtf.form_errors(form, hiddens="only") }} - {{ wtf.form_field(form.email) }} - {{ wtf.form_field(form.password) }} -
- {{ wtf.form_field(form.submit, id="submit", button_map={'submit':'secondary btn-lg'}) }} - {% if error %}{{ error }}{% endif %} +
+ +

Identify Officers

+
Have a photo containing uniformed officers?
- -

- Forgot Password -

+
+ +

Contact Us

+
Reach out with any questions, concerns, or ways you'd like to get involved.
+
+
-
-
-

- Interested in volunteering? -

-
- Sign Up +
+
+
+
+

+ Log In +

+
+
+ {{ form.hidden_tag() }} + {{ wtf.form_errors(form, hiddens="only") }} + {{ wtf.form_field(form.email) }} + {{ wtf.form_field(form.password) }} +
+ {{ wtf.form_field(form.submit, id="submit", button_map={'submit':'secondary btn-lg'}) }} + {% if error %}{{ error }}{% endif %} +
+
+

+ Forgot Password +

+
+
+
+

+ Interested in volunteering? +

+
+ Sign Up +
+
-
-
-{% endif %} -{% endblock %} + {% endif %} +{% endblock content %} diff --git a/OpenOversight/app/templates/leaderboard.html b/OpenOversight/app/templates/leaderboard.html index 9a58d2099..889aedd44 100644 --- a/OpenOversight/app/templates/leaderboard.html +++ b/OpenOversight/app/templates/leaderboard.html @@ -33,4 +33,4 @@

-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/link_new.html b/OpenOversight/app/templates/link_new.html index 66ce7dc47..f0c881016 100644 --- a/OpenOversight/app/templates/link_new.html +++ b/OpenOversight/app/templates/link_new.html @@ -1,4 +1,4 @@ -{% extends 'form.html' %} +{% extends "form.html" %} {% block page_title %} New Link {% endblock page_title %} diff --git a/OpenOversight/app/templates/list.html b/OpenOversight/app/templates/list.html index 2621baed9..aed88d2a3 100644 --- a/OpenOversight/app/templates/list.html +++ b/OpenOversight/app/templates/list.html @@ -1,12 +1,12 @@ {% extends "base.html" %} {% block content %}
- {% with paginate=objects, next_url=url_for(url, page=objects.next_num), prev_url=url_for(url, page=objects.prev_num), location='top' %} + {% with paginate=objects, next_url=url_for(url, page=objects.next_num), prev_url=url_for(url, page=objects.prev_num), location="top" %} {% include "partials/paginate_nav.html" %} {% endwith %} {% block list %} {% endblock list %} - {% with paginate=objects, next_url=url_for(url, page=objects.next_num), prev_url=url_for(url, page=objects.prev_num), location='bottom' %} + {% with paginate=objects, next_url=url_for(url, page=objects.next_num), prev_url=url_for(url, page=objects.prev_num), location="bottom" %} {% include "partials/paginate_nav.html" %} {% endwith %}
diff --git a/OpenOversight/app/templates/note_new.html b/OpenOversight/app/templates/note_new.html index 1e88a63bf..881c103f9 100644 --- a/OpenOversight/app/templates/note_new.html +++ b/OpenOversight/app/templates/note_new.html @@ -1,4 +1,4 @@ -{% extends 'form.html' %} +{% extends "form.html" %} {% block page_title %} New Note {% endblock page_title %} diff --git a/OpenOversight/app/templates/officer.html b/OpenOversight/app/templates/officer.html index 90a3dea36..5c5eb4c40 100644 --- a/OpenOversight/app/templates/officer.html +++ b/OpenOversight/app/templates/officer.html @@ -1,5 +1,7 @@ {% extends "base.html" %} -{% block title %}{{ officer.full_name() }} - OpenOversight{% endblock %} +{% block title %} + {{ officer.full_name() }} - OpenOversight +{% endblock title %} {% block meta %} {% set job_title = officer.job_title() if officer.job_title() and officer.job_title() != 'Not Sure' else 'Employee' %} {% set description = 'See detailed information about ' ~ officer.full_name() ~ ', ' ~ job_title ~ ' of the ' ~ officer.department.name ~ '.' %} @@ -81,7 +83,7 @@ }] } -{% endblock %} +{% endblock meta %} {% block content %} {% set is_admin_or_coordinator = current_user.is_administrator or (current_user.is_area_coordinator and current_user.ac_department_id == officer.department_id) %}
@@ -119,7 +121,7 @@

{% endif %}

{# end col #} -
+
{% if officer.salaries or is_admin_or_coordinator %} {% include "partials/officer_salary.html" %} {% endif %} @@ -134,5 +136,4 @@

{# end row #}
- {# end container #} -{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/partials/incident_form.html b/OpenOversight/app/templates/partials/incident_form.html index 07643cae3..bf9300c9b 100644 --- a/OpenOversight/app/templates/partials/incident_form.html +++ b/OpenOversight/app/templates/partials/incident_form.html @@ -1,7 +1,7 @@ {% import "bootstrap/wtf.html" as wtf %}
{{ form.hidden_tag() }} -
{{ wtf.form_errors(form, hiddens="only") }}
+
{{ wtf.form_errors(form, hiddens="only") }}
{{ wtf.form_field(form.date_field, autofocus="autofocus") }} {{ wtf.form_field(form.time_field) }} {{ wtf.form_field(form.report_number) }} diff --git a/OpenOversight/app/templates/partials/links_and_videos_row.html b/OpenOversight/app/templates/partials/links_and_videos_row.html index 242af7d8a..f1adb2414 100644 --- a/OpenOversight/app/templates/partials/links_and_videos_row.html +++ b/OpenOversight/app/templates/partials/links_and_videos_row.html @@ -35,7 +35,7 @@

Links

New Link/Video {% endif %} - {% for type, list in obj.links|groupby("link_type") %} + {% for type, list in obj.links | groupby("link_type") %} {% if type == "video" %}

Videos

diff --git a/OpenOversight/app/templates/privacy.html b/OpenOversight/app/templates/privacy.html index 674478632..2ab540bad 100644 --- a/OpenOversight/app/templates/privacy.html +++ b/OpenOversight/app/templates/privacy.html @@ -1,9 +1,11 @@ {% extends "base.html" %} -{% block title %}Privacy Policy - OpenOversight{% endblock %} +{% block title %} + Privacy Policy - OpenOversight +{% endblock title %} {% block meta %} -{% endblock %} +{% endblock meta %} {% block content %}
@@ -26,7 +28,8 @@

Logs and Security

OpenOversight is hosted on its own subdomain and web server, it will be possible for employers, ISPs, or anyone performing network-level traffic analysis to identify that you have visited OpenOversight. The Lucy Parsons Labs does not maintain network logs on our web servers. We have explicitly disabled - nginx from maintaining access or error logs, an example configuration can be found here. We also do not block incoming connections from any regions or IP block, so we welcome traffic from any anonymity network such as Tor.

@@ -38,8 +41,11 @@

What Is Collected

hosted by Lucy Parsons Labs and is outside of this Privacy Policy. The Submission Form does not require you to provide a name and we will not reject any submissions without names. Please note that Google and other third parties might collect your IPs and other identifying information. Google's Privacy Policy - can be found here and Google - Drive's Terms of Service may be found here and Google + Drive's Terms of Service may be found here.

@@ -50,7 +56,9 @@

Legal Action

A note to Illinois law enforcement: This project does not perform facial recognition and is thus in compliance with the Biometric Information Privacy Act. Requests or questions regarding this project - from those affiliated with law enforcement must be directed to our legal representation. You may also review our Warrant Canary. + from those affiliated with law enforcement must be directed to our legal representation. You may also review our Warrant Canary.

@@ -64,4 +72,4 @@

Future Changes

-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/profile.html b/OpenOversight/app/templates/profile.html index f9506f594..23782b993 100644 --- a/OpenOversight/app/templates/profile.html +++ b/OpenOversight/app/templates/profile.html @@ -121,4 +121,4 @@

Officer Identifications

{% endif %} -{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/sort.html b/OpenOversight/app/templates/sort.html index fa34e4cdc..96e7b8f38 100644 --- a/OpenOversight/app/templates/sort.html +++ b/OpenOversight/app/templates/sort.html @@ -1,5 +1,7 @@ {% extends "base.html" %} -{% block head %}{% endblock %} +{% block head %} + +{% endblock head %} {% block js_footer %} -{% endblock %} +{% endblock js_footer %} {% block content %}
{% if current_user and current_user.is_authenticated %} @@ -92,4 +94,4 @@

All images have been classfied!

{% endif %} {% endif %}
-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/submit_image.html b/OpenOversight/app/templates/submit_image.html index 0c8a58eb7..11d47886e 100644 --- a/OpenOversight/app/templates/submit_image.html +++ b/OpenOversight/app/templates/submit_image.html @@ -1,16 +1,18 @@ {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %}¬ -{% block title %}Submit images to OpenOversight{% endblock %} +{% block title %} + Submit images to OpenOversight +{% endblock title %} {% block meta %} -{% endblock %} +{% endblock meta %} {% block head %} -{% endblock %} +{% endblock head %} {% block content %}

Drop images here to submit photos of officers:

-
+

Drag photographs from your computer directly into the box above or click the box to launch a finder window. @@ -91,4 +95,4 @@

High Security Submissions

init_dropzone("#my-cop-dropzone", getURL, csrf_token);
-{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/submit_officer_image.html b/OpenOversight/app/templates/submit_officer_image.html index 634360354..67785418c 100644 --- a/OpenOversight/app/templates/submit_officer_image.html +++ b/OpenOversight/app/templates/submit_officer_image.html @@ -4,7 +4,7 @@ rel="stylesheet"> -{% endblock %} +{% endblock head %} {% block content %}
-{% endblock %} +{% endblock content %} {% block js_footer %} -{% endblock %} +{% endblock js_footer %} diff --git a/OpenOversight/app/templates/tag.html b/OpenOversight/app/templates/tag.html index ac06329c6..76f9f9e51 100644 --- a/OpenOversight/app/templates/tag.html +++ b/OpenOversight/app/templates/tag.html @@ -124,7 +124,7 @@

- +

@@ -135,12 +135,12 @@

- -

- {% endif %} +

+ {% endif %} +

{% endif %} -{% endblock %} +{% endblock content %} diff --git a/OpenOversight/app/templates/tutorial.html b/OpenOversight/app/templates/tutorial.html index 47ad5715a..673ef0920 100644 --- a/OpenOversight/app/templates/tutorial.html +++ b/OpenOversight/app/templates/tutorial.html @@ -1,9 +1,11 @@ {% extends "base.html" %} -{% block title %}Tutorial - OpenOversight{% endblock %} +{% block title %} + Tutorial - OpenOversight +{% endblock title %} {% block meta %} -{% endblock %} +{% endblock meta %} {% block content %}
@@ -113,4 +115,4 @@

Ready to get started?

-{% endblock %} +{% endblock content %}