diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-25 23:36:16 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-25 23:36:16 +0000 |
| commit | 0d8073039faa903ee0f12e68064c89b5f27cdf14 (patch) | |
| tree | 221688160f73edd753a35d3d240022154078ee88 /views/user_search.hbs | |
| parent | 9f1b0d9f1c807e02a415b5b8a2509dc6445f08b3 (diff) | |
| parent | 10f1c442e27d82d1fc2c94d1bc0a2ad27917b287 (diff) | |
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'views/user_search.hbs')
| -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' > |
