aboutsummaryrefslogtreecommitdiffstats
path: root/sneak_peek_tag
AgeCommit message (Collapse)Author
2014-04-21sneak_peek_tag migration: change get_or_create to createHEADmasterTeddy Wing
Use `create` instead of `get_or_create` because of a sqlite3 transaction error I was getting using Django 1.6.2. Error output: "Your database backend doesn't behave properly when " django.db.transaction.TransactionManagementError: Your database backend doesn't behave properly when autocommit is off. Turn it on before using 'atomic'.
2014-04-21sneak_peek CSS: set default style to use .default classTeddy Wing
Instead of globally setting styles for `.django-sneak-peek`, set those styles previously defined on it on `.django-sneak-peek.default`. This should make it easier to override styles and create new ones since users won't have to set various `border-image`s to `none`.
2014-04-20sneak_peek CSS: add descriptive commentsTeddy Wing
2014-04-20sneak_peek.py: surround default style with quotesTeddy Wing
Now that we require quotes around the style argument, add quotes to the default style.
2014-04-20sneak_peek.py: fix bug `template` not definedTeddy Wing
Import `TemplateSyntaxError` directly.
2014-04-20sneak_peek CSS: add .inline-block classTeddy Wing
For `display: inline-block` positioning.
2014-04-20sneak_peek.py: change first arg to use quotesTeddy Wing
Require the template tag argument to be quoted. This allows us to specify multiple CSS class modifiers instead of just one.
2014-04-20sneak-peek CSS: add .inline modifier classTeddy Wing
Allow sneak peek to appear inline by adding the `.inline` modifier class.
2014-04-20sneak_peek.py: change sneak-peek class nameTeddy Wing
Use `.django-sneak-peek` now that we've changed the class in the stylesheet so that we can have better namespacing.
2014-04-20Rename and clean up static filesTeddy Wing
* Remove bad glyphs from CSS file * Change names of CSS and border image files
2014-04-20sneak_peek.py: use permission for conditional displayTeddy Wing
Use the permission we just created with our data migration to conditionally display the sneak_peek-ed markup.
2014-04-20Add migration for sneak_peek permissionTeddy Wing
* Create empty sneak_peek_tag/models.py to appease South * Create South data migration for sneak peek content_type and permission
2014-04-20sneak_peek.py: fix bug getting userTeddy Wing
* Don't try to get 'request' from context since it isn't available unless 'django.core.context_processors.request' is in the TEMPLATE_CONTEXT_PROCESSORS * Turns out that 'user' is already in context, so get it directly instead of having to go through request
2014-04-20Add sneak_peek appTeddy Wing
Includes: * Template tag * Static resources