mirror of https://github.com/CIRCL/lookyloo
fix: Submit file to pandora
parent
44e69a44b4
commit
cd0411f419
|
@ -215,7 +215,7 @@
|
|||
<div>
|
||||
{% if has_pandora %}
|
||||
<div> Downloaded file: <b>{{url['url_object'].downloaded_filename}}</b> ({{sizeof_fmt(url['url_object'].downloaded_file.getbuffer().nbytes)}})</div>
|
||||
{{ pandora_submit() }}
|
||||
{{ pandora_submit(tree_uuid, url['url_object'].uuid) }}
|
||||
{% else %}
|
||||
<a href="{{ url_for('data', tree_uuid=tree_uuid)}}">
|
||||
Download {{url['url_object'].downloaded_filename}}
|
||||
|
@ -242,7 +242,7 @@
|
|||
{% else %}
|
||||
{{ ressource_legitimacy_details(url['legitimacy'], url['url_object'].body.getbuffer().nbytes) }}
|
||||
{% if has_pandora %}
|
||||
{{ pandora_submit(url['url_object'].uuid) }}
|
||||
{{ pandora_submit(tree_uuid, url['url_object'].uuid) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -303,7 +303,7 @@
|
|||
{{ ressource_legitimacy_details(details['legitimacy'], details['body_size']) }}
|
||||
</div>
|
||||
{% if has_pandora %}
|
||||
{{ pandora_submit(url['url_object'].uuid, hash) }}
|
||||
{{ pandora_submit(tree_uuid, url['url_object'].uuid), hash }}
|
||||
{% endif %}
|
||||
<div>
|
||||
This file {% if details['type'] %}(<b>{{ details['type'] }}</b>){% endif %} can be found <b>{{ details['hash_freq'] }}</b> times
|
||||
|
|
|
@ -315,7 +315,7 @@
|
|||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro pandora_submit(node_uuid, ressource_hash) %}
|
||||
{% macro pandora_submit(tree_uuid, node_uuid, ressource_hash) %}
|
||||
<div class="col-sm-8">
|
||||
<button type="button" class="btn btn-primary btn-sm submitPandoraButton"
|
||||
title="open a new tab with the pandora report"
|
||||
|
|
Loading…
Reference in New Issue