This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ = jQuery | |
queues = {} | |
running = false | |
queue = (name) -> | |
name = 'default' if name is true | |
queues[name] or= [] | |
next = (name) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cssutils | |
from xml.sax import saxutils | |
from lxml.html import tostring, fromstring, clean | |
from lxml import etree | |
import logging | |
class Cleaner(clean.Cleaner): | |
def clean_html(self, html): | |
if not isinstance(html, unicode): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# place this at templates/pages/menus/dropdown.html to override the mezzanine dropdown menu #} | |
{% load i18n pages_tags %} | |
{% spaceless %} | |
{% if page_branch_in_menu %} | |
{% if branch_level == 0 %} | |
<ul class="nav pull-right"> | |
{% for page in page_branch %} | |
{% if page.in_menu %} | |
{% if page.login_required and request.user.is_authenticated or not page.login_required %} |