Template source: _tooltip_follow.html

{% load i18n staticfiles %} <div class="tooltip-follow"> <div class="tooltip-header" style="background-image: url('');"> <div class="tooltip-title"> <a href="{% url 'author_single' author.slug %}" class="tooltip-author pull-left">{{ author.full_name }}</a> {% if request.user.is_authenticated %} <a href="#" id="follow_author" onclick="follow_author(this, '{% url 'follow_ajax' author.slug %}', {{ request.user.is_authenticated|yesno:"true,false" }}); return false;" class="follow-btn-sm pull-right">{% trans 'Follow' %}</a> {% endif %} </div> </div> <div class="tooltip-avatar"> <div class="avatar-single"> <a href="{% url 'author_single' author.slug %}"> {% if author.avatar %} <img src="{{ author.avatar.get_author_small_url }}" alt="{{ author.full_name }}"/> {% else %} <img src="{% static 'dist/images/avatar-default.jpg' %}" alt="{{ author.full_name }}"/> {% endif %} </a> </div> </div> <div class="tooltip-content"> {% if author.short_description|length > 0 or author.favorite_categories|length > 0 %} <p class="tooltip-description"> {{ author.short_description }} </p> {% for cat in author.favorite_categories %} <span class="cat-bubble {{ cat.color_class }}-bg">{{ cat.title }}</span> {% endfor %} {% else %} <p class="tooltip-description"> {% trans 'Follow this author to get notified about new articles.' %} </p> {% endif %} </div> </div>