aboutsummaryrefslogtreecommitdiff
path: root/views/user_search.hbs
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-25 20:22:53 +0000
committerHumairAK <humair88@hotmail.com>2016-07-25 20:22:53 +0000
commit6377cd850af2ce4258d5d2bcaee86168bb18f67a (patch)
tree5888b02518db3e2518531cdd058062340fd11160 /views/user_search.hbs
parent6476c420cd1523aeed6bc8ac20aeccb43e207a95 (diff)
added public profile for users
Diffstat (limited to 'views/user_search.hbs')
-rw-r--r--views/user_search.hbs11
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' >