Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6cadfdd9d3
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (17 sloc) 0.79 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<form class="phileo {{ is_liked }} {{ like_type }}" action="{{ like_url }}" method="POST" id="{{ widget_id }}">
    {% csrf_token %}
    {% if user.is_authenticated %}
        <input type="submit"
         class="phileo-toggle"
         data-like-text="{{ like_text.0 }}"
         data-unlike-text="{{ like_text.1 }}"
         value="{% if is_liked %}{{ like_text.1 }}{% else %}{{ like_text.0 }}{% endif %}" />
    {% endif %}
    <span class="phileo-count">
        <span id="{{ like_count_id }}"
              data-counts-text="{{ counts_text.0 }}"
              data-counts-text-plural="{{ counts_text.1 }}">
            {{ like_count }} {% if like_count > 1 or like_count == 0 %}{{ counts_text.1 }}{% else %}{{ counts_text.0 }}{% endif %}
        </span>
    </span>
</form>
Something went wrong with that request. Please try again.