Skip to content

Commit 9d41657

Browse files
committed
chg: [module extractor] add link to tracker
1 parent 5e10bfc commit 9d41657

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

var/www/templates/chats_explorer/ChatMessage.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,13 @@ <h5>
175175
</svg>
176176
{{ meta['extracted_matches'][match]['subtype'] }}
177177
</td>
178-
<td>{{ meta['extracted_matches'][match]['id'] }}</td>
178+
<td>
179+
{% if meta['extracted_matches'][match]['subtype'] == 'tracker' %}
180+
<a href="{{ url_for('hunters.show_tracker') }}?uuid={{ meta['extracted_matches'][match]['id'] }}">{{ meta['extracted_matches'][match]['id'] }}</a>
181+
{% else %}
182+
{{ meta['extracted_matches'][match]['id'] }}
183+
{% endif %}
184+
</td>
179185
<td>
180186
{% for row in meta['extracted_matches'][match]['matches'] %}
181187
<a href="#{{ row[0] }}:{{row[1] }}">{{ row[2] }}</a><br>

var/www/templates/objects/item/show_item.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,13 @@ <h5>
491491
</svg>
492492
{{ extracted_matches[match]['subtype'] }}
493493
</td>
494-
<td>{{ extracted_matches[match]['id'] }}</td>
494+
<td>
495+
{% if extracted_matches[match]['subtype'] == 'tracker' %}
496+
<a href="{{ url_for('hunters.show_tracker') }}?uuid={{ extracted_matches[match]['id'] }}">{{ extracted_matches[match]['id'] }}</a>
497+
{% else %}
498+
{{ extracted_matches[match]['id'] }}
499+
{% endif %}
500+
</td>
495501
<td>
496502
{% for row in extracted_matches[match]['matches'] %}
497503
<a href="#{{ row[0] }}:{{row[1] }}">{{ row[2] }}</a><br>

0 commit comments

Comments
 (0)