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
Zoheb Lokhandwala
whats-open
Commits
292e3e29
Commit
292e3e29
authored
Oct 13, 2013
by
Renfred Harper
Browse files
Show restaurant location
parent
23815e54
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/static/js/info.js
View file @
292e3e29
...
...
@@ -57,6 +57,12 @@ $(document).ready(function() {
});
// Display restaurant info in the info-body
$
(
'
#info-name
'
).
text
(
restaurant
.
name
);
if
(
restaurant
.
location
!==
null
){
$
(
'
#info-location
'
).
html
(
'
<b>Location:</b>
'
+
restaurant
.
location
).
show
();
}
else
{
$
(
'
#info-location
'
).
hide
();
}
if
(
restaurant
.
open
){
$
(
'
#info-status
'
).
html
(
'
<b>Status:</b> Open
'
);
var
closing
=
Date
.
parse
(
restaurant
.
current
.
end_time
);
...
...
whats_open/templates/base.html
View file @
292e3e29
...
...
@@ -58,6 +58,7 @@
<div
class=
"col-md-12"
id=
"info-name"
></div>
<div
class=
"col-md-3"
id=
"info-status"
></div>
<div
class=
"col-md-3"
id=
"info-next"
></div>
<div
class=
"col-md-3"
id=
"info-location"
></div>
<div
id=
"info-schedule"
></div>
</div>
</div>
...
...
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