diff options
| -rw-r--r-- | djangorestframework/static/djangorestframework/css/style.css | 7 | ||||
| -rw-r--r-- | djangorestframework/templates/djangorestframework/base.html | 20 |
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 %}›{% 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">›</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> |
