Navigation Menu

Skip to content

Commit

Permalink
Make output consistent when no entry found
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 9, 2012
1 parent 93063e4 commit a81d0ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions views/search.jade
@@ -1,12 +1,16 @@
extends layout

block content
if records
if records.length > 0
.alert.alert-info
= "Found " + num_found + " entries. Showing " + from + " - " + to + " (" + num_showing + " entries)."
| Found #{num_found} entries.
| Showing #{from} - #{to} (#{num_showing} entries).

each record, index in records
.record
h2 #{record.data.title}
p= record.data.path
!{record.data.desc}
else
.alert.alert-info
| No entry found.

0 comments on commit a81d0ac

Please sign in to comment.