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
611919aa
Commit
611919aa
authored
May 18, 2013
by
Mark McArdle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit of fix for
https://github.com/tomchristie/django-rest-framework/issues/775
parent
2a3056d0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
171 additions
and
157 deletions
+171
-157
rest_framework/static/rest_framework/css/bootstrap-tweaks.css
+160
-0
rest_framework/static/rest_framework/css/default.css
+0
-149
rest_framework/templates/rest_framework/base.html
+7
-6
rest_framework/templates/rest_framework/login_base.html
+4
-2
No files found.
rest_framework/static/rest_framework/css/bootstrap-tweaks.css
View file @
611919aa
...
@@ -19,4 +19,163 @@ a single block in the template.
...
@@ -19,4 +19,163 @@ a single block in the template.
.navbar-inverse
.brand
:hover
a
{
.navbar-inverse
.brand
:hover
a
{
color
:
white
;
color
:
white
;
text-decoration
:
none
;
text-decoration
:
none
;
}
/* custom navigation styles */
.wrapper
.navbar
{
width
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
}
.navbar
.navbar-inner
{
background
:
#2C2C2C
;
color
:
white
;
border
:
none
;
border-top
:
5px
solid
#A30000
;
border-radius
:
0px
;
}
.navbar
.navbar-inner
.nav
li
,
.navbar
.navbar-inner
.nav
li
a
,
.navbar
.navbar-inner
.brand
{
color
:
white
;
}
.nav-list
>
.active
>
a
,
.nav-list
>
.active
>
a
:hover
{
background
:
#2c2c2c
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
,
.navbar
.navbar-inner
.dropdown-menu
li
{
color
:
#A30000
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
:hover
{
background
:
#eeeeee
;
color
:
#c20000
;
}
/*=== dabapps bootstrap styles ====*/
html
{
width
:
100%
;
background
:
none
;
}
body
,
.navbar
.navbar-inner
.container-fluid
{
max-width
:
1150px
;
margin
:
0
auto
;
}
body
{
background
:
url("../img/grid.png")
repeat-x
;
background-attachment
:
fixed
;
}
#content
{
margin
:
0
;
}
/* sticky footer and footer */
html
,
body
{
height
:
100%
;
}
.wrapper
{
min-height
:
100%
;
height
:
auto
!important
;
height
:
100%
;
margin
:
0
auto
-60px
;
}
.form-switcher
{
margin-bottom
:
0
;
}
.well
{
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
}
.well
.form-actions
{
padding-bottom
:
0
;
margin-bottom
:
0
;
}
.well
form
{
margin-bottom
:
0
;
}
.nav-tabs
{
border
:
0
;
}
.nav-tabs
>
li
{
float
:
right
;
}
.nav-tabs
li
a
{
margin-right
:
0
;
}
.nav-tabs
>
.active
>
a
{
background
:
#f5f5f5
;
}
.nav-tabs
>
.active
>
a
:hover
{
background
:
#f5f5f5
;
}
.tabbable.first-tab-active
.tab-content
{
border-top-right-radius
:
0
;
}
#footer
,
#push
{
height
:
60px
;
/* .push must be the same height as .footer */
}
#footer
{
text-align
:
right
;
}
#footer
p
{
text-align
:
center
;
color
:
gray
;
border-top
:
1px
solid
#DDD
;
padding-top
:
10px
;
}
#footer
a
{
color
:
gray
;
font-weight
:
bold
;
}
#footer
a
:hover
{
color
:
gray
;
}
.page-header
{
border-bottom
:
none
;
padding-bottom
:
0px
;
margin-bottom
:
20px
;
}
/* custom general page styles */
.hero-unit
h2
,
.hero-unit
h1
{
color
:
#A30000
;
}
body
a
,
body
a
{
color
:
#A30000
;
}
body
a
:hover
{
color
:
#c20000
;
}
#content
a
span
{
text-decoration
:
underline
;
}
.request-info
{
clear
:
both
;
}
}
\ No newline at end of file
rest_framework/static/rest_framework/css/default.css
View file @
611919aa
...
@@ -69,152 +69,3 @@ pre {
...
@@ -69,152 +69,3 @@ pre {
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
/*=== dabapps bootstrap styles ====*/
html
{
width
:
100%
;
background
:
none
;
}
body
,
.navbar
.navbar-inner
.container-fluid
{
max-width
:
1150px
;
margin
:
0
auto
;
}
body
{
background
:
url("../img/grid.png")
repeat-x
;
background-attachment
:
fixed
;
}
#content
{
margin
:
0
;
}
/* custom navigation styles */
.wrapper
.navbar
{
width
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
}
.navbar
.navbar-inner
{
background
:
#2C2C2C
;
color
:
white
;
border
:
none
;
border-top
:
5px
solid
#A30000
;
border-radius
:
0px
;
}
.navbar
.navbar-inner
.nav
li
,
.navbar
.navbar-inner
.nav
li
a
,
.navbar
.navbar-inner
.brand
{
color
:
white
;
}
.nav-list
>
.active
>
a
,
.nav-list
>
.active
>
a
:hover
{
background
:
#2c2c2c
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
,
.navbar
.navbar-inner
.dropdown-menu
li
{
color
:
#A30000
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
:hover
{
background
:
#eeeeee
;
color
:
#c20000
;
}
/* custom general page styles */
.hero-unit
h2
,
.hero-unit
h1
{
color
:
#A30000
;
}
body
a
,
body
a
{
color
:
#A30000
;
}
body
a
:hover
{
color
:
#c20000
;
}
#content
a
span
{
text-decoration
:
underline
;
}
/* sticky footer and footer */
html
,
body
{
height
:
100%
;
}
.wrapper
{
min-height
:
100%
;
height
:
auto
!important
;
height
:
100%
;
margin
:
0
auto
-60px
;
}
.form-switcher
{
margin-bottom
:
0
;
}
.well
{
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
}
.well
.form-actions
{
padding-bottom
:
0
;
margin-bottom
:
0
;
}
.well
form
{
margin-bottom
:
0
;
}
.nav-tabs
{
border
:
0
;
}
.nav-tabs
>
li
{
float
:
right
;
}
.nav-tabs
li
a
{
margin-right
:
0
;
}
.nav-tabs
>
.active
>
a
{
background
:
#f5f5f5
;
}
.nav-tabs
>
.active
>
a
:hover
{
background
:
#f5f5f5
;
}
.tabbable.first-tab-active
.tab-content
{
border-top-right-radius
:
0
;
}
#footer
,
#push
{
height
:
60px
;
/* .push must be the same height as .footer */
}
#footer
{
text-align
:
right
;
}
#footer
p
{
text-align
:
center
;
color
:
gray
;
border-top
:
1px
solid
#DDD
;
padding-top
:
10px
;
}
#footer
a
{
color
:
gray
;
font-weight
:
bold
;
}
#footer
a
:hover
{
color
:
gray
;
}
rest_framework/templates/rest_framework/base.html
View file @
611919aa
...
@@ -13,8 +13,10 @@
...
@@ -13,8 +13,10 @@
<title>
{% block title %}Django REST framework{% endblock %}
</title>
<title>
{% block title %}Django REST framework{% endblock %}
</title>
{% block style %}
{% block style %}
{% block bootstrap_theme %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap
.
min
.
css
"
%}"
/>
{% endblock %}
{% block bootstrap_theme %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap-tweaks
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap
.
min
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap-tweaks
.
css
"
%}"
/>
{% endblock %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
prettify
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
prettify
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
default
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
default
.
css
"
%}"
/>
{% endblock %}
{% endblock %}
...
@@ -30,8 +32,8 @@
...
@@ -30,8 +32,8 @@
<div
class=
"navbar {% block bootstrap_navbar_variant %}navbar-inverse{% endblock %}"
>
<div
class=
"navbar {% block bootstrap_navbar_variant %}navbar-inverse{% endblock %}"
>
<div
class=
"navbar-inner"
>
<div
class=
"navbar-inner"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<span
class=
"brand"
href=
"/"
>
<span
href=
"/"
>
{% block branding %}
<a
href=
'http://django-rest-framework.org'
>
Django REST framework
<span
class=
"version"
>
{{ version }}
</span></a>
{% endblock %}
{% block branding %}
<a
class=
'brand'
href=
'http://django-rest-framework.org'
>
Django REST framework
<span
class=
"version"
>
{{ version }}
</span></a>
{% endblock %}
</span>
</span>
<ul
class=
"nav pull-right"
>
<ul
class=
"nav pull-right"
>
{% block userlinks %}
{% block userlinks %}
...
@@ -109,8 +111,7 @@
...
@@ -109,8 +111,7 @@
<div
class=
"content-main"
>
<div
class=
"content-main"
>
<div
class=
"page-header"
><h1>
{{ name }}
</h1></div>
<div
class=
"page-header"
><h1>
{{ name }}
</h1></div>
{{ description }}
{{ description }}
<div
class=
"request-info"
style=
"clear: both"
>
<div
class=
"request-info"
>
<pre
class=
"prettyprint"
><b>
{{ request.method }}
</b>
{{ request.get_full_path }}
</pre>
<pre
class=
"prettyprint"
><b>
{{ request.method }}
</b>
{{ request.get_full_path }}
</pre>
</div>
</div>
<div
class=
"response-info"
>
<div
class=
"response-info"
>
...
...
rest_framework/templates/rest_framework/login_base.html
View file @
611919aa
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
<head>
<head>
{% block style %}
{% block style %}
{% block bootstrap_theme %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap
.
min
.
css
"
%}"
/>
{% endblock %}
{% block bootstrap_theme %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap-tweaks
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap
.
min
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap-tweaks
.
css
"
%}"
/>
{% endblock %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
default
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
default
.
css
"
%}"
/>
{% endblock %}
{% endblock %}
</head>
</head>
...
...
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