|
2 | 2 | {% block title %}Vol results{% endblock %}
|
3 | 3 | {% block content %}
|
4 | 4 | <div class="container">
|
5 |
| - {% if locations == "all" %} |
6 |
| - <p> Showing all jobs matching interests for <strong>all</strong> locations.</p> |
7 |
| - {% elif interests == "all" %} |
8 |
| - <p> Showing all jobs for all interests matching locations.</p> |
9 |
| - {% elif matched_intersection == 0 %} |
| 5 | + <div class="vol-results-intro"> |
| 6 | + {% if locations == "all" %} |
| 7 | + <p> Showing all jobs matching interests for <strong>all</strong> locations.</p> |
| 8 | + {% elif interests == "all" %} |
| 9 | + <p> Showing all jobs for all interests matching locations.</p> |
| 10 | + {% elif matched_intersection == 0 %} |
10 | 11 | <p>
|
11 | 12 | {% if matched_interests_count == 0 and locationmatches == 0 %}
|
12 | 13 | <strong> No matches were found! </strong>
|
|
28 | 29 | {% endif %}
|
29 | 30 | <p><i>Not the result you were hoping for? Use the location and interest results below to fine tune
|
30 | 31 | results.</i></p>
|
| 32 | + </div> |
31 | 33 | <div class="row">
|
32 | 34 | <div class="col-sm-6 d-flex align-self-stretch">
|
33 | 35 | <div class="card border-info mb-3">
|
|
36 | 38 | <p class="card-text text-info">
|
37 | 39 | {% if matched_interests_count != 0 %}
|
38 | 40 | Found {{ matched_interests_count }} matched interests in all locations.
|
39 |
| -{# {% for matched_interest in matched_interests %}#} |
40 |
| -{# <li> {{ matched_interest }} </li>#} |
41 |
| -{# {% endfor %}#} |
| 41 | + {# {% for matched_interest in matched_interests %}#} |
| 42 | + {# <li> {{ matched_interest }} </li>#} |
| 43 | + {# {% endfor %}#} |
42 | 44 | {% elif unmatched_interests_count != 0 %}
|
43 | 45 | Amount of unmatched interests, in all areas: {{ unmatched_interests_count }}.
|
44 |
| -{# {% for unmatched_interest in unmatched_interests %}#} |
45 |
| -{# <li> {{ unmatched_interest }}</li>#} |
46 |
| -{# {% endfor %}#} |
| 46 | + {# {% for unmatched_interest in unmatched_interests %}#} |
| 47 | + {# <li> {{ unmatched_interest }}</li>#} |
| 48 | + {# {% endfor %}#} |
47 | 49 | {% endif %}
|
48 | 50 | </p>
|
49 |
| - <a href="/results/all/{{ interests }}" class="btn btn-outline-secondary">Show interest matches, globally</a> |
| 51 | + <a href="/results/all/{{ interests }}" class="btn btn-secondary">Show interest matches, |
| 52 | + globally</a> |
50 | 53 | </div>
|
51 | 54 | </div>
|
52 | 55 | </div>
|
53 |
| - <div class="col-sm-6 d-flex align-self-stretch"> |
| 56 | + <div class="col-sm-6"> |
54 | 57 | <div class="card border-info mb-3">
|
55 | 58 | <div class="card-header">Locations</div>
|
56 | 59 | <div class="card-body">
|
57 | 60 | <p class="card-text text-info">
|
58 | 61 | {% if location_matches != 0 %}
|
59 | 62 | Found a total of {{ location_matches }} matches in your location.
|
60 | 63 | </p>
|
61 |
| - <a href="/results/{{ locations }}/all" class="btn btn-outline-secondary">Show all matches in my location</a> |
| 64 | + <a href="/results/{{ locations }}/all" class="btn btn-secondary">Show all |
| 65 | + matches in my location</a> |
62 | 66 | {% else %}
|
63 | 67 | No jobs found for your location, try widening your search area. Sorry!
|
64 | 68 | </p>
|
|
68 | 72 | </div>
|
69 | 73 | </div>
|
70 | 74 |
|
71 |
| - <div class="row vol-results-results"> |
| 75 | + <div class="vol-results-results"> |
72 | 76 | {% for job in jobs %}
|
73 |
| - <div class="col-lg-6"> |
74 |
| - <h4> {{ job.title }}</h4> |
75 |
| - <strong>URL</strong>: <a href="{{ job.url }}">{{ job.url }}</a><br> |
76 |
| - <strong>Original URL</strong>: {% for v in job.site.values %} |
77 |
| - <a href="{{ v.url }}">{{ v.url }}</a> {% endfor %} <br> <!-- Surely a better way to do this--> |
78 |
| - <strong>Organisation</strong> <a href="{{ job.organisation.url }}">{{ job.organisation }}</a> <br> |
79 |
| - <!-- Include link and logo --> |
80 |
| - <strong>City</strong> {{ job.city }}<br> |
81 |
| - <p> {{ job.text }}</p> |
| 77 | + <div class="card border-info mb-3"> |
| 78 | + <div class="card-header"><h4 class="card-title">{{ job.title }}</h4></div> |
| 79 | + <div class="card-header"> |
| 80 | + <strong>URL</strong>: <a href="{{ job.url }}">{{ job.url }}</a><br> |
| 81 | + <strong>Original URL</strong>: {% for v in job.site.values %} |
| 82 | + <a href="{{ v.url }}">{{ v.url }}</a> {% endfor %} <br> <!-- Surely a better way to do this--> |
| 83 | + <strong>Organisation</strong> <a href="{{ job.organisation.url }}">{{ job.organisation }}</a> <br> |
| 84 | + <!-- Include link and logo --> |
| 85 | + <strong>City</strong> {{ job.city }} |
| 86 | + </div> |
| 87 | + <div class="card-body"> |
| 88 | +<p class="card-text text-dark"> |
| 89 | + {{ job.text }} |
| 90 | + </p> |
| 91 | + </div> |
82 | 92 | </div>
|
83 | 93 | {% endfor %}
|
84 | 94 | </div>
|
|
0 commit comments