aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/templates
AgeCommit message (Collapse)Author
2014-08-18Merge pull request #1641 from javins/login-titleTom Christie
Refactor login template to extend base.
2014-08-05Remove duplicate class attributesJason Alan Palmer
These duplicate attributes are ignored by at least Firefox and Chrome, so this change has no effect on the style
2014-06-13Refactor login template to extend base.Walt Javins
While experimenting with extending DRF, I found that the login page 1) had no title, and 2) duplicated <head> info from base.html. This change adds a new {% block body %} to the base.html template which allows override of the entire html <body>. login_base.html has its duplicated head info stripped, and now extends base.html to share common html <head> templating. As part of this change, pretify.css is unnecessarily added to login_base.html. If this is deemed a problem, it will be easy to block that css out, and have login_base.html override the block. Ideally, I would have liked to create a new api_base.html that extends base.html, move the api specific logic into that template, and leave base.html content agnostic, to truely be a unifying base for all DRF pages. But this change would break current apps that override api.html and expect base.html to be the immediate super template. :/ This change is benificial because it: - removes duplication of header declarations (mostly css includes) - adds a html title to the login page - standardizes html header info across all DRF pages Docs are updated to reflect the new structure.
2014-04-13Merge remote-tracking branch 'origin/master' into 2.4.0Xavier Ordoquy
Conflicts: .travis.yml docs/api-guide/fields.md docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/authentication.py rest_framework/serializers.py rest_framework/templatetags/rest_framework.py rest_framework/tests/test_authentication.py rest_framework/tests/test_filters.py rest_framework/tests/test_hyperlinkedserializers.py rest_framework/tests/test_serializer.py rest_framework/tests/test_testing.py rest_framework/utils/encoders.py tox.ini
2014-02-26Display the media type of the API response on the browsable APIKeats
2014-01-08Use www.django-rest-framework.org for docs instead of ↵Tom Christie
django-rest-framework.org due to issues with naked domains
2014-01-06Added "nofollow" against docs link.Tom Christie
2013-12-13Merge branch 'master' into 2.4.0Tom Christie
Conflicts: .travis.yml docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/compat.py
2013-10-24Removed commented-out credits from footer to make django-debug-toolbar work.Jakub Roztočil
The comment, although valid, caused that the Django debug toolbar's injected HTML was partially commented-out and thus the toolbar didn't work as expected.
2013-10-16Allow to customize description so that markup can be accepted if needed.Omer Katz
2013-10-02Fix rendering of forms and add error rendering on HTML formTom Christie
2013-10-02Serializers can now be rendered directly to HTMLTom Christie
2013-09-25Drop 1.3 supportTom Christie
2013-09-14Refs #1109 -- Update docs. Integrate changes from feedback.Tai Lee
2013-09-13Fixed #1105 -- Add hook for custom context in `BrowsableAPIRenderer`.Tai Lee
Replace hard coded response status check with `allow_form` context variable, so that it can be overridden in a custom renderer class.
2013-08-29Fix tab preferences on PUT formsTom Christie
2013-08-29Preserve tab preference in cookies.Tom Christie
2013-08-23First pass at HTMLFormRendererTom Christie
2013-08-12Fix PATCH button title in templateYuri Prezument
2013-05-21Merge and styling fixesTom Christie
2013-05-18Initial commit of fix for ↵Mark McArdle
https://github.com/tomchristie/django-rest-framework/issues/775
2013-05-13Remove trailing unmatched </div> in login_base.html template. Reformat ↵James Summerfield
indentation and label all closing tags for consistency.
2013-04-17extend base login templateforgingdestiny
2013-04-17add branding and style blocksforgingdestiny
2013-04-04Added break_long_headers on templatetags and base templateglic3rinu
2013-02-22Polishing touches to #663Tom Christie
2013-02-20Minimal forms appearance improvementsMichael Elovskikh
2013-02-15Added tabs between object form and generic content form on POST formMichael Elovskikh
2013-02-15POST form using new form.html templateMichael Elovskikh
2013-02-15Added tabs between object form and generic content form on PUT/PATCH formMichael Elovskikh
Some extra behaviour to `BrowsableAPIRenderer` to handle PATCH form. Added PATCH button on generic content PUT form. Tabs between object form and generic content form on PUT/PATCH form wich are both allways visible now. Fix #570 Refs #591
2013-02-06Fix mismatch between template blocks and docs.Tom Christie
Fixes #639.
2013-01-28Login page styles fix. Closes #618. Made with :cookie:Michael Elovskikh
2013-01-15correcting template: closing tag was missingJohannes Spielmann
2012-12-30missing rest_framework templatetags for statics in login templateSebastien Beal
2012-12-28Include 'static' template tag to enable 1.3 compatible staticfiles behaviourTom Christie
2012-12-27Replace get_static_prefix templatetag with staticRoman Akinfold
so now static files urls in html view are correct if we use cloud storage to serve static files
2012-11-01Merge masterTom Christie
2012-11-01Relational field support in browseable API.Tom Christie
Add slug relational fields. Add quickstart.
2012-10-29Style tweaksTom Christie
2012-10-29Fix up login stylingTom Christie
2012-10-09Flesh out quickstart guide and make some style tweaksTom Christie
2012-10-09Fix browseable API form display error for authenticated permissionsTom Christie
2012-10-09Added quickstart guideTom Christie
2012-10-05Added dabapps styling to html apiMax Hurl
2012-10-03TweaksTom Christie
2012-10-03Tweak styling of browseable APITom Christie
2012-09-27Only display forms when user has permissions. #159Tom Christie
2012-09-25Tweak browseable APITom Christie
2012-09-20Clean up bits of templates etcTom Christie
2012-09-20Clean up template tagsTom Christie