Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
whats-open
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicholas J Anderson
whats-open
Commits
665d560d
Commit
665d560d
authored
Oct 31, 2013
by
Renfred Harper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust construct grid formatting
parent
ef33fe4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
website/static/js/grid.js
website/static/js/grid.js
+6
-4
No files found.
website/static/js/grid.js
View file @
665d560d
...
...
@@ -39,12 +39,14 @@ function construct_grid(filtered_restaurants) {
if
(
restaurant
.
open
)
{
open_class
=
'
opened
'
;
}
// Append the data into the
Bootstrap scaffolding
// Note that identical restaurants can be
numbered. If there is a number
in square brackets
//
Next to a restuarant name, the number will be formatted as a subscrip
t.
// Append the data into the
grid scaffolding.
// Note that identical restaurants can be
labeled via location. If there text
in square brackets
//
next to a restuarant name, the text will be formatted as next to i
t.
$
(
'
#grid .row
'
).
append
(
'
<div class="col-sm-6 col-md-4 col-lg-3 grid-box" id="
'
+
restaurant
.
id
+
'
">
\
<div class="restaurant
'
+
open_class
+
'
">
'
+
restaurant
.
name
.
replace
(
/
?\[(
.+
)\]
/
,
'
<span class="building"> ($1)</span>
'
)
+
'
</div>
\
<div class="restaurant
'
+
open_class
+
'
">
'
+
restaurant
.
name
.
replace
(
/
?\[(
.+
)\]
/
,
'
<span class="building"> ($1)</span>
'
)
+
'
</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