From 0ed41c60de9d9f5d56c6a172af810e589a646702 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 12 Aug 2014 14:49:18 +0100 Subject: Latest sponsor updates --- topics/browsable-api.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'topics/browsable-api.html') diff --git a/topics/browsable-api.html b/topics/browsable-api.html index 3db01407..cadd0bb4 100644 --- a/topics/browsable-api.html +++ b/topics/browsable-api.html @@ -222,7 +222,7 @@ a.fusion-poweredby { <link rel="stylesheet" href="/path/to/my/bootstrap.css" type="text/css"> {% endblock %} -
A suitable replacement theme can be generated using Bootstrap's Customize Tool. There are also pre-made themes available at Bootswatch. To use any of the Bootswatch themes, simply download the theme's bootstrap.min.css file, add it to your project, and replace the default one as described above.
A suitable replacement theme can be generated using Bootstrap's Customize Tool. There are also pre-made themes available at Bootswatch. To use any of the Bootswatch themes, simply download the theme's bootstrap.min.css file, add it to your project, and replace the default one as described above.
You can also change the navbar variant, which by default is navbar-inverse, using the bootstrap_navbar_variant block. The empty {% block bootstrap_navbar_variant %}{% endblock %} will use the original Bootstrap navbar style.
Full example:
{% extends "rest_framework/base.html" %}
@@ -247,7 +247,7 @@ a.fusion-poweredby {
bodyclass - Class attribute for the <body> tag, empty by default.
bootstrap_theme - CSS for the Bootstrap theme.
bootstrap_navbar_variant - CSS class for the navbar.
-branding - Branding section of the navbar, see Bootstrap components.
+branding - Branding section of the navbar, see Bootstrap components.
breadcrumbs - Links showing resource nesting, allowing the user to go back up the resources. It's recommended to preserve these, but they can be overridden using the breadcrumbs block.
footer - Any copyright notices or similar footer materials can go here (by default right-aligned).
script - JavaScript files for the page.
@@ -256,7 +256,7 @@ a.fusion-poweredby {
userlinks - This is a list of links on the right of the header, by default containing login/logout links. To add links instead of replace, use {{ block.super }} to preserve the authentication links.
Components
-All of the standard Bootstrap components are available.
+All of the standard Bootstrap components are available.
Tooltips
The browsable API makes use of the Bootstrap tooltips component. Any element with the js-tooltip class and a title attribute has that title content will display a tooltip on hover events.
Login Template
--
cgit v1.2.3