fix: Normalize buttons colour (tree/popup)

Fix #115
pull/135/head
Raphaël Vinot 2020-11-30 20:26:50 +01:00
parent c1781ea88a
commit 4e69aa203f
6 changed files with 12 additions and 12 deletions

View File

@ -31,7 +31,7 @@
{% block content %} {% block content %}
<center> <center>
<h4>{{ body_hash }}</h4> <h4>{{ body_hash }}</h4>
<button onclick="window.history.back();" class="btn btn-primary" type="button">Go Back</button> <button onclick="window.history.back();" class="btn btn-info" type="button">Go Back</button>
</center> </center>
<div class="table-responsive"> <div class="table-responsive">
<table id="table" class="table" style="width:96%"> <table id="table" class="table" style="width:96%">

View File

@ -95,7 +95,7 @@
{% endfor%} {% endfor%}
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<center> <center>
<button type="submit" class="btn btn-primary" id="btn-looking">Start looking!</button> <button type="submit" class="btn btn-info" id="btn-looking">Start looking!</button>
<div id="long" style="display:none">Please wait, it can take a while on big websites...</div> <div id="long" style="display:none">Please wait, it can take a while on big websites...</div>
<div id="too-long" style="display:none">... No, really, I mean it.</div> <div id="too-long" style="display:none">... No, really, I mean it.</div>
<div id="way-too-long" style="display:none">Told ya!</div> <div id="way-too-long" style="display:none">Told ya!</div>

View File

@ -31,7 +31,7 @@
{% block content %} {% block content %}
<center> <center>
<h2>{{ cookie_name }}</h2> <h2>{{ cookie_name }}</h2>
<button onclick="window.history.back();" class="btn btn-primary" type="button">Go Back</button> <button onclick="window.history.back();" class="btn btn-info" type="button">Go Back</button>
</center> </center>
<div class="table-responsive"> <div class="table-responsive">
<table id="table" class="table" style="width:96%"> <table id="table" class="table" style="width:96%">

View File

