Commit fe79c6a4 authored by Tyler Hallada's avatar Tyler Hallada
Browse files

Fixing styles.

parent 716f240d
...@@ -74,7 +74,7 @@ class Schedule(models.Model): ...@@ -74,7 +74,7 @@ class Schedule(models.Model):
(self.sat_open, self.sat_close), (self.sat_open, self.sat_close),
(self.sun_open, self.sun_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 if (start is not None and end is not None and
start <= today.time() <= end): start <= today.time() <= end):
return True return True
......
div.container{
margin-top:30px;
}
#grid div[class*='span']{
margin-top:10px;
margin-bottom:10px;
}
.open{ .open{
color:green; color:green;
font-weight:bold; font-weight:bold;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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.min.css" rel="stylesheet">
<link href="/static/admin/css/bootstrap-responsive.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/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="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<script src="/static/admin/js/bootstrap.min.js"></script> <script src="/static/admin/js/bootstrap.min.js"></script>
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
{% block content %} {% block content %}
<!-- {% now "jS F Y H:i" %} --> <!-- {% now "jS F Y H:i" %} -->
<div id="grid">
{% for list in restRows %} {% for list in restRows %}
<div class = "row"> <div class = "row">
{% for restaurant in list %} {% for restaurant in list %}
...@@ -10,6 +11,7 @@ ...@@ -10,6 +11,7 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
</div>
{% empty %} {% empty %}
There aren't any restaurants. There aren't any restaurants.
{% endfor %} {% endfor %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment