23 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								{% if type == 'warning' %}
							 | 
						||
| 
								 | 
							
								{% set img = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
							 | 
						||
| 
								 | 
							
								    <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4m.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/>
							 | 
						||
| 
								 | 
							
								  </svg>' %}
							 | 
						||
| 
								 | 
							
								  {% elif type == 'alert'%}
							 | 
						||
| 
								 | 
							
								    {% set img = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
							 | 
						||
| 
								 | 
							
								        <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1z"/>
							 | 
						||
| 
								 | 
							
								    </svg>' %}
							 | 
						||
| 
								 | 
							
								   {% elif type == 'info' %}
							 | 
						||
| 
								 | 
							
								   {% set img = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
							 | 
						||
| 
								 | 
							
								    <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/>
							 | 
						||
| 
								 | 
							
								  </svg>' %}
							 | 
						||
| 
								 | 
							
								{% endif %}
							 | 
						||
| 
								 | 
							
								<div class="co-container">
							 | 
						||
| 
								 | 
							
								    <div class="callout {{ type }}">
							 | 
						||
| 
								 | 
							
								        <span class="co-img">{{ img |safe }}</span>
							 | 
						||
| 
								 | 
							
								        <span class="co-body">
							 | 
						||
| 
								 | 
							
								            {{ body | markdown | safe}}
							 | 
						||
| 
								 | 
							
								        </span>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								</div>
							 | 
						||
| 
								 | 
							
								
							 |