@ -133,7 +133,7 @@
{% if url['cookies_sent'] %} {% if url['cookies_sent'] %}
<div> <div>
<p class="h5">This request contains cookies. <p class="h5">This request contains cookies.
<button class="btn btn-primary collapsed" type="button" data-toggle="collapse" data-target="#request_cookies_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample"> <button class="btn btn-info collapsed" type="button" data-toggle="collapse" data-target="#request_cookies_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample">
<span class="if-collapsed">Show cookies sent.</span> <span class="if-collapsed">Show cookies sent.</span>
<span class="if-not-collapsed">Hide cookies sent.</span> <span class="if-not-collapsed">Hide cookies sent.</span>
</button> </button>
@ -200,7 +200,7 @@
{% if url['embedded_ressources'] %} {% if url['embedded_ressources'] %}
{# Details on embedded resources #} {# Details on embedded resources #}
<div><b>This response contains embedded ressources</b> <div><b>This response contains embedded ressources</b>
<button class="btn btn-primary collapsed" type="button" data-toggle="collapse" data-target="#embedded_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample"> <button class="btn btn-info collapsed" type="button" data-toggle="collapse" data-target="#embedded_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample">
<span class="if-collapsed">Show embedded resources.</span> <span class="if-collapsed">Show embedded resources.</span>
<span class="if-not-collapsed">Hide embedded resources.</span> <span class="if-not-collapsed">Hide embedded resources.</span>
</button> </button>
@ -236,7 +236,7 @@
{% if url['cookies_received'] %} {% if url['cookies_received'] %}
<div> <div>
<p class="h5">This response contains cookies. <p class="h5">This response contains cookies.
<button class="btn btn-primary collapsed" type="button" data-toggle="collapse" data-target="#response_cookies_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample"> <button class="btn btn-info collapsed" type="button" data-toggle="collapse" data-target="#response_cookies_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample">
<span class="if-collapsed">Show cookies received.</span> <span class="if-collapsed">Show cookies received.</span>
<span class="if-not-collapsed">Hide cookies received.</span> <span class="if-not-collapsed">Hide cookies received.</span>
</button> </button>

View File

@ -32,7 +32,7 @@
</td> </td>
<td>{{ mt }}</td> <td>{{ mt }}</td>
<td> <td>
<button type="button" class="btn btn-link {% if add_category %}categorize_capture{% else %}uncategorize_capture{% endif %}" value="{{ mt }}"> <button type="button" class="btn btn-info {% if add_category %}categorize_capture{% else %}uncategorize_capture{% endif %}" value="{{ mt }}">
{% if add_category %} {% if add_category %}
Categorize capture. Categorize capture.
{% else %} {% else %}
@ -75,7 +75,7 @@
{% endmacro %} {% endmacro %}
{% macro context_form(tree_uuid, urlnode_uuid, hostnode_uuid, hash, callback_str) %} {% macro context_form(tree_uuid, urlnode_uuid, hostnode_uuid, hash, callback_str) %}
<button class="btn btn-primary collapsed" type="button" data-toggle="collapse" data-target="#context_response_{{ urlnode_uuid }}" aria-expanded="false" aria-controls="collapseContextForm"> <button class="btn btn-info collapsed" type="button" data-toggle="collapse" data-target="#context_response_{{ urlnode_uuid }}" aria-expanded="false" aria-controls="collapseContextForm">
<span class="if-collapsed">Add context</span> <span class="if-collapsed">Add context</span>
<span class="if-not-collapsed">Hide context form</span> <span class="if-not-collapsed">Hide context form</span>
</button> </button>
@ -113,7 +113,7 @@
<input type="hidden" id="hash_to_contextualize" name="hash_to_contextualize" value="{{ hash }}"> <input type="hidden" id="hash_to_contextualize" name="hash_to_contextualize" value="{{ hash }}">
<input type="hidden" id="hostnode_uuid" name="hostnode_uuid" value="{{ hostnode_uuid }}"> <input type="hidden" id="hostnode_uuid" name="hostnode_uuid" value="{{ hostnode_uuid }}">
<input type="hidden" id="callback_str" name="callback_str" value="{{ callback_str }}"> <input type="hidden" id="callback_str" name="callback_str" value="{{ callback_str }}">
<button type="submit" class="btn btn-primary" id="btn-looking">Submit context</button> <button type="submit" class="btn btn-info" id="btn-looking">Submit context</button>
</form> </form>
</div> </div>
</div> </div>
@ -121,7 +121,7 @@
{% macro get_ressource_button(capture_uuid, urlnode_uuid, hash, text) %} {% macro get_ressource_button(capture_uuid, urlnode_uuid, hash, text) %}
<form method="post" action="{{ url_for('get_ressource', tree_uuid=capture_uuid, node_uuid=urlnode_uuid) }}"> <form method="post" action="{{ url_for('get_ressource', tree_uuid=capture_uuid, node_uuid=urlnode_uuid) }}">
<button class="btn btn-primary" name="ressource_hash" value="{{ hash }}">{{ text }}</button> <button class="btn btn-info" name="ressource_hash" value="{{ hash }}">{{ text }}</button>
</form> </form>
{% endmacro %} {% endmacro %}
@ -159,7 +159,7 @@ Body size: {{ sizeof_fmt(ressource_size) }}
{% if total_captures > 0 %} {% if total_captures > 0 %}
<p> <p>
The same file was seen in <b>{{ total_captures }}</b> other captures. The same file was seen in <b>{{ total_captures }}</b> other captures.
<button class="btn btn-primary collapsed" type="button" data-toggle="collapse" data-target="#captureslist_{{ identifier_for_toggle }}" aria-expanded="false" aria-controls="collapseExample"> <button class="btn btn-info collapsed" type="button" data-toggle="collapse" data-target="#captureslist_{{ identifier_for_toggle }}" aria-expanded="false" aria-controls="collapseExample">
<span class="if-collapsed">Show other captures</span> <span class="if-collapsed">Show other captures</span>
<span class="if-not-collapsed">Hide other captures</span> <span class="if-not-collapsed">Hide other captures</span>
</button> </button>

View File

@ -293,7 +293,7 @@
<div class="modal-body"> <div class="modal-body">
<center> <center>
{% if blur_screenshot %} {% if blur_screenshot %}
<button type="button" class="btn btn-primary" onclick="$('#screenshot').removeClass('blur')"> Unblur screenshot</button> <button type="button" class="btn btn-info" onclick="$('#screenshot').removeClass('blur')"> Unblur screenshot</button>
</br> </br>
</hr> </hr>
</br> </br>