aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
authorAlec Perkins2012-09-07 16:48:44 -0400
committerAlec Perkins2012-09-07 16:48:52 -0400
commit338479ffbdbf262b53b84dc894ab686d023d2631 (patch)
tree1abfcb629e199ef683d58b5735b3f38e40df8d60 /djangorestframework
parent54cc93a813db813a89169f96fe1a1e4ab16c96d6 (diff)
downloaddjango-rest-framework-338479ffbdbf262b53b84dc894ab686d023d2631.tar.bz2
Applying Bootstrap to breadcrumbs, page header
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/static/djangorestframework/css/style.css7
-rw-r--r--djangorestframework/templates/djangorestframework/base.html20
2 files changed, 18 insertions, 9 deletions
diff --git a/djangorestframework/static/djangorestframework/css/style.css b/djangorestframework/static/djangorestframework/css/style.css
index 3d2f86e4..b299cb3c 100644
--- a/djangorestframework/static/djangorestframework/css/style.css
+++ b/djangorestframework/static/djangorestframework/css/style.css
@@ -1,3 +1,8 @@
body {
padding-top: 1em;
-} \ No newline at end of file
+}
+
+h2 {
+ font-weight: 300;
+}
+
diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html
index 026a20de..a750502b 100644
--- a/djangorestframework/templates/djangorestframework/base.html
+++ b/djangorestframework/templates/djangorestframework/base.html
@@ -50,13 +50,16 @@
{% block nav-global %}{% endblock %}
- <div class="breadcrumbs">
{% block breadcrumbs %}
- {% for breadcrumb_name, breadcrumb_url in breadcrumblist %}
- <a href="{{ breadcrumb_url }}">{{ breadcrumb_name }}</a> {% if not forloop.last %}&rsaquo;{% endif %}
- {% endfor %}
+ <ul class="breadcrumb">
+
+ {% for breadcrumb_name, breadcrumb_url in breadcrumblist %}
+ <li>
+ <a href="{{ breadcrumb_url }}" {% if forloop.last %}class="active"{% endif %}>{{ breadcrumb_name }}</a> {% if not forloop.last %}<span class="divider">&rsaquo;</span>{% endif %}
+ </li>
+ {% endfor %}
+ </ul>
{% endblock %}
- </div>
<!-- Content -->
<div id="content" class="{% block coltype %}colM{% endblock %}">
@@ -70,13 +73,14 @@
{% endif %}
<div class='content-main'>
- <h1>{{ name }}</h1>
+ <div class="page-header"><h1>{{ name }}</h1></div>
<p>{{ description }}</p>
<div class='module'>
- <pre><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %}
+ <pre><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %}
{% for key, val in response.items %}<b>{{ key }}:</b> {{ val|urlize_quoted_links }}
{% endfor %}
-{{ content|urlize_quoted_links }}</pre>{% endautoescape %}</div>
+{{ content|urlize_quoted_links }}</pre>{% endautoescape %}
+ </div>
{% if 'GET' in allowed_methods %}
<form>