-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
612 Introduced RECAP Search Alerts sweep index #4127
Changes from all commits
3e4f269
53b3b65
2955b0b
9307b77
9b4e1c1
8b537f0
c1232ec
3e96f61
51c7bb6
7fc3298
b5016ba
4a128bf
3a4a456
add980a
a20113f
ebf269d
bffee6d
847f0fd
4b324c9
0d63080
5b3d130
5077e01
9dffbfd
a4e4e62
49dd480
a468336
38d6884
b56f235
d102664
7977b80
57b6df7
b35ef0a
8902aa0
d0b1298
d8c4db2
4babf5d
a0085cc
5f12c30
5fb177f
78955f1
da72292
0b62dca
3b153d2
debd256
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ <h1 class="bottom" style="font-size: 3em; font-weight: normal; line-height: 1; | |
{% for result in results %} | ||
{% if forloop.first %} | ||
<h2 style="font-size: 2em; font-weight: normal; font-family: inherit; color: #111; border: 0; vertical-align: baseline; font-style: inherit; margin: 0; padding: 0;" class="alt bottom"> | ||
Your {{alert.get_rate_display|lower}} {% if type == 'o' %}opinion{% elif type == 'oa' %}oral argument{% endif %} alert — {{alert.name}} — had {{num_results}}{% if num_results >= hits_limit %}+{% endif %} hit{{results|pluralize}}: | ||
Your {{alert.get_rate_display|lower}} {% if type == 'o' %}opinion{% elif type == 'oa' %}oral argument{% elif type == 'r' %}RECAP{% endif %} alert — {{alert.name}} — had {{num_results}}{% if num_results >= hits_limit %}+{% endif %} hit{{results|pluralize}}: | ||
</h2> | ||
<p style="font-size: 100%; font-weight: inherit; font-family: inherit; border: 0; vertical-align: baseline; font-style: inherit; margin: 0 0 1.5em; padding: 0;"> | ||
<a href="https://www.courtlistener.com/?{{ alert.query_run|safe }}&edit_alert={{ alert.pk }}">View Full Results / Edit this Alert</a><br> | ||
|
@@ -34,28 +34,66 @@ <h2 style="font-size: 2em; font-weight: normal; font-family: inherit; color: #11 | |
{% endif %} | ||
|
||
<h3 class="alt bottom" style="font-size: 1.5em; font-weight: normal; line-height: 1; font-family: 'Warnock Pro', 'Goudy Old Style','Palatino','Book Antiqua', Georgia, serif; color: #666; border: 0; vertical-align: baseline; font-style: italic; margin: 0; padding: 0;"> | ||
<a href="https://www.courtlistener.com{{result.absolute_url}}" style="font-size: 100%; font-weight: inherit; font-family: inherit; color: #009; border: 0; font-style: inherit; padding: 0; text-decoration: none; vertical-align: baseline; margin: 0;"> | ||
<a href="https://www.courtlistener.com{% if type == 'r' %}{{result.docket_absolute_url}}{% else %}{{result.absolute_url}}{% endif %}" style="font-size: 100%; font-weight: inherit; font-family: inherit; color: #009; border: 0; font-style: inherit; padding: 0; text-decoration: none; vertical-align: baseline; margin: 0;"> | ||
{{ forloop.counter }}. {{ result|get_highlight:"caseName"|safe }} | ||
({% if result.court_id != 'scotus' %}{{ result|get_highlight:"court_citation_string"|nbsp|safe }} {% endif %}{% if type == 'o' %}{{ result.dateFiled|date:"Y" }}{% elif type == 'oa' %}{{ result.dateArgued|date:"Y" }}{% endif %}) | ||
({% if result.court_id != 'scotus' %}{{ result|get_highlight:"court_citation_string"|nbsp|safe }} {% endif %}{% if type == 'o' or type == 'r' %}{{ result.dateFiled|date:"Y" }}{% elif type == 'oa' %}{{ result.dateArgued|date:"Y" }}{% endif %}) | ||
</a> | ||
</h3> | ||
<p style="font-size: 100%; font-weight: inherit; font-family: inherit; border: 0; vertical-align: baseline; font-style: inherit; margin: 0; padding: 0;"> | ||
<strong style="font-weight: bold;"> | ||
View original: | ||
</strong> | ||
{% if result.download_url %} | ||
<a href="{{result.download_url}}" style="font-size: 100%; font-weight: inherit; font-family: inherit; color: #009; border: 0; font-style: inherit; padding: 0; text-decoration: none; vertical-align: baseline; margin: 0;"> | ||
From the court | ||
{% if type == 'r' %} | ||
{% if result.docketNumber %} | ||
<strong style="font-weight: bold;">Docket Number: </strong> | ||
{{ result|get_highlight:"docketNumber"|safe }} | ||
{% endif %} | ||
<br> | ||
<strong style="font-weight: bold;">Date Filed: </strong> | ||
{% if result.dateFiled %} | ||
{{ result.dateFiled|date:"F jS, Y" }} | ||
{% else %} | ||
Unknown Date | ||
{% endif %} | ||
<ul> | ||
{% for doc in result.child_docs %} | ||
{% with doc=doc|get_es_doc_content:scheduled_alert %} | ||
<li> | ||
<a href="https://www.courtlistener.com{% if doc.absolute_url %}{{ doc.absolute_url }}{% else %}{{ result.docket_absolute_url }}#minute-entry-{{ doc.docket_entry_id }}{% endif %}" class="visitable">{% if doc.short_description %}{{ doc.short_description|render_string_or_list|safe }}<span class="gray"> — </span>{% endif %}Document #{% if doc.document_number %}{{ doc.document_number }}{% endif %}{% if doc.attachment_number %}, Attachment #{{ doc.attachment_number }}{% endif %} | ||
</a> | ||
{% if doc.description %} | ||
<span style="display: block; margin-top: 5px;">Description: {{ doc.description|render_string_or_list|safe }}</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe' filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability. Ignore this finding from template-unescaped-with-safe. |
||
{% endif %} | ||
{% if doc.plain_text %} | ||
{% contains_highlights doc.plain_text.0 True as highlighted %} | ||
<span style="display: block; margin-top: 5px;">{% if highlighted %}… {% endif %}{{ doc.plain_text|render_string_or_list|safe|underscore_to_space }} …</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe' filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability. Ignore this finding from template-unescaped-with-safe. |
||
{% endif %} | ||
</li> | ||
{% endwith %} | ||
{% endfor %} | ||
</ul> | ||
{% if result.child_docs and result.child_remaining %} | ||
{% extract_q_value alert.query_run as q_value %} | ||
<a href="https://www.courtlistener.com/?type={{ type|urlencode }}&q={% if q_value %}({{ q_value|urlencode }})%20AND%20{% endif %}docket_id%3A{{ result.docket_id|urlencode }}"> | ||
<strong>View Additional Results for this Case</strong> | ||
</a> | ||
<br> | ||
{% endif %} | ||
{% else %} | ||
<p style="font-size: 100%; font-weight: inherit; font-family: inherit; border: 0; vertical-align: baseline; font-style: inherit; margin: 0; padding: 0;"> | ||
<strong style="font-weight: bold;"> | ||
View original: | ||
</strong> | ||
{% if result.download_url %} | ||
<a href="{{result.download_url}}" style="font-size: 100%; font-weight: inherit; font-family: inherit; color: #009; border: 0; font-style: inherit; padding: 0; text-decoration: none; vertical-align: baseline; margin: 0;"> | ||
From the court | ||
</a> | ||
| | ||
{% endif %} | ||
{% if result.local_path %} | ||
{# Provide link to S3. #} | ||
<a href="https://storage.courtlistener.com/{{result.local_path}}" style="font-size: 100%; font-weight: inherit; font-family: inherit; color: #009; border: 0; font-style: inherit; padding: 0; text-decoration: none; vertical-align: baseline; margin: 0;"> | ||
Our backup | ||
</a> | ||
| | ||
{% endif %} | ||
{% if result.local_path %} | ||
{# Provide link to S3. #} | ||
<a href="https://storage.courtlistener.com/{{result.local_path}}" style="font-size: 100%; font-weight: inherit; font-family: inherit; color: #009; border: 0; font-style: inherit; padding: 0; text-decoration: none; vertical-align: baseline; margin: 0;"> | ||
Our backup | ||
</a> | ||
</p> | ||
{% endif %} | ||
</p> | ||
{% if type == 'oa' %} | ||
<p style="font-size: 100%; font-weight: inherit; font-family: inherit; border: 0; vertical-align: baseline; font-style: inherit; margin: 0 0 0; padding: 0;"> | ||
<strong style="font-weight: bold;">Date Argued: </strong> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe' filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability.
Ignore this finding from template-unescaped-with-safe.