diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/user_search.hbs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/views/user_search.hbs b/views/user_search.hbs index fd08e84..59c9435 100644 --- a/views/user_search.hbs +++ b/views/user_search.hbs @@ -1,9 +1,18 @@ <main id = 'solutions-main'> <div class = 'search container' id = 'solutions-div'> + + <!--- Check to see if something went wrong db end ---> + {{# if messages.error }} + <section class="alert alert-danger custom-Alert"> + <h4>{{ messages.error }}</h4> + </section> + {{/if}} + + <h4 class='search-head'>Search results for "{{query}}"</h4> {{# if users }} {{# each users}} - <a href="/public_profile/{{this._id}}"> + <a href="/public_profile/{{this.user_name}}"> <section class = 'solutions-card'> <h3 class = 'solutions-title'>{{this.user_name}}</h3> <p class = 'solutions-time' > |
