Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christopher M Reffett
whats-open
Commits
c9e42c7f
Commit
c9e42c7f
authored
Jan 28, 2013
by
Tyler Hallada
Browse files
Moving non-admin static files out of admin dir
parent
ef89db4f
Changes
12
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
c9e42c7f
...
...
@@ -9,3 +9,4 @@ venv
build
apache
.ropeproject
website/static/admin/
website/static/
admin/
css/bootstrap-responsive.css
→
website/static/css/bootstrap-responsive.css
View file @
c9e42c7f
File moved
website/static/
admin/
css/bootstrap-responsive.min.css
→
website/static/css/bootstrap-responsive.min.css
View file @
c9e42c7f
File moved
website/static/
admin/
css/bootstrap.css
→
website/static/css/bootstrap.css
View file @
c9e42c7f
File moved
website/static/
admin/
css/bootstrap.min.css
→
website/static/css/bootstrap.min.css
View file @
c9e42c7f
File moved
website/static/
admin/
css/style.css
→
website/static/css/style.css
View file @
c9e42c7f
File moved
website/static/
admin/
img/glyphicons-halflings-white.png
→
website/static/img/glyphicons-halflings-white.png
View file @
c9e42c7f
File moved
website/static/
admin/
img/glyphicons-halflings.png
→
website/static/img/glyphicons-halflings.png
View file @
c9e42c7f
File moved
website/static/
admin/
js/bootstrap.js
→
website/static/js/bootstrap.js
View file @
c9e42c7f
File moved
website/static/
admin/
js/bootstrap.min.js
→
website/static/js/bootstrap.min.js
View file @
c9e42c7f
File moved
website/views.py
View file @
c9e42c7f
from
django.template
import
RequestContext
from
website.models
import
Restaurant
from
django.shortcuts
import
render_to_response
import
re
...
...
@@ -17,4 +18,5 @@ def restaurant_grid(request):
# Restaurants in lists of 4 to easily create rows in template
restRows
=
[
restaurants
[
x
:
x
+
4
]
for
x
in
xrange
(
0
,
len
(
restaurants
),
4
)]
return
render_to_response
(
'restaurant_grid.html'
,
{
'restRows'
:
restRows
,
'restaurants'
:
restaurants
})
'restaurants'
:
restaurants
},
context_instance
=
RequestContext
(
request
))
whats_open/templates/base.html
View file @
c9e42c7f
...
...
@@ -2,13 +2,13 @@
{% block head %}
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
href=
"
/static/admin/
css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"
/static/admin/
css/bootstrap-responsive.min.css"
rel=
"stylesheet"
>
<link
href=
"
/static/admin/
css/style.css"
rel=
"stylesheet"
>
<link
href=
"
{{ STATIC_URL }}
css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"
{{ STATIC_URL }}
css/bootstrap-responsive.min.css"
rel=
"stylesheet"
>
<link
href=
"
{{ STATIC_URL }}
css/style.css"
rel=
"stylesheet"
>
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"
></script>
<script
src=
"
/static/admin/
js/bootstrap.min.js"
></script>
<link
href=
"
/static/admin/
img/glyphicons-halflings.png"
rel=
"icons"
>
<script
src=
"
{{ STATIC_URL }}
js/bootstrap.min.js"
></script>
<link
href=
"
{{ STATIC_URL}}
img/glyphicons-halflings.png"
rel=
"icons"
>
<head>
{% block title %}
<title>
...
...
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