diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-21 18:03:33 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-21 18:03:33 +0100 |
commit | 1716ed47bac01e8c6dce2217948ec770ceeaa5e5 (patch) | |
tree | cac251b01150930f94a3a207febdcdb401bf2f49 /ishtar_common/templates | |
parent | e5c56a7060c8962e167d24eba0ec7b19b36c4af6 (diff) | |
download | Ishtar-1716ed47bac01e8c6dce2217948ec770ceeaa5e5.tar.bz2 Ishtar-1716ed47bac01e8c6dce2217948ec770ceeaa5e5.zip |
Syndication: better colors for external sources
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/blocks/DataTables-external-sources.html | 4 | ||||
-rw-r--r-- | ishtar_common/templates/blocks/DataTables.html | 6 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_nav.html | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/ishtar_common/templates/blocks/DataTables-external-sources.html b/ishtar_common/templates/blocks/DataTables-external-sources.html index 00cc7cf2c..c72918d84 100644 --- a/ishtar_common/templates/blocks/DataTables-external-sources.html +++ b/ishtar_common/templates/blocks/DataTables-external-sources.html @@ -1,8 +1,8 @@ {% load i18n %} <div class="d-flex justify-content-center"> - <div class="btn-group btn-group-toggle" data-toggle="buttons"> - <label id="source_button_default" class="btn btn-secondary active"> + <div class="external-sources btn-group btn-group-toggle" data-toggle="buttons"> + <label id="source_button_default" class="btn btn-success"> <input type="radio" name="_sources" autocomplete="off" checked> {% trans "Local" %} <span class="badge badge-light" id="source_badge_default">-</span> </label> diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html index a4b34cd04..9f0ab04ca 100644 --- a/ishtar_common/templates/blocks/DataTables.html +++ b/ishtar_common/templates/blocks/DataTables.html @@ -182,6 +182,9 @@ jQuery(document).ready(function(){ $(".sources-default").show(); redraw_plots("{{name}}", "default"); if (current_tab == "map") map_submit_search(); + $(this).parent().children().removeClass("btn-success").addClass("btn-secondary"); + $(this).removeClass("active").removeClass("btn-secondary").addClass("btn-success"); + return false; } ); {% for source_id, source_label, source_url in external_sources %} @@ -192,6 +195,9 @@ jQuery(document).ready(function(){ $(".sources-{{source_id}}").show(); redraw_plots("{{name}}", "{{source_id}}"); if (current_tab == "map") map_submit_search(); + $(this).parent().children().removeClass("btn-success").addClass("btn-secondary"); + $(this).removeClass("active").removeClass("btn-secondary").addClass("btn-success"); + return false; } ); {% endfor %} diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index f77673663..c1d96acde 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -115,5 +115,5 @@ $(document).ready(function(){ }); </script> {% else %} -<h3><i class="fa fa-globe" aria-hidden="true"></i> {{item.current_source}}</h3> +<h3 class="external-source"><i class="fa fa-globe" aria-hidden="true"></i> {{item.current_source}}</h3> {% endif %}
\ No newline at end of file |