Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Crenshinibon committed Sep 27, 2013
1 parent ba29310 commit b4eed44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spomet.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ if Meteor.isClient
@score.toFixed 4

Template.result.title = () ->
if @path isnt 'custom'
if @type isnt 'custom'
p = Posts.findOne {_id: @base}
if p? then p.title else 'deleted'
else
c = CustomContent.findOne {_id: @base}
if c? then c.text.substring(0,10) + '...' else 'deleted'

Template.result.text = () ->
if @path isnt 'custom'
if @type isnt 'custom'
p = Posts.findOne {_id: @base}
if p? then p.text else 'deleted'
else
Expand Down

0 comments on commit b4eed44

Please sign in to comment.