Commits

Show all
Author Commit Message Labels Comments Date
David Chambers
Wrapped moderation message in `strong` tags.
David Chambers
Updated `redirect` handler to accommodate fragments, and utilized this to improve the commenting experience.
David Chambers
Added `id` attribute to comment template to facilitate hyperlinking.
David Chambers
Renamed variables (`string` to `text`).
David Chambers
Fixed a bug which prevented the text of a just-submitted comment from being displayed to its author.
David Chambers
Renamed `fetch_comments` `comments`. The original name was chosen to discourage template authors from calling the method recklessly. This is no longer a concern now that comments can usually be retrieved from the cache.
David Chambers
Updated `convert` to have it attach the relevant Disqus thread to the `Document` object. Added caching to avoid the unacceptable expense of retrieving every thread from Disqus after a restart.
David Chambers
Updated `fetch_comments` to have it convert comments to HTML before caching them.
David Chambers
Fixed flushing of a thread's comments cache after moderation.
David Chambers
Fixed `UnboundLocalError`.
David Chambers
Tweaked localization JavaScript.
David Chambers
Exposed Django settings to templates, and updated base template to ensure that Google Analytics code is not included when in debug mode.
David Chambers
Added `fetch_comments` method which caches comments aggressively. Updated `moderate` handler to have it invalidate a thread's cache each time a comment on that thread is approved.
David Chambers
Added `title_from_url` template filter which does what it says on the tin.
David Chambers
Fixed "local variable referenced before assignment" error. Python does not have lexical scoping!
David Chambers
Added calls to `reset` to prevent stray links (e.g. "[Mango][1]" where "1" is undefined) from reusing URLs from previously-converted documents.
David Chambers
Added some black magic to the "flush cache" Ajax to force the browser to jump to the target element after reloading the page.
David Chambers
Removed `type="text/css"` from base template (it's not required in HTML5).
David Chambers
Updated default `CSS` value to utilize the cleaner syntax enabled by ea8ef21a98a3.
David Chambers
Wrapped logic in functions to avoid unnecessarily adding variables to the global namespace.
David Chambers
Moved logic responsible for generating `stylesheets` and `scripts` out of `_defaults`. These values don't change, so it's wasteful to recalculate them for each request.
David Chambers
Increased forgiveness by allowing a filename to be included in a (media, (filename,)) pair using the simpler (media, filename) syntax.
David Chambers
Updated `post` view. It now checks `request.session` for a stored comment only if commenting is enabled.
David Chambers
Added `html2text` to requirements.txt.
David Chambers
Updated WordPress conversion script – its output now includes time zone and author metadata.
David Chambers
Updated Blogger conversion script – its output now includes time zone and author metadata.
David Chambers
Updated `utf8` – it now accepts unicode.
David Chambers
Updated `primary_author_email` to use `mango.settings.PRIMARY_AUTHOR_(NAME|EMAIL)`. Replaced accompanying doctest with new ones which specify values for these settings.
David Chambers
Fixed iPad styling.
David Chambers
Switched to simpler (HTML5) `meta` tag.
  1. Prev
  2. Next