Browse Source

test css changes

master
wes 9 years ago
parent
commit
b5cfbea556
  1. 0
      src/mcmaster/schedule.csv
  2. 42
      src/scripts/class.tag
  3. 14
      src/search.py
  4. 8
      src/styles/search.scss

0
src/mcmaster/schedule.csv

42
src/scripts/class.tag

@ -1,24 +1,26 @@
<class>
<div class="card-header">
<div class="text-center wraptext" id='title'> { dept } { title } </div>
<div class="wraptext" id='prof'>Taught by: { prof } </div>
<div class="wraptext" id='sem'>Running: { sem } </div>
</div>
<div if={ books } class="card-body">
<button onclick={ makeShow(this) } class="btn btn-primary show-button">
<strong>Show Textbooks</strong>
</button>
<div if={ showBooks }>
<dl>
<book each={ books }
data="{ this }"
resources=""
title={ booktitle }
author={ bookauthor }
price={ bookprice }>
</book>
</dl>
</div>
<div class="course-info">
<div class="card-header">
<div class="text-center wraptext" id='title'> { dept } { title } </div>
<div class="wraptext" id='prof'>Taught by: { prof } </div>
<div class="wraptext" id='sem'>Running: { sem } </div>
</div>
<div if={ books } class="card-body">
<button onclick={ makeShow(this) } class="btn btn-primary show-button">
<strong>Show Textbooks</strong>
</button>
<div if={ showBooks }>
<dl>
<book each={ books }
data="{ this }"
resources=""
title={ booktitle }
author={ bookauthor }
price={ bookprice }>
</book>
</dl>
</div>
</div>
</div>
<div class="toast" if={ !books }>
<p class="wraptext">No books at this time</p>

14
src/search.py

@ -74,8 +74,6 @@ def createIndex(name):
"""
This creates a new index in elasticsearch
An index is like a schema in a regular database
Create an elasticsearch index
"""
indices = elasticsearch.client.IndicesClient(es)
@ -114,18 +112,6 @@ def indexListing(course):
id=courseID,
body=json_course)
# For every course we index, we also create a resource for it
# This should be an idempotent operation because we're putting it in couchdb
# And we're using the id obtained from the hash function, so it should just update the document
# no need to delete anything
#try:
#courseDept = course[0]["title"].strip().split(" ")[0].strip()
#courseCode = course[0]["title"].strip().split(" ")[1].strip()
#print "DEPARTMENT = \"%s\", COURSECODE = \"%s\"" % (courseDept, courseCode)
#print createResource(textbookInfo, course[0], courseDept, courseCode, courseID)
#except:
#print "Couldn't create the resource associated with %s" % course
def termSearch(field):
"""
Make a term search (exact match)

8
src/styles/search.scss

@ -156,3 +156,11 @@ a {
margin-top: -10px;
border: none;
}
.card {
border: none !important;
}
.course-info {
border: solid;
}

Loading…
Cancel
Save