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
Nicholas J Anderson
whats-open
Commits
fe79c6a4
Commit
fe79c6a4
authored
Sep 18, 2012
by
Tyler Hallada
Browse files
Fixing styles.
parent
716f240d
Changes
4
Hide whitespace changes
Inline
Side-by-side
website/models.py
View file @
fe79c6a4
...
...
@@ -74,7 +74,7 @@ class Schedule(models.Model):
(
self
.
sat_open
,
self
.
sat_close
),
(
self
.
sun_open
,
self
.
sun_close
),
]
start
,
end
=
days
[
weekday
]
start
,
end
=
days
[
weekday
]
# Get opening/closing times for today
if
(
start
is
not
None
and
end
is
not
None
and
start
<=
today
.
time
()
<=
end
):
return
True
...
...
website/static/admin/css/style.css
View file @
fe79c6a4
div
.container
{
margin-top
:
30px
;
}
#grid
div
[
class
*=
'span'
]
{
margin-top
:
10px
;
margin-bottom
:
10px
;
}
.open
{
color
:
green
;
font-weight
:
bold
;
...
...
whats_open/templates/base.html
View file @
fe79c6a4
...
...
@@ -4,6 +4,7 @@
<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"
>
<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>
...
...
whats_open/templates/restaurant_grid.html
View file @
fe79c6a4
...
...
@@ -2,6 +2,7 @@
{% block content %}
<!-- {% now "jS F Y H:i" %} -->
<div
id=
"grid"
>
{% for list in restRows %}
<div
class =
"row"
>
{% for restaurant in list %}
...
...
@@ -10,6 +11,7 @@
</div>
{% endfor %}
</div>
</div>
{% empty %}
There aren't any restaurants.
{% endfor %}
...
...
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