File size: 3,774 Bytes
137c62e
15fc415
dd74a90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69adc89
 
 
 
 
 
 
 
 
 
 
 
 
 
dd74a90
 
 
 
 
 
 
 
 
 
 
69adc89
15fc415
dd74a90
 
 
 
 
c4935f2
15fc415
 
b35cb86
a912e64
c4935f2
15fc415
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{{>header this.style}}
<main class="results">
    {{>search_bar this}}
    <div class="results_aggregated">
        {{#if results}} {{#each results}}
        <div class="result">
            <h1><a href="{{{this.url}}}">{{{this.title}}}</a></h1>
            <small>{{{this.url}}}</small>
            <p>{{{this.description}}}</p>
            <div class="upstream_engines">
                {{#each engine}}
                <span>{{{this}}}</span>
                {{/each}}
            </div>
        </div>
        {{/each}} {{else}} {{#if disallowed}}
        <div class="result_disallowed">
            <div class="description">
                <p>
                    Your search - <span class="user_query">{{{this.pageQuery}}}</span> -
                    has been disallowed.
                </p>
                <p class="description_paragraph">Dear user,</p>
                <p class="description_paragraph">
                    The query - <span class="user_query">{{{this.pageQuery}}}</span> - has
                    been blacklisted via server configuration and hence disallowed by the
                    server. Henceforth no results could be displayed for your query.
                </p>
            </div>
            <img src="./images/barricade.png" alt="Image of a Barricade" />
        </div>
        {{else}} {{#if filtered}}
        <div class="result_filtered">
            <div class="description">
                <p>
                    Your search - <span class="user_query">{{{this.pageQuery}}}</span> -
                    has been filtered.
                </p>
                <p class="description_paragraph">Dear user,</p>
                <p class="description_paragraph">
                    All the search results contain results that has been configured to be
                    filtered out via server configuration and henceforth has been
                    completely filtered out.
                </p>
            </div>
            <img src="./images/filter.png" alt="Image of a paper inside a funnel" />
        </div>
        {{else}} {{#if noEnginesSelected}}
        <div class="result_engine_not_selected">
            <div class="description">
                <p>
                    No results could be fetched for your search "<span class="user_query">{{{this.pageQuery}}}</span>" .
                </p>
                <p class="description_paragraph">Dear user,</p>
                <p class="description_paragraph">
                    No results could be retrieved from the upstream search engines as no 
                    upstream search engines were selected from the settings page. 
                </p>
            </div>
            <img src="./images/no_selection.png" alt="Image of a white cross inside a red circle" />
        </div>
        {{else}}
        <div class="result_not_found">
            <p>Your search - {{{this.pageQuery}}} - did not match any documents.</p>
            <p class="suggestions">Suggestions:</p>
            <ul>
                <li>Make sure that all words are spelled correctly.</li>
                <li>Try different keywords.</li>
                <li>Try more general keywords.</li>
            </ul>
            <img src="./images/no_results.gif" alt="Man fishing gif" />
        </div>
        {{/if}} {{/if}} {{/if}} {{/if}}
    </div>
    <div class="page_navigation">
        <button type="button" onclick="navigate_backward()">
            &#8592; previous
        </button>
        <button type="button" onclick="navigate_forward()">next &#8594;</button>
    </div>
</main>
<script src="static/index.js"></script>
<script src="static/search_area_options.js"></script>
<script src="static/pagination.js"></script>
<script src="static/error_box.js"></script>
{{>footer}}