Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Add in results view
Browse files Browse the repository at this point in the history
This should have already been in there.
  • Loading branch information
mfinholt committed Jun 6, 2016
1 parent cdf7598 commit f56cd7b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/views/results/map.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
( doc ) ->

return unless doc.collection is 'result'

if doc.klassId?
type = "klass"
id = doc.klassId
else
type = "assessment"
id = doc.assessmentId

emit id, type

0 comments on commit f56cd7b

Please sign in to comment.