mirror of
				https://github.com/privacyguides/privacyguides.org.git
				synced 2025-11-04 05:17:57 +00:00 
			
		
		
		
	Label tooltip support
This commit is contained in:
		@@ -15,7 +15,14 @@
 | 
				
			|||||||
                    {% assign label_data = label | split:":" %}
 | 
					                    {% assign label_data = label | split:":" %}
 | 
				
			||||||
                    {% assign color = label_data[0] %}
 | 
					                    {% assign color = label_data[0] %}
 | 
				
			||||||
                    {% assign text = label_data[1] %}
 | 
					                    {% assign text = label_data[1] %}
 | 
				
			||||||
                    <span class="badge badge-{{color}}">{{text}}</span>
 | 
					                    {% assign tooltip = label_data[2] | default: "" %}
 | 
				
			||||||
 | 
					                    {% assign help_icon = '<i class="far fa-question-circle"></i>' %}
 | 
				
			||||||
 | 
					                    <span class="badge badge-{{color}}" {% if tooltip %} data-toggle="tooltip" title="{{ tooltip }}">{{text}} {{ help_icon
 | 
				
			||||||
 | 
					                        }}
 | 
				
			||||||
 | 
					                        {% else %}
 | 
				
			||||||
 | 
					                        >{{text}}
 | 
				
			||||||
 | 
					                        {% endif %}
 | 
				
			||||||
 | 
					                    </span>
 | 
				
			||||||
                {% endfor %}
 | 
					                {% endfor %}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            {% endif %}
 | 
					            {% endif %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user