From 5cc9843257edf8c959143880afb31360f1a62700 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat <thierry.parmentelat@inria.fr> Date: Sat, 5 Oct 2013 07:40:17 +0200 Subject: [PATCH] reinstate icons for toggling plugins, that had gotten lost in the bootstrap 3 turmoil --- unfold/collectstatic.py | 1 + unfold/templates/plugin.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/unfold/collectstatic.py b/unfold/collectstatic.py index b40afe4f..0c6a1d2c 100644 --- a/unfold/collectstatic.py +++ b/unfold/collectstatic.py @@ -53,6 +53,7 @@ class ThirdPartyFinder(BaseFinder): 'js' : ('.js',), 'css': ('.css',), 'img': ('.png', '.ico',), + 'fonts' : ('.svg', '.eot', '.ttf', '.woff'), } def find(self, search_path, all=False): diff --git a/unfold/templates/plugin.html b/unfold/templates/plugin.html index 09509d7d..354b5608 100644 --- a/unfold/templates/plugin.html +++ b/unfold/templates/plugin.html @@ -1,9 +1,11 @@ {% if visible %} <div id='complete-{{ domid }}' class='{% if need_toggle %}plugin-toggle{% endif %}{% if need_spin %} need-spin{% endif %}{% if persistent_toggle %} persistent-toggle{% endif %}{% if outline_complete %} plugin-outline-complete{% endif %}'> {% if togglable %} -<h4 id='show-{{ domid }}' class='plugin-show'{% if not display_show_button %} style='display:none;'{% endif %}><i class="icon-hand-right"></i> +<h4 id='show-{{ domid }}' class='plugin-show'{% if not display_show_button %} style='display:none;'{% endif %}> +<span class="glyphicon glyphicon-chevron-right"></span> <a href='#' class='plugin-tooltip' data-toggle='tooltip' data-original-title='Show plugin "{{ title }}" ({{ classname }})'>{{ title }}</a></h4> -<h4 id='hide-{{ domid }}' class='plugin-hide'{% if not display_hide_button %} style='display:none;'{% endif %}><i class="icon-hand-down"></i> +<h4 id='hide-{{ domid }}' class='plugin-hide'{% if not display_hide_button %} style='display:none;'{% endif %}> +<span class="glyphicon glyphicon-chevron-down"></span> {% if title %} <a href='#' class='plugin-tooltip' data-toggle='tooltip' data-original-title='Hide plugin "{{ title }}" ({{ classname }})'>{{ title }}</a></h4> {% endif %} -- 2.47.0