aboutsummaryrefslogtreecommitdiff
path: root/views/user_search.hbs
blob: f342d2664af62becfcabed4b6e3bdb8f775b1a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<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 }}
        <h4 class='search-head'>
            Found <span id="search-count"> {{ resultCount }}</span> result(s)
        </h4>
        {{# each users}}
            <a href="/public_profile/{{this.user_name}}">
                <section class = 'solutions-card'>
                    <h3 class = 'solutions-title'>{{this.user_name}}</h3>
                    <p class = 'solutions-time' >
                        <em>Name: </em>{{this.f_name}} {{this.l_name}} </p>
                    </p>
                </section>
            </a>
        {{/each}}
    {{ else }}
            <h3 class="solutions-title"> No results found. Sorry!</h3>
    {{/if}}
</div>
</main>