chg: Rename legitimate -> known in the interface

Related to #118
pull/135/head
Raphaël Vinot 2020-11-29 23:38:09 +01:00
parent ac919356d7
commit 55ef3ed04d
2 changed files with 4 additions and 4 deletions

View File

@ -160,7 +160,7 @@ function UnbookmarkAllNodes() {
.on('mouseout', (event, d) => d3.select('#tooltip').style('opacity', 0));
};
function MarkAsLegitimate(capture_uuid, hostnode_uuid=null, urlnode_uuid=null) {
function MarkAsKnown(capture_uuid, hostnode_uuid=null, urlnode_uuid=null) {
let data = {};
if (hostnode_uuid != null) { data['hostnode_uuid'] = hostnode_uuid; };
if (urlnode_uuid != null) { data['urlnode_uuid'] = urlnode_uuid; };
@ -545,7 +545,7 @@ function update(root, computed_node_width=0) {
.style('opacity', 1)
.style('left', `${event.pageX + 10}px`)
.style('top', `${event.pageY + 10}px`)
.text('This node has only legitimate content');
.text('This node has only known content');
})
.on('mouseout', (event, d) => d3.select('#tooltip').style('opacity', 0));
} else if (d.data.all_empty) {

View File

@ -134,7 +134,7 @@
</li>
{% if enable_context_by_users %}
<li>
<a href="#/" role="button" onclick="MarkAsLegitimate('{{ tree_uuid }}');">Mark capture as legitimate</a>
<a href="#/" role="button" onclick="MarkAsKnown('{{ tree_uuid }}');">Mark all the captures' entries as known</a>
</li>
{% endif %}
{% if enable_mail_notification %}
@ -161,7 +161,7 @@
</center>
<hr/>
<img src="{{ url_for('static', filename='check.svg') }}"
alt="Legitimate Node" height="20" width="20"> Legit node<br>
alt="Known Node" height="20" width="20"> Known node<br>
<img src="{{ url_for('static', filename='bomb.svg') }}"
alt="Malicious Node" height="20" width="20"> Malicious node<br>