mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] make /preferences more CSP compliant - simple & oscar theme
In simple & oscar theme remove ``style=`` properties which violates CSP but seem
not to have a magnification in GUI (UX).
Fixed files::
    ./oscar/preferences.html:25:<td class="{{ label }}" style="padding: 2px">{{- "" -}}
    ./simple/preferences.html:39:<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}}
    ./simple/preferences.html:77:    <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability">
    ./simple/preferences.html:258:     <p class="text-muted" style="margin:20px 0;">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
			
			
This commit is contained in:
		
							parent
							
								
									a26e4eff10
								
							
						
					
					
						commit
						e564cef0fe
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -22,7 +22,7 @@ | ||||||
| {%- endmacro %} | {%- endmacro %} | ||||||
| 
 | 
 | ||||||
| {%- macro engine_time(engine_name, css_align_class) -%} | {%- macro engine_time(engine_name, css_align_class) -%} | ||||||
| <td class="{{ label }}" style="padding: 2px">{{- "" -}} | <td class="{{ label }}">{{- "" -}} | ||||||
|     {%- if stats[engine_name].time != None -%} |     {%- if stats[engine_name].time != None -%} | ||||||
|     <span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}} |     <span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}} | ||||||
|     <span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true"> |     <span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true"> | ||||||
|  |  | ||||||
|  | @ -36,7 +36,7 @@ | ||||||
| {%- endmacro %} | {%- endmacro %} | ||||||
| 
 | 
 | ||||||
| {%- macro engine_time(engine_name) -%} | {%- macro engine_time(engine_name) -%} | ||||||
| <td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}} | <td class="{{ label }}">{{- "" -}} | ||||||
|     {%- if stats[engine_name].time != None -%} |     {%- if stats[engine_name].time != None -%} | ||||||
|     <span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}} |     <span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}} | ||||||
|     <span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true"> |     <span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true"> | ||||||
|  | @ -76,7 +76,7 @@ | ||||||
|           {{ icon('warning', 'The engine is not reliabled') }} {{ r -}} |           {{ icon('warning', 'The engine is not reliabled') }} {{ r -}} | ||||||
|       </span>{{- "" -}} |       </span>{{- "" -}} | ||||||
|     </a>{{- "" -}} |     </a>{{- "" -}} | ||||||
|     <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability"> |     <div class="engine-tooltip" role="tooltip" id="{{engine_name}}_reliability"> | ||||||
|         {%- if checker_result -%} |         {%- if checker_result -%} | ||||||
|         <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p> |         <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p> | ||||||
|         {%- endif -%} |         {%- endif -%} | ||||||
|  | @ -257,7 +257,7 @@ | ||||||
| 
 | 
 | ||||||
|   {{ tab_header('maintab', 'cookies', _('Cookies')) }} |   {{ tab_header('maintab', 'cookies', _('Cookies')) }} | ||||||
| 
 | 
 | ||||||
|      <p class="text-muted" style="margin:20px 0;"> |      <p class="text-muted"> | ||||||
|         {{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br /> |         {{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br /> | ||||||
|         {{ _('With that list, you can assess searx transparency.') }}<br /> |         {{ _('With that list, you can assess searx transparency.') }}<br /> | ||||||
|      </p> |      </p> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser