euscan-ng/euscanwww/djeuscan/templates/euscan/overlay.html
volpino 9f5402f896 euscanwww: Favourite/Unfavourite template code refactored
* Now is more DRY, the JS code and the HTML code are in one place
* It works even without JS

Signed-off-by: volpino <fox91@anche.no>
2012-11-08 18:57:29 +01:00

26 lines
539 B
HTML

{% extends "euscan/_datatable.html" %}
{% load url from future %}
{% load djeuscan_helpers %}
{% load euscan_accounts_helpers %}
{% block title %}
{{ block.super }} - Overlay: {{ overlay }}
{% endblock %}
{% block content %}
<h2>
Overlay: {{ overlay }}
{% if user.is_authenticated %}
<span class="pull-right padding-bottom10">
{% favourite_buttons "overlay" overlay %}
</span>
{% endif %}
</h2>
{% packages packages %}
<script src="{{ STATIC_URL }}js/favourite.js" type="text/javascript"></script>
{% endblock %}