Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
54cc93a8
Commit
54cc93a8
authored
Sep 07, 2012
by
Alec Perkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework nav to use Bootstrap's Navbar.
parent
5043b9f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
djangorestframework/static/djangorestframework/css/style.css
+4
-0
djangorestframework/templates/djangorestframework/base.html
+21
-11
No files found.
djangorestframework/static/djangorestframework/css/style.css
View file @
54cc93a8
body
{
padding-top
:
1em
;
}
\ No newline at end of file
djangorestframework/templates/djangorestframework/base.html
View file @
54cc93a8
...
...
@@ -20,26 +20,36 @@
</head>
<body
class=
"{% block bodyclass %}{% endblock %}"
>
<div
id=
"container"
>
<body
class=
"{% block bodyclass %}{% endblock %} container"
>
<div
id=
"heade
r"
>
<div
id=
"branding
"
>
<h1
id=
"site-name"
>
{% block branding %}
<a
href=
'http://django-rest-framework.org'
>
Django REST framework
</a>
<span
class=
"version"
>
v {{ version }}
</span>
{% endblock %}
</h1
>
</div>
<div
id=
"user-tools"
>
<div
class=
"navba
r"
>
<div
class=
"navbar-inner
"
>
<span
class=
"brand"
href=
"/"
>
{% block branding %}
<a
href=
'http://django-rest-framework.org'
>
Django REST framework
</a>
<span
class=
"version"
>
v {{ version }}
</span>
{% endblock %}
</span
>
{% block userlinks %}
<ul
class=
"nav pull-right"
>
{% if user.is_active %}
Welcome, {{ user }}.
{% optional_login %}
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Welcome, {{ user }}
<b
class=
"caret"
></b>
</a>
<ul
class=
"dropdown-menu"
>
<li>
{% optional_logout %}
</li>
</ul>
</li>
{% else %}
{% optional_logout %}
<li>
{% optional_login %}
</li>
{% endif %}
</ul>
{% endblock %}
</div>
{% block nav-global %}{% endblock %}
</div>
{% block nav-global %}{% endblock %}
<div
class=
"breadcrumbs"
>
{% block breadcrumbs %}
{% for breadcrumb_name, breadcrumb_url in breadcrumblist %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